:root{color-scheme:dark;font-family:Georgia,"Times New Roman",serif;color:#fff;background:#162c42}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;isolation:isolate}
body::before{content:"";position:fixed;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(12,30,45,.52),rgba(12,30,45,.12)),linear-gradient(0deg,rgba(12,30,45,.30),transparent 45%),url("seminario-arno.jpg") center/cover no-repeat;pointer-events:none}
a{color:inherit;text-decoration:none}
a:focus-visible{outline:2px solid #fff;outline-offset:6px;border-radius:6px}
.header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px clamp(20px,6vw,96px)}
.identity{display:flex;align-items:center;gap:14px;font-family:Georgia,"Times New Roman",serif;font-size:clamp(16px,1.6vw,23px);line-height:1.25}
.identity img{width:48px;height:58px;object-fit:contain}
.identity small{display:block;font-family:Georgia,"Times New Roman",serif;font-size:12px;letter-spacing:.13em;margin-top:5px;text-transform:uppercase;color:#e2e8ec}
.portal{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:10px 15px;border:1px solid rgba(255,255,255,.32);border-radius:8px;background:rgba(255,255,255,.06);font-size:13px;white-space:nowrap;transition:background .2s,border-color .2s}
.portal:hover{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.65)}
main{flex:1;display:flex;align-items:flex-start;padding:24px clamp(20px,6vw,96px) 70px}
.intro{max-width:760px}
.eyebrow{font-size:11px;letter-spacing:.18em;text-transform:uppercase;line-height:1.7;color:#e0e7ec;margin:0 0 14px}
h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(36px,6vw,76px);font-weight:400;line-height:1.02;letter-spacing:-.035em;margin:0;text-shadow:0 2px 20px rgba(0,0,0,.15)}
.message{font-size:clamp(16px,2vw,20px);line-height:1.45;color:#e6ebee;margin:16px 0 0;max-width:420px}
.line{display:block;width:56px;height:2px;background:#c7b084;margin-top:22px}
footer{padding:22px clamp(20px,6vw,96px);font-size:11px;color:#d1dce4;border-top:1px solid rgba(255,255,255,.14)}
@media(max-width:600px){.header{gap:12px;padding-top:20px;align-items:flex-start}.identity{gap:9px;font-size:15px;max-width:220px}.identity img{width:34px;height:44px}.identity small{font-size:10px}.portal{font-size:12px;padding:9px 10px;gap:5px}main{padding-top:20px;padding-bottom:60px}.eyebrow{font-size:10px;letter-spacing:.12em}body::before{background-position:center}.message{max-width:280px}}
@media(max-width:360px){.header{flex-wrap:wrap}.portal{margin-left:auto}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Galleria delle opere: cornici leggere e fotografie intere. */
main{justify-content:space-between;gap:clamp(24px,4vw,64px)}
.intro{flex:1;min-width:0}
.identity{min-width:0}.identity img{flex-shrink:0}
.art-wall{flex:0 1 570px;min-width:0;display:grid;grid-template-columns:.85fr 1fr 1fr;gap:20px 14px;align-items:start}
.artwork{margin:0;min-width:0;text-align:center}
.artwork-saint{grid-row:span 2;align-self:center}
.artwork a{display:block;border:2px solid #e6ddcd;border-radius:10px;overflow:hidden;background:rgba(15,27,35,.78);box-shadow:0 8px 24px rgba(0,0,0,.28),inset 0 0 0 1px rgba(255,255,255,.2);transition:transform .2s,box-shadow .2s}
.artwork a:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(0,0,0,.36)}
.artwork img{display:block;width:100%;height:205px;object-fit:cover;object-position:center}
.artwork-saint img{height:365px}
.artwork figcaption{font-size:13px;line-height:1.25;margin-top:9px;text-shadow:0 1px 5px #162c42}
.artwork figcaption small{display:block;font-size:11px;margin-top:4px;color:#e1e6e9}
@media(max-width:1050px){main{flex-direction:column;gap:32px}.art-wall{flex:none;width:min(100%,570px);align-self:flex-end}}
@media(max-width:600px){.art-wall{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}.artwork-saint{grid-row:auto;grid-column:1/-1;width:52%;justify-self:center}.artwork-saint img{height:280px}.artwork img{height:190px}.artwork-saint img{height:280px}.artwork figcaption{font-size:12px}}

/* Galleria a sinistra per lasciare visibile il complesso sullo sfondo. */
@media(min-width:1051px){main{flex-direction:row-reverse}.intro{flex:0 1 420px}}
@media(max-width:1050px){.art-wall{align-self:flex-start}}

/* Messaggio allineato sotto l'accesso al portale. */
.intro{text-align:right;margin-left:auto}
.intro .message{margin-left:auto}
.intro .line{margin-left:auto}
@media(min-width:1051px){.intro{padding-top:0}}
@media(max-width:1050px){.intro{align-self:flex-end}}

.intro{transform:translateY(-14px)}

/* Freccia sottile, indipendente dal carattere del dispositivo. */
.portal-arrow{position:relative;display:inline-block;width:13px;height:13px;flex:0 0 13px}
.portal-arrow::before{content:"";position:absolute;top:1px;right:1px;width:8px;height:8px;border-top:1px solid currentColor;border-right:1px solid currentColor}
.portal-arrow::after{content:"";position:absolute;top:1px;right:1px;width:14px;height:1px;background:currentColor;transform-origin:right center;transform:rotate(-45deg)}
/* La santa mantiene le proporzioni originali sul telefono. */
@media(max-width:600px){.artwork-saint img{height:auto;object-fit:contain}}
