:root{--cream:#f7f4eb;--ink:#263b32;--green:#244c3c;--clay:#aa5236;--line:#dcded1}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font:17px/1.6 Arial,sans-serif}a{color:inherit}button{font:inherit;cursor:pointer}header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 5%;border-bottom:1px solid var(--line);background:var(--cream)}.brand{display:flex;align-items:center;text-decoration:none;gap:13px}.brand img{width:55px;height:58px;object-fit:contain}.brand span{font:36px Georgia,serif}.brand small{display:block;font:10px Arial,sans-serif;letter-spacing:2px}nav{display:flex;gap:21px;flex-wrap:wrap}nav a{text-decoration:none;font-family:Georgia,serif;font-size:18px;line-height:1.4;padding:8px 0;transition:color .15s}nav a:hover,nav a[aria-current]{color:var(--clay)}nav a[aria-current]{border-bottom:2px solid var(--clay)}.menu{display:none}h1,h2,h3{font-family:Georgia,serif;font-weight:400;line-height:1.12}h1{font-size:clamp(38px,5.5vw,72px);margin:20px 0 28px}h2{font-size:clamp(28px,3.5vw,44px);margin:20px 0}h3{font-size:25px;margin:12px 0}p{max-width:720px}.eyebrow{font-size:12px;letter-spacing:2px;color:var(--clay);font-weight:bold}.hero{position:relative;min-height:570px;display:flex;align-items:center;color:white;background:#263b32}.hero>img{position:absolute;width:100%;height:100%;object-fit:cover}.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(12,32,23,.8),rgba(12,32,23,.12))}.hero>div{position:relative;z-index:1;padding:65px 7%}.hero .eyebrow{color:#efc58e}.button{display:inline-block;background:var(--green);color:white;padding:13px 22px;text-decoration:none;border-radius:4px;font-size:15px}.hero .button{background:var(--cream);color:var(--green)}.intro{padding:65px 7%;text-align:center}.intro p{margin:20px auto}.callout{background:#e9eddf;padding:38px;display:flex;justify-content:space-between;align-items:center;gap:25px;margin:30px 0}.home>.callout{margin:0 7% 45px}.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:25px;margin:40px 7% 70px}.tile{background:#fffdf8;text-decoration:none;border-radius:6px;overflow:hidden}.tile>img{width:100%;height:240px;object-fit:cover}.tile>div{padding:24px}.tile span{color:var(--clay);font-size:14px}.page{max-width:1200px;margin:auto;padding:60px 35px}.lead{font-size:21px;max-width:800px}.wide{display:block;width:100%;max-height:600px;object-fit:cover;margin:32px 0;border-radius:5px}.split{display:grid;grid-template-columns:1fr 1fr;gap:45px;align-items:center;margin:60px 0}.split>img{width:100%;max-height:470px;object-fit:cover;border-radius:5px}.marks{display:flex;gap:50px;align-items:center;margin:35px 0}.marks img{width:140px;max-height:160px;object-fit:contain}.mark{width:95px;height:110px;object-fit:contain}.board{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:50px}.board article{background:#eeeee2;padding:22px}.board span{font-size:13px;color:var(--clay)}.documents a{display:flex;justify-content:space-between;padding:20px 0;border-bottom:1px solid var(--line);text-decoration:none}.documents span{color:var(--clay)}.event{padding:35px 0;border-bottom:1px solid var(--line)}.date{color:var(--clay);letter-spacing:2px}.quality{width:210px;height:150px;object-fit:contain;margin:20px 0}.photos{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.photo{padding:0;border:0;background:transparent;border-radius:5px;overflow:hidden}.photo img{display:block;width:100%;height:235px;object-fit:cover;transition:transform .2s}.photo:hover img{transform:scale(1.04)}.filters{display:flex;gap:12px;flex-wrap:wrap;margin:32px 0}.filters button{border:1px solid var(--green);border-radius:30px;padding:10px 18px;background:transparent;color:var(--green)}.filters button[aria-pressed=true]{background:var(--green);color:white}footer{display:flex;justify-content:space-between;gap:25px;align-items:center;padding:40px 7%;background:var(--green);color:var(--cream);font-size:14px;flex-wrap:wrap}footer strong{font:35px Georgia,serif}dialog{border:0;background:#17271f;color:white;max-width:95vw;max-height:95vh;padding:20px}dialog::backdrop{background:rgba(0,0,0,.85)}dialog img{display:block;max-width:85vw;max-height:72vh;object-fit:contain;margin:auto}dialog button{display:block;margin:0 0 15px auto;color:white;background:transparent;border:1px solid #aaa;padding:8px 15px}dialog p{font-size:13px;margin:12px auto}.skip{position:absolute;top:-100px}.skip:focus{top:0;background:white;z-index:3;padding:10px}a:focus-visible,button:focus-visible{outline:3px solid var(--clay);outline-offset:4px}[hidden]{display:none!important}@media(max-width:900px){header{flex-wrap:wrap}.menu{display:block;border:1px solid var(--line);background:transparent;padding:8px 12px;border-radius:4px}nav{display:none;width:100%;flex-direction:column;gap:0}nav.open{display:flex}nav a{padding:12px}.hero{min-height:500px}.tiles{grid-template-columns:1fr}.tile{display:grid;grid-template-columns:1fr 1fr}.board{grid-template-columns:1fr 1fr}.photos{grid-template-columns:1fr 1fr}.callout{flex-direction:column;align-items:flex-start}.split{gap:25px}}@media(max-width:560px){.page{padding:38px 20px}.hero>div{padding:40px 22px}.hero{min-height:510px}.intro{padding:45px 20px}.split{grid-template-columns:1fr;margin:40px 0}.board{grid-template-columns:1fr}.tile{display:block}.tiles{margin:30px 20px}.home>.callout{margin:0 20px 35px;padding:25px}.photos{gap:10px}.photo img{height:155px}.marks{gap:25px}.marks img{width:115px}.documents a{gap:15px;flex-wrap:wrap}.lead{font-size:19px}footer{display:block;overflow-wrap:anywhere}footer>a{display:block;margin:15px 0}}

/* Revisione ottobre 2026 */
.intro h2{font-size:clamp(28px,3vw,44px)}.gal-project p{max-width:none}.event-heading{display:flex;align-items:center;justify-content:space-between;gap:30px}.event-heading h2{margin:20px 0}.event-heading .quality{width:190px;height:115px;margin:0;flex-shrink:0}.award{margin:30px 0}.award .wide{margin:0 0 15px;max-height:none;height:auto;object-fit:contain}.award figcaption{font-size:15px;line-height:1.5;max-width:900px;color:var(--ink)}@media(max-width:560px){.event-heading{gap:15px}.event-heading .quality{width:105px;height:90px}.event-heading h2{font-size:30px}.intro h2{font-size:30px}}

.topics,.album-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:40px 0}.topics>a{display:block;text-decoration:none;padding:28px;background:#eeeee2;border-radius:5px}.topics h2{font-size:30px}.topics span{color:var(--clay)}.back{display:block;margin-bottom:24px;text-decoration:none}.history-text{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0;margin:35px 0}.history-text summary{cursor:pointer;font-size:20px;color:var(--green)}.history-text>div{max-width:800px;margin:25px auto}.history-text p{max-width:100%;overflow-wrap:anywhere}.source-note{font-size:14px;color:#526152}.gallery-open{overflow:hidden}#viewer{width:96vw;max-width:1400px;height:94dvh;max-height:94dvh;border-radius:8px;padding:18px;margin:auto}#viewer .viewer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px}#viewer .viewer-toolbar button{margin:0}#viewer .viewer-stage{display:flex;align-items:center;justify-content:center;position:relative;height:calc(94dvh - 145px);margin:15px 0}#viewer .viewer-stage img{max-width:calc(100% - 100px);max-height:100%;height:auto;width:auto;touch-action:pan-y pinch-zoom}#viewer .viewer-stage button{position:absolute;top:50%;transform:translateY(-50%);margin:0;width:44px;min-height:48px;border:0;background:#34483d;border-radius:4px;font-size:24px;padding:5px}#photo-prev{left:0}#photo-next{right:0}#viewer button:disabled{opacity:.3;cursor:default}#viewer>p{max-width:none;margin:0;text-align:center}.photo img{height:235px;object-fit:cover}.album-cards .tile{display:block}.album-cards .tile>img{height:240px}details[open] summary{margin-bottom:20px}@media(max-width:560px){.topics,.album-cards{grid-template-columns:1fr}.topics>a{padding:22px}#viewer{padding:12px;width:100vw;height:100dvh;max-height:100dvh;border-radius:0}#viewer .viewer-stage{height:calc(100dvh - 150px)}#viewer .viewer-stage img{max-width:100%}#viewer .viewer-stage button{background:rgba(25,40,32,.8);z-index:1}.photo img{height:155px}.album-cards .tile>img{height:220px}}

.topics>article{padding:28px;background:#eeeee2;border-radius:5px}.intro h2{font-size:clamp(27px,2.9vw,42px)}.source-note{font-style:italic}

/* Lettura dei contenuti e immagini contestuali */
.page p,.home p{max-width:none;text-align:justify;hyphens:auto;overflow-wrap:break-word}.intro p{max-width:950px}.history-text>div{max-width:none;margin:28px 0;display:flow-root}.history-text h3{clear:both;margin:38px 0 18px;font-size:30px}.history-text p{line-height:1.85;margin:0 0 22px}.history-text .source-note{margin-bottom:30px}.reading-image{float:right;clear:right;width:32%;max-width:360px;margin:6px 0 28px 34px}.reading-image .photo{display:block;width:100%}.reading-image .photo img{height:auto;max-height:420px;object-fit:contain;background:#eeeee2}.reading-image figcaption{font-size:14px;line-height:1.5;color:#526152;margin-top:10px;text-align:left}.footer-contacts a{display:block;margin:6px 0}footer p{text-align:left}.history-text>div:after{content:"";display:block;clear:both}@media(max-width:600px){.reading-image{float:none;width:100%;max-width:420px;margin:24px auto}.history-text h3{font-size:26px}.history-text p{line-height:1.75}.page p,.home p{hyphens:auto;text-align:justify}.intro p{text-align:center}}

.album-cards .tile>img{object-fit:contain;object-position:center;background:#eeeee2}

.festival-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:45px;align-items:center}.festival-art{margin:0}.festival-art img{display:block;width:100%;height:auto;max-width:440px;margin:auto}.festival-copy p{max-width:none}@media(max-width:800px){.festival-layout{grid-template-columns:1fr;gap:20px}.festival-art img{max-width:330px}}

.history-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;clear:both;margin:28px 0 32px}.history-images .reading-image{float:none;clear:none;width:auto;max-width:none;margin:0;min-width:0}.history-images .reading-image .photo img{width:100%;height:210px;object-fit:contain}.history-images .reading-image figcaption{margin-top:8px}@media(max-width:600px){.history-images{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}.history-images .reading-image .photo img{height:160px}}

.reading-passage{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(0,1fr);gap:30px;align-items:start;clear:both;margin:24px 0 28px}.reading-passage .reading-image{float:none;clear:none;width:auto;max-width:none;margin:0}.reading-passage .reading-image .photo img{width:100%;height:240px;object-fit:contain}.reading-passage p{margin-bottom:0}@media(max-width:600px){.reading-passage{grid-template-columns:1fr;gap:14px}.reading-passage .reading-image{width:100%;max-width:360px;margin:0 auto}.reading-passage .reading-image .photo img{height:210px}}

/* Collegamento social accanto al simbolo del Mulino */
.mulino-social{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.mulino-social .social-link{color:var(--clay);font:18px/1.4 Georgia,serif;text-decoration:underline;text-underline-offset:5px}.mulino-social .social-link:hover{color:var(--green)}

.social-link{color:var(--clay);font:18px/1.4 Georgia,serif;text-decoration:underline;text-underline-offset:5px}.social-link:hover{color:var(--green)}

.social-links{display:inline-flex;align-items:center;gap:16px 24px;flex-wrap:wrap;max-width:100%}.mulino-social .social-links{flex:1 1 240px}

/* Menu mobile: tre linee e chiusura */
.menu{color:var(--green);border:0;background:transparent;min-width:48px;min-height:48px;padding:12px;border-radius:0;appearance:none;-webkit-appearance:none;flex-shrink:0}
.menu-icon{display:block;position:relative;width:26px;height:20px}
.menu-icon span{position:absolute;left:0;width:26px;height:2px;background:currentColor;border-radius:2px;transition:transform .18s,opacity .18s,top .18s}
.menu-icon span:nth-child(1){top:0}.menu-icon span:nth-child(2){top:9px}.menu-icon span:nth-child(3){top:18px}
.menu[aria-expanded="true"] .menu-icon span:nth-child(1){top:9px;transform:rotate(45deg)}
.menu[aria-expanded="true"] .menu-icon span:nth-child(2){opacity:0}
.menu[aria-expanded="true"] .menu-icon span:nth-child(3){top:9px;transform:rotate(-45deg)}
@media(prefers-reduced-motion:reduce){.menu-icon span{transition:none}}

/* Album di famiglia: schede compatte e fotografie intere */
.album-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch}
.album-cards .tile{display:flex;flex-direction:column;min-width:0;background:#fffdf8}
.album-cards .tile>img{display:block;width:calc(100% - 32px);height:260px;margin:16px 16px 0;object-fit:contain;background:transparent}
.album-cards .tile>div{display:flex;flex-direction:column;flex:1;padding:18px 20px 22px}
.album-cards h3{font-size:22px;line-height:1.25;margin:0 0 10px}
.album-cards p{font-size:15px;margin:0 0 16px}
.album-cards .tile span{margin-top:auto}
@media(max-width:900px){.album-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.album-cards{grid-template-columns:1fr;gap:20px}.album-cards .tile>img{height:250px}.album-cards .tile>div{padding:16px 20px 20px}}

.marks{flex-wrap:wrap;gap:28px 40px}.marks .unpli-logo{width:360px;max-width:100%;height:auto;max-height:none;object-fit:contain}@media(max-width:560px){.marks{gap:24px}.marks .unpli-logo{width:320px}}

.marks .unpli-logo{margin-left:auto}



.panorama-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;margin-top:35px}.panorama-grid figure{margin:0;min-width:0}.panorama-grid .photo{display:block;width:100%}.panorama-grid .photo img{height:360px;object-fit:contain;background:#eeeee2}.panorama-grid figcaption{font-size:15px;margin-top:10px;color:var(--ink)}.panorama-grid figure:first-child{grid-column:1/-1}.panorama-grid figure:first-child img{height:auto;max-height:530px}.panorama-grid .photo:hover img{transform:none}@media(max-width:560px){.panorama-grid{grid-template-columns:1fr;gap:24px}.panorama-grid .photo img{height:320px}}

.new-views{margin-top:60px}.borgo-details figure:first-child{grid-column:auto}.borgo-details figure:first-child img{height:360px}.intro .social-link{font-size:17px}@media(max-width:560px){.new-views{margin-top:40px}.borgo-details figure:first-child img{height:320px}.hero>img{object-position:62% center}}

/* PUJE revisione 08-10: centratura link home e scheda panorami */
.panorama-home-link{text-align:center;width:100%;}
.panorama-tab{display:inline-flex;align-items:center;justify-content:center;border:1px solid #244c3c;border-radius:999px;padding:.78rem 1.3rem;color:#244c3c;text-decoration:none;font:inherit;white-space:nowrap;}
.panorama-tab:hover,.panorama-tab:focus-visible{background:#244c3c;color:#fff;}
