/* =====================================================================
   Antico Palmento — Campagna (Salerno)
   Identità: i colori del loro logo — salvia, arancio dell'arco, senape
   della bandierina — con il cotto dei coppi per le fasce scure.
   Titoli Alegreya, testi Alegreya Sans. Motivo: l'arco della porta.
   ===================================================================== */

@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/alegreya-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/alegreya-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(../fonts/alegreya-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(../fonts/alegreya-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/alegreyasans-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/alegreyasans-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/alegreyasans-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/alegreyasans-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/alegreyasans-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/alegreyasans-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #231e1a;          /* testo */
  --muted: #4a443e;        /* testo secondario (8,6:1 sul fondo) */
  --bg: #f0f4ef;           /* salvia chiarissima */
  --hero: #e2ebe4;         /* pannello dell'arco */
  --band: #d8e5dc;         /* salvia del logo */
  --sage: #3b5a4c;         /* salvia profonda */
  --orange: #b4481a;       /* arancio palmento (pulsanti, 5,4:1 col bianco) */
  --orange-text: #a6431a;  /* arancio per testi su chiaro */
  --orange-bright: #e2692a;/* arco del logo, solo decorazioni */
  --mustard: #e2b35a;      /* bandierina del logo */
  --cotto: #5b2410;        /* coppi e cotto: fasce scure */
  --cotto-2: #74301a;
  --peach: #f3d9c4;
  --paper: #fffbf4;
  --white: #fff;
  --line: rgba(35, 30, 26, .14);
  --shadow: 0 1px 2px rgba(35, 30, 26, .08), 0 12px 32px -12px rgba(35, 30, 26, .28);
  --shadow-lg: 0 2px 4px rgba(35, 30, 26, .08), 0 28px 60px -22px rgba(35, 30, 26, .42);
  --serif: 'Alegreya', Georgia, 'Times New Roman', serif;
  --sans: 'Alegreya Sans', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --pad: clamp(18px, 4.4vw, 56px);
  --max: 1240px;
  --hdr: 76px;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --arch: 999px 999px 0 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.125rem/1.62 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.005em; }
h2 { font-size: clamp(2.05rem, 1.4rem + 2.6vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 1.15rem + .7vw, 1.7rem); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
q { quotes: '«' '»'; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }

.eyebrow { font: 700 .875rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 11px; height: 11px; background: var(--mustard); clip-path: polygon(100% 0, 100% 100%, 0 100%); flex: none; }
.eyebrow--light { color: var(--mustard); }
.big { font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.95rem); line-height: 1.32; }
.note { font-size: .95rem; color: var(--muted); margin-top: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 26px; border: 0; border-radius: 999px; background: var(--orange); color: #fff; font: 700 1.05rem/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; transition: background .25s, transform .25s var(--ease), box-shadow .25s; box-shadow: 0 8px 20px -10px rgba(180, 72, 26, .8); }
.btn:hover { background: #9e3d14; transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--sm { min-height: 42px; padding: 9px 20px; font-size: 1rem; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.6px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--wa { background: #1f6f4a; box-shadow: 0 8px 20px -10px rgba(31, 111, 74, .8); }
.btn--wa:hover { background: #185a3c; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--orange-text); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link:hover svg { transform: translateX(4px); }
.round { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; display: inline-grid; place-items: center; transition: background .2s, color .2s, opacity .2s; }
.round svg { width: 22px; height: 22px; }
.round:hover:not(:disabled) { background: var(--ink); color: #fff; }
.round:disabled { opacity: .3; cursor: default; }
.round--sm { width: 40px; height: 40px; font-size: 1.3rem; line-height: 1; }

/* ------------------------------------------------------------ intestazione */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top); transition: background .3s, box-shadow .3s; }
.hdr__in { height: var(--hdr); display: flex; align-items: center; gap: 18px; max-width: calc(1440px + var(--pad) * 2); margin: 0 auto; padding: 0 max(var(--pad), env(safe-area-inset-right)) 0 max(var(--pad), env(safe-area-inset-left)); }
.hdr.is-stuck, .hdr.is-open { background: rgba(240, 244, 239, .94); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
/* a menu aperto niente sfocatura: backdrop-filter renderebbe il menu (fixed) prigioniero dell'intestazione */
.hdr.is-open { background: var(--band); -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name { font: 500 1rem/1.1 var(--sans); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.brand__loc { font-family: var(--serif); font-style: italic; font-size: .95rem; color: var(--muted); }
.nav { display: none; gap: 4px; }
.nav a { text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: background .2s; }
.nav a:hover, .nav a.is-here { background: rgba(35, 30, 26, .07); }
.nav a.is-here { color: var(--orange-text); }
.hdr__act { display: flex; align-items: center; gap: 10px; }
.hdr__wa { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #1f6f4a; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--line); }
.hdr__wa svg { width: 22px; height: 22px; }
.hdr__menu { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; font-weight: 700; }
.hdr__burger { width: 18px; height: 12px; position: relative; display: block; }
.hdr__burger i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.hdr__burger i:first-child { top: 1px; }
.hdr__burger i:last-child { top: 9px; }
.hdr.is-open .hdr__burger i:first-child { top: 5px; transform: rotate(45deg); }
.hdr.is-open .hdr__burger i:last-child { top: 5px; transform: rotate(-45deg); }

.menu { position: fixed; inset: calc(var(--hdr) + env(safe-area-inset-top)) 0 0; background: var(--band); overflow-y: auto; overscroll-behavior: contain; }
.menu[hidden] { display: none; }
.menu__in { max-width: 1240px; margin: 0 auto; padding: clamp(18px, 4vh, 48px) var(--pad) 40px; display: grid; gap: 28px; }
.menu__list { counter-reset: m; }
.menu__list a { display: flex; align-items: baseline; gap: 16px; padding: 9px 0; text-decoration: none; font: 600 clamp(1.7rem, 1.2rem + 2.4vw, 2.8rem)/1.1 var(--serif); border-bottom: 1px solid var(--line); }
.menu__list a span { font: 700 .9rem/1 var(--sans); color: var(--orange-text); letter-spacing: .08em; min-width: 24px; }
.menu__list a:hover { color: var(--orange-text); }
.menu__side img { border-radius: var(--arch); aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; max-width: 360px; }
.menu__contact { display: grid; gap: 8px; margin-top: 18px; }
.menu__contact a { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.menu__contact svg { width: 20px; height: 20px; flex: none; color: var(--orange-text); }
@media (min-width: 760px) { .menu__in { grid-template-columns: 1.4fr 1fr; align-items: start; gap: 56px; } }
@media (max-width: 759px) { .menu__side img { display: none; } }

@media (min-width: 1180px) {
  .nav { display: flex; }
  .hdr__menu { display: none; }
}
@media (max-width: 599px) {
  :root { --hdr: 64px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__loc { display: none; }
  .brand__name { font-size: .9rem; letter-spacing: .13em; }
  .hdr__wa { display: none; }
  .hdr__menu-label { display: none; }
  .hdr__menu { width: 44px; padding: 0; justify-content: center; }
  .hdr__in { gap: 10px; }
}
@media (max-width: 399px) { .hdr__act .btn { display: none; } }
@media (max-width: 300px) { .brand__name { font-size: .8rem; letter-spacing: .1em; } .brand__mark { width: 32px; height: 32px; } }

/* ------------------------------------------------------------ hero: l'arco che si apre */
.hero { position: relative; height: max(560px, 100svh); }
.js .hero.is-scroll { height: calc(max(560px, 100svh) + 80svh); }
.hero__stage { position: relative; height: max(560px, 100svh); overflow: hidden; background: var(--hero); --p: 0; }
.hero.is-scroll .hero__stage { position: sticky; top: 0; }
.hero__photo, .hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__photo img { object-fit: cover; object-position: 50% 62%; transform: scale(calc(1.1 - .1 * var(--p))); transform-origin: 70% 70%; }
.hero__mask { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__panel { fill: var(--hero); }
.hero__line { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hero__line--thin { stroke-width: 1.3; }
.hero__line--frame { stroke-width: 1.6; }
.hero__flag { fill: var(--mustard); }
.hero__copy { position: absolute; z-index: 2; left: max(var(--pad), env(safe-area-inset-left)); top: calc(var(--hdr) + env(safe-area-inset-top) + clamp(16px, 5vh, 64px)); width: min(600px, 46vw); opacity: calc(1 - var(--p) * 2.4); transform: translateY(calc(var(--p) * -48px)); }
.hero.is-past-copy .hero__copy { pointer-events: none; visibility: hidden; }
.hero__title { font-size: clamp(3.4rem, min(8.6vw, 14vh), 8rem); line-height: .92; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 18px; }
.hero__title span { display: block; }
.hero__title span + span { font-style: italic; font-weight: 500; color: var(--orange-text); padding-left: .42em; }
.hero__lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); max-width: 31em; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }

/* card premium */
.pcard { position: absolute; z-index: 3; left: max(var(--pad), env(safe-area-inset-left)); bottom: clamp(16px, 4vh, 44px); width: min(460px, calc(100% - var(--pad) * 2)); display: grid; grid-template-columns: 118px 1fr; gap: 16px; align-items: center; padding: 12px 18px 12px 12px; background: rgba(255, 252, 247, .97); border-radius: 22px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .3s; }
.pcard.is-in { opacity: 1; transform: none; }
.no-js .pcard, .reveal-all .pcard { opacity: 1; transform: none; }
.pcard__photo { align-self: stretch; }
.pcard__photo img { width: 100%; height: 100%; min-height: 128px; object-fit: cover; border-radius: 60px 60px 10px 10px; }
.pcard__name { font: 700 1.45rem/1.1 var(--serif); }
.pcard__loc { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .95rem; margin-top: 3px; }
.pcard__loc svg { width: 16px; height: 16px; color: var(--orange-text); flex: none; }
.pcard__rates { display: grid; gap: 7px; margin: 11px 0 10px; padding: 10px 0; border-block: 1px solid var(--line); }
.pcard__rate { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .95rem; }
.pcard__rate img { height: 15px; width: auto; }
.pcard__rate > * { opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.pcard.is-in .pcard__rate > * { opacity: 1; transform: none; }
.pcard.is-in .pcard__rate:nth-child(1) > * { transition-delay: .25s; }
.pcard.is-in .pcard__rate:nth-child(2) > * { transition-delay: .4s; }
.no-js .pcard__rate > *, .reveal-all .pcard__rate > * { opacity: 1; transform: none; }
.pcard__score { background: #003b95; color: #fff; font-weight: 700; font-size: .95rem; padding: 2px 7px; border-radius: 6px 6px 6px 0; min-width: 36px; text-align: center; }
.pcard__g { font-weight: 700; }
.pcard__count { color: var(--muted); }
.pcard__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--orange-text); text-decoration: none; font-size: .98rem; }
.pcard__cta svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.pcard__cta:hover svg { transform: translateX(4px); }
.stars { --r: 1; position: relative; display: inline-block; width: 80px; height: 15px; background: rgba(35, 30, 26, .18); -webkit-mask: url(../brand/star.svg) 0 0 / 16px 15px repeat-x; mask: url(../brand/star.svg) 0 0 / 16px 15px repeat-x; }
.stars::before { content: ''; position: absolute; inset: 0; width: calc(var(--r) * 100%); background: #e7a419; }

/* card spostata subito dopo l'hero (telefoni e tablet in verticale): niente più sovrapposizione alla foto */
.pcard-slot { display: none; }
.pcard-slot.is-full { display: block; padding: clamp(28px, 6vw, 44px) max(var(--pad), env(safe-area-inset-right)) 0 max(var(--pad), env(safe-area-inset-left)); }
.pcard-slot .pcard { position: relative; left: auto; bottom: auto; margin: 0 auto; width: min(460px, 100%); transform: translateY(18px); }
.pcard-slot .pcard.is-in, .reveal-all .pcard-slot .pcard { transform: none; opacity: 1; }
.pcard-slot.is-full + .welcome { padding-top: clamp(48px, 9vw, 96px); }
/* telefoni stretti: foto e nome in testa, voti e invito a tutta larghezza (nessuna riga che va a capo) */
@media (max-width: 429px) {
  .pcard-slot .pcard { grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; row-gap: 0; padding: 12px 16px 14px 12px; }
  .pcard-slot .pcard__body { display: contents; }
  .pcard-slot .pcard__photo { display: block; grid-row: 1 / 3; align-self: start; }
  .pcard-slot .pcard__photo img { min-height: 0; height: 88px; border-radius: 38px 38px 8px 8px; }
  .pcard-slot .pcard__name { grid-column: 2; align-self: end; font-size: 1.3rem; }
  .pcard-slot .pcard__loc { grid-column: 2; align-self: start; margin-top: 4px; }
  .pcard-slot .pcard__rates { grid-column: 1 / -1; margin: 14px 0 10px; padding: 11px 0; gap: 8px; }
  .pcard-slot .pcard__rate { font-size: .95rem; flex-wrap: nowrap; }
  .pcard-slot .pcard__cta { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 339px) {
  .pcard-slot .pcard { grid-template-columns: 58px minmax(0, 1fr); column-gap: 12px; }
  .pcard-slot .pcard__photo img { height: 68px; border-radius: 29px 29px 6px 6px; }
  .pcard-slot .pcard__name { font-size: 1.15rem; }
  .pcard-slot .pcard__loc { font-size: .85rem; }
  .pcard-slot .pcard__rate { font-size: .85rem; gap: 5px; }
  .pcard-slot .pcard__rate img { height: 13px; }
  .pcard-slot .stars { width: 65px; height: 12px; -webkit-mask-size: 13px 12px; mask-size: 13px 12px; }
}
/* layout «verticale» (arco sotto il titolo): telefoni e tablet in verticale; i telefoni in orizzontale usano quello affiancato */
@media (max-width: 899px) and (orientation: portrait), (max-width: 899px) and (min-height: 521px) {
  .hero__copy { width: auto; right: max(var(--pad), env(safe-area-inset-right)); top: calc(var(--hdr) + env(safe-area-inset-top) + 10px); text-align: center; }
  .hero__copy .eyebrow { justify-content: center; font-size: .8rem; margin-bottom: 8px; text-wrap: balance; }
  .hero__copy .eyebrow::before { display: none; }
  .hero__title { font-size: clamp(2.7rem, min(13vw, 9vh), 5rem); margin-bottom: 0; }
  .hero__title span + span { padding-left: 0; }
  .hero__lead, .hero__cta { display: none; }
  /* senza JavaScript la card resta nell'hero, centrata in basso */
  .hero .pcard { left: 50%; right: auto; transform: translate(-50%, 18px); width: min(440px, calc(100% - 28px)); bottom: max(14px, env(safe-area-inset-bottom)); }
  .hero .pcard.is-in, .no-js .hero .pcard, .reveal-all .hero .pcard { transform: translate(-50%, 0); }
  .pcard { grid-template-columns: 92px 1fr; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 18px; }
  .pcard__photo img { min-height: 112px; border-radius: 46px 46px 8px 8px; }
  .pcard__name { font-size: 1.25rem; }
  .pcard__loc { font-size: .9rem; }
  .pcard__rates { margin: 8px 0 6px; padding: 7px 0; gap: 5px; }
  .pcard__rate { font-size: .9rem; gap: 6px; }
}
@media (max-width: 359px) {
  .pcard { grid-template-columns: 1fr; padding: 12px; }
  .pcard__photo { display: none; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero, .hero__stage { height: max(320px, 100svh); }
  .js .hero.is-scroll { height: calc(max(320px, 100svh) + 80svh); }
  .hero__copy { top: calc(var(--hdr) + env(safe-area-inset-top) + 10px); width: min(440px, 50vw); }
  .hero__cta { display: none; }
  .hero__lead { display: none; }
  .hero__title { font-size: clamp(2rem, 10vh, 3.4rem); }
  .hero__title span { display: inline; }
  .hero__title span + span { padding-left: 0; }
  .pcard { grid-template-columns: 1fr; width: 290px; padding: 10px 14px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .pcard__photo, .pcard__loc, .pcard__cta { display: none; }
  .pcard__name { font-size: 1.15rem; }
  .pcard__rates { margin: 6px 0 0; padding: 7px 0 0; border-bottom: 0; }
  .hero__copy .eyebrow { display: none; }
}

/* ------------------------------------------------------------ comparsa allo scroll */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease) var(--rd, 0ms), transform .8s var(--ease) var(--rd, 0ms); }
.js [data-reveal].is-in, .reveal-all [data-reveal] { opacity: 1; transform: none; }

/* ------------------------------------------------------------ benvenuti */
.welcome { padding: clamp(72px, 10vw, 140px) 0 clamp(56px, 8vw, 110px); }
.welcome .wrap { display: grid; gap: 28px 64px; }
.welcome__title { font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.7rem); max-width: 12em; }
.welcome__text { display: grid; gap: 18px; max-width: 40em; }
.welcome__text p:not(.big) { color: var(--muted); }
@media (min-width: 960px) {
  .welcome .wrap { grid-template-columns: 5fr 7fr; align-items: start; }
  .ledger { grid-column: 1 / -1; }
}
.ledger { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(18px, 3vw, 40px); border-top: 1.5px solid var(--ink); }
.ledger li { position: relative; padding: 22px 22px 6px 0; display: grid; gap: 4px; }
.ledger li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.ledger svg { width: 14px; height: 14px; color: var(--mustard); margin-bottom: 6px; }
.ledger strong { font: 600 clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem)/1 var(--serif); color: var(--orange-text); }
.ledger span { color: var(--muted); max-width: 16em; }
@media (max-width: 559px) {
  .ledger li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .ledger li { padding: 18px 0 14px; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; }
  .ledger svg { grid-row: span 2; align-self: start; margin-top: 10px; }
}
@media (max-width: 559px) { .ledger { grid-template-columns: 1fr; } }
@media (min-width: 560px) and (max-width: 959px) {
  .ledger { grid-template-columns: 1fr 1fr; }
  .ledger li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .ledger li:nth-child(n+3) { border-top: 1px solid var(--line); padding-bottom: 14px; }
}

/* ------------------------------------------------------------ gli strati della casa */
.strata { padding-bottom: clamp(56px, 8vw, 110px); }
.strata__head { display: grid; gap: 14px; margin-bottom: clamp(30px, 5vw, 60px); }
.strata__head p:not(.eyebrow) { max-width: 44em; color: var(--muted); }
.layer { position: relative; --lbg: var(--band); background: var(--lbg); overflow: hidden; }
.layer--pietra { --lbg: #dcd5c8; --lword: #6d6355; }
.layer--cotto { --lbg: var(--cotto); --lword: var(--peach); color: #fff; }
.layer--legno { --lbg: var(--band); --lword: var(--sage); }
.layer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); opacity: .7; transform-origin: left; transform: scaleX(var(--line-s, 1)); transition: transform 1.2s var(--ease); }
.layer--cotto::before { background: var(--mustard); }
.js .layer[data-layer]:not(.is-in) { --line-s: 0; }
.layer__in { max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: clamp(36px, 6vw, 80px) var(--pad); display: grid; gap: 22px 40px; grid-template-columns: 1fr; align-items: center; }
.layer__word { font: italic 500 clamp(4rem, 2.6rem + 7vw, 9rem)/.8 var(--serif); color: var(--lword); letter-spacing: -.02em; }
.layer__word span { display: inline-block; }
.layer__kicker { font: 700 .875rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; color: var(--orange-text); }
.layer--cotto .layer__kicker { color: var(--mustard); }
.layer__text p:not(.layer__kicker) { font-size: 1.15rem; max-width: 30em; }
.layer--pietra .layer__text p:not(.layer__kicker) { color: #3c3630; }
.layer__ph { margin: 0; }
.layer__ph img { width: 100%; height: 100%; object-fit: cover; box-shadow: var(--shadow); }
.layer__ph--a img { aspect-ratio: 4 / 3; border-radius: var(--arch); }
.layer__ph--b img { aspect-ratio: 4 / 3; border-radius: 14px; }
.js .layer[data-layer] .layer__word span, .js .layer[data-layer] .layer__ph, .js .layer[data-layer] .layer__text { transition: transform 1s var(--ease), opacity 1s var(--ease); }
.js .layer[data-layer]:not(.is-in) .layer__word span { transform: translateX(-8%); opacity: 0; }
.js .layer[data-layer]:not(.is-in) .layer__ph--a { transform: translateY(40px); opacity: 0; }
.js .layer[data-layer]:not(.is-in) .layer__ph--b { transform: translateY(70px); opacity: 0; }
.js .layer[data-layer]:not(.is-in) .layer__text { opacity: 0; }
.js .layer[data-layer] .layer__ph--b { transition-delay: .15s; }
.js .layer[data-layer] .layer__text { transition-delay: .2s; }
.reveal-all .layer[data-layer] .layer__word span, .reveal-all .layer[data-layer] .layer__ph, .reveal-all .layer[data-layer] .layer__text { transform: none !important; opacity: 1 !important; }
@media (min-width: 760px) {
  .layer__in { grid-template-columns: repeat(12, 1fr); }
  .layer__word { grid-column: 1 / 8; grid-row: 1; }
  .layer__text { grid-column: 1 / 7; grid-row: 2; }
  .layer__ph--a { grid-column: 8 / 13; grid-row: 1 / 3; }
  .layer__ph--a img { aspect-ratio: 4 / 4.6; }
  .layer__ph--b { grid-column: 4 / 8; grid-row: 3; margin-top: -40px; }
  .layer:nth-of-type(even) .layer__word { grid-column: 6 / 13; text-align: right; }
  .layer:nth-of-type(even) .layer__text { grid-column: 7 / 13; }
  .layer:nth-of-type(even) .layer__ph--a { grid-column: 1 / 6; }
  .layer:nth-of-type(even) .layer__ph--b { grid-column: 6 / 10; }
}
@media (min-width: 1100px) {
  .layer__in { grid-template-rows: auto auto; }
  .layer__ph--b { grid-column: 9 / 13; grid-row: 3; margin-top: -120px; margin-left: -60px; position: relative; z-index: 1; }
  .layer__ph--a { grid-column: 7 / 11; }
  .layer:nth-of-type(even) .layer__ph--a { grid-column: 3 / 7; }
  .layer:nth-of-type(even) .layer__ph--b { grid-column: 1 / 5; margin-left: 0; margin-right: -60px; }
  .layer__ph--b img { box-shadow: 0 0 0 8px var(--lbg), var(--shadow-lg); }
}
@media (max-width: 759px) {
  .layer__ph--b { width: 64%; margin: -70px 0 0 auto; position: relative; }
  .layer__ph--b img { box-shadow: 0 0 0 6px var(--lbg), var(--shadow); }
  .layer__ph--a { width: 86%; }
}

/* ------------------------------------------------------------ camere: il mazzo */
.rooms { padding: clamp(64px, 9vw, 130px) 0; background: var(--paper); overflow: hidden; }
.rooms__grid { display: grid; gap: 44px 72px; align-items: center; }
@media (min-width: 960px) { .rooms__grid { grid-template-columns: 1fr minmax(380px, 1fr); } }
.rooms__info > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); max-width: 34em; }
.rooms__types { margin: 26px 0 24px; border-top: 1px solid var(--line); }
.rooms__types li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rooms__n { font: italic 600 1.5rem/1 var(--serif); color: var(--orange-text); }
.rooms__types strong { display: block; font: 600 1.3rem/1.2 var(--serif); }
.rooms__types li > span:last-child { color: var(--muted); }
.perks { display: flex; flex-wrap: wrap; gap: 8px; }
.perks li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
.perks svg { width: 20px; height: 20px; color: var(--sage); }
.rooms__note { margin-top: 18px; font-size: 1rem; color: var(--muted); }

.deck { position: relative; display: grid; gap: 22px; justify-items: center; }
.deck__stack { position: relative; width: min(100%, 460px); aspect-ratio: 1 / 1.16; touch-action: pan-y; }
.deck__card { position: absolute; inset: 0; background: #fff; padding: 12px 12px 0; border-radius: 6px; box-shadow: var(--shadow); display: grid; grid-template-rows: 1fr auto; transition: transform .55s var(--ease), opacity .45s var(--ease), box-shadow .3s; transform: rotate(var(--rot, 0deg)) translate(var(--tx, 0), var(--ty, 0)); }
.deck__card button { display: block; padding: 0; border: 0; background: #e9e4dc; min-height: 0; overflow: hidden; border-radius: 2px; }
.deck__card img { width: 100%; height: 100%; object-fit: cover; }
.deck__card p { font: italic 500 1.15rem/1.3 var(--serif); padding: 12px 4px 14px; text-align: center; color: var(--ink); }
.deck__card[data-pos="0"] { z-index: 5; --rot: 0deg; box-shadow: var(--shadow-lg); }
.deck__card[data-pos="1"] { z-index: 4; --rot: -4deg; --tx: -3%; --ty: 1.5%; }
.deck__card[data-pos="2"] { z-index: 3; --rot: 3.5deg; --tx: 3%; --ty: 2%; }
.deck__card[data-pos="3"] { z-index: 2; --rot: -1.5deg; --tx: 0; --ty: 3%; opacity: .0; }
.deck__card[data-pos="hidden"] { z-index: 1; opacity: 0; }
.deck__card.is-out-next { z-index: 6; transform: translateX(115%) rotate(12deg); opacity: 0; }
.deck__card.is-out-prev { z-index: 6; transform: translateX(-115%) rotate(-12deg); opacity: 0; }
.deck__card.is-in-prev { transition: none; transform: translateX(-115%) rotate(-12deg); opacity: 0; z-index: 6; }
.no-js .deck__stack { aspect-ratio: auto; display: grid; gap: 14px; }
.no-js .deck__card { position: relative; transform: none; opacity: 1; }
.no-js .deck__nav { display: none; }
.deck__nav { display: flex; align-items: center; gap: 18px; }
.deck__count { font: 600 1.15rem/1 var(--serif); min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ l'uliveto dall'alto */
.grove { padding: clamp(64px, 9vw, 130px) 0; }
.grove__head { display: grid; gap: 14px; max-width: 46em; margin-bottom: clamp(28px, 4vw, 48px); }
.grove__head p:not(.eyebrow) { color: var(--muted); }
.aerial { display: grid; gap: 22px 40px; align-items: start; }
@media (min-width: 1000px) { .aerial { grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); } }
.aerial__map { position: relative; margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); background: #50613f; }
.aerial__pic { position: relative; }
.aerial__map img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.spot { position: absolute; left: var(--x); top: var(--y); width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 2.5px solid #fff; background: var(--orange); color: #fff; font: 700 1.05rem/1 var(--sans); display: grid; place-items: center; box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .55); transition: transform .3s var(--ease), background .3s; }
.spot::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9); opacity: 0; transform: scale(.6); }
.aerial.is-on .spot::after { animation: ping 1.5s var(--ease) calc(var(--i, 0) * 180ms) 2 both; }
@keyframes ping { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.5); } }
.spot:hover, .spot.is-on { transform: scale(1.15); background: var(--ink); }
.aerial__video { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 18px 8px 10px; border: 0; border-radius: 999px; background: rgba(255, 252, 247, .95); font-weight: 700; box-shadow: var(--shadow); }
.aerial__video svg { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--orange); color: #fff; }
.aerial__video:hover { background: #fff; }
/* schermi stretti: il pulsante diventa una striscia sotto la foto, così non copre i punti */
@media (max-width: 999px) { .aerial__video { position: relative; left: auto; bottom: auto; width: 100%; justify-content: center; min-height: 54px; border-radius: 0; box-shadow: none; background: var(--paper); } }
.aerial__list { counter-reset: s; border-top: 1.5px solid var(--ink); }
.aerial__list li { border-bottom: 1px solid var(--line); }
.aerial__list button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 0; border: 0; background: none; text-align: left; font: 600 1.3rem/1.2 var(--serif); }
.aerial__n { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 .95rem/1 var(--sans); background: var(--band); color: var(--ink); transition: background .3s, color .3s; }
.aerial__list li.is-on .aerial__n { background: var(--orange); color: #fff; }
.aerial__more { display: grid; grid-template-rows: 0fr; overflow: hidden; transition: grid-template-rows .45s var(--ease); }
.aerial__more > * { min-height: 0; }
.aerial__list li.is-on .aerial__more { grid-template-rows: auto 1fr; padding-bottom: 16px; }
.aerial__list li:not(.is-on) .aerial__more > * { display: none; }
.aerial__more img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }
.aerial__more p { color: var(--muted); }
.no-js .aerial__list li .aerial__more > * { display: block; }
.no-js .aerial__list li .aerial__more { grid-template-rows: auto 1fr; padding-bottom: 16px; }

.daylight { display: grid; gap: 18px; margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 760px) { .daylight { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 759px) {
  .daylight { grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--pad) * -1); padding: 0 var(--pad) 8px; scrollbar-width: none; }
  .daylight::-webkit-scrollbar { display: none; }
  .daylight li { scroll-snap-align: start; }
  .js .daylight [data-reveal] { opacity: 1; transform: none; }
}
.daylight figure { margin: 0; }
.daylight img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.daylight figcaption { margin-top: 10px; font: 500 1.1rem/1.35 var(--serif); }
.daylight figcaption span { display: block; font: 700 .8rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-text); }

/* ------------------------------------------------------------ recensioni: gli anelli */
.rep { background: var(--cotto); color: #fff; padding: clamp(64px, 9vw, 130px) 0; position: relative; overflow: hidden; }
.rep::before { content: ''; position: absolute; right: -120px; top: -140px; width: 520px; height: 640px; border-radius: var(--arch); border: 1.5px solid rgba(243, 217, 196, .14); pointer-events: none; }
.rep__head { display: grid; gap: 14px; max-width: 46em; }
.rep__five { font-size: 1.15rem; color: var(--peach); }
.rep__five strong { color: #fff; }
.rep__five[hidden] { display: none; }
.rings { display: grid; gap: 22px; margin: clamp(36px, 5vw, 64px) 0; }
.ring { position: relative; display: grid; grid-template-columns: 84px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 18px; background: #65311e; z-index: 1; box-shadow: inset 0 0 0 1px rgba(243, 217, 196, .14); }
.ring svg { grid-row: 1 / 3; grid-column: 1; width: 84px; height: 84px; transform: rotate(-90deg); }
.ring__bg { fill: none; stroke: rgba(243, 217, 196, .16); stroke-width: 7; }
.ring__fg { fill: none; stroke: var(--peach); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: calc(100 - var(--v) * 100); transition: stroke-dashoffset 1.6s var(--ease) var(--rdelay, 0ms); }
.js .rings:not(.is-on) .ring__fg { stroke-dashoffset: 100; }
.reveal-all .rings .ring__fg { stroke-dashoffset: calc(100 - var(--v) * 100) !important; }
.ring__val { grid-row: 1 / 3; grid-column: 1; display: grid; place-items: center; align-content: center; text-align: center; line-height: 1; }
.ring__num { font: 700 1.45rem/1 var(--serif); }
.ring__of { font-size: .78rem; color: var(--peach); margin-top: 2px; }
.ring__logo { grid-column: 2; align-self: end; }
.ring__logo img { height: 20px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.ring__logo--sfl img { height: 26px; }
.ring__cap { grid-column: 2; align-self: start; color: var(--peach); font-size: 1rem; margin-top: 4px; }
.ring--avg { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 22px 18px; background: #683217; box-shadow: inset 0 0 0 1px rgba(226, 179, 90, .35); }
.ring--avg svg { grid-row: 1; grid-column: 1; width: 200px; height: 200px; }
.ring--avg .ring__fg { stroke: var(--mustard); stroke-width: 6; }
.ring--avg .ring__bg { stroke-width: 6; }
.ring--avg .ring__val { grid-row: 1; grid-column: 1; }
.ring__big { font: 700 4rem/1 var(--serif); }
.ring--avg .ring__of { font-size: 1rem; }
.ring--avg .ring__cap { grid-column: 1; margin-top: 12px; font-size: 1.05rem; }
@media (min-width: 700px) {
  .rings { grid-template-columns: 1.15fr repeat(3, 1fr); align-items: stretch; }
  .ring { grid-template-columns: 1fr; grid-template-rows: auto; justify-items: center; text-align: center; padding: 22px 14px; }
  .ring svg { grid-row: 1; grid-column: 1; width: 130px; height: 130px; }
  .ring__val { grid-row: 1; }
  .ring__num { font-size: 2rem; }
  .ring__logo, .ring__cap { grid-column: 1; }
  .ring__logo { margin-top: 14px; min-height: 28px; display: grid; place-items: center; }
  .ring--avg svg { width: 200px; height: 200px; }
}
@media (min-width: 700px) and (max-width: 959px) {
  .rings { grid-template-columns: repeat(3, 1fr); }
  .ring--avg { grid-column: 1 / -1; }
}
.quotes { display: grid; gap: 26px; }
.quotes li { display: grid; gap: 10px; max-width: 30em; }
.quotes q { font: italic 500 clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem)/1.25 var(--serif); color: #fff; }
.quotes span { font-weight: 700; color: var(--mustard); letter-spacing: .02em; }
@media (min-width: 900px) {
  .quotes { grid-template-columns: repeat(12, 1fr); row-gap: 40px; }
  .quotes li:nth-child(1) { grid-column: 1 / 8; }
  .quotes li:nth-child(2) { grid-column: 5 / 12; }
  .quotes li:nth-child(3) { grid-column: 2 / 9; }
}
.rep__upd { margin-top: clamp(36px, 5vw, 56px); padding-top: 18px; border-top: 1px solid rgba(243, 217, 196, .2); color: var(--peach); font-size: .98rem; }

/* ------------------------------------------------------------ dintorni: le cartoline */
.near { padding: clamp(64px, 9vw, 130px) 0; overflow: hidden; }
.near__head { display: grid; gap: 14px; max-width: 46em; justify-items: start; }
.near__head p:not(.eyebrow) { color: var(--muted); }
.cards { display: grid; gap: 30px 26px; margin: clamp(36px, 5vw, 64px) 0; }
.pc { position: relative; background: #fffdf9; padding: 12px 12px 18px; border-radius: 4px; box-shadow: var(--shadow); transform: rotate(var(--t, 0deg)); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.pc:hover { transform: rotate(0deg) translateY(-6px); box-shadow: var(--shadow-lg); }
.pc figure { margin: 0; }
.pc img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.pc__txt { padding: 14px 4px 0; border-top: 0; display: grid; gap: 6px; }
.pc__txt h3 { font-size: 1.45rem; }
.pc__txt p { color: var(--muted); font-size: 1.02rem; }
.pc__stamp { position: absolute; top: -12px; right: 14px; width: 74px; height: 84px; display: grid; place-items: center; align-content: center; background: var(--orange); color: #fff; line-height: 1; text-align: center; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; transform: rotate(4deg); -webkit-mask: radial-gradient(circle 4.5px at 4.5px 4.5px, transparent 98%, #000) -4.5px -4.5px / 10.5px 10.5px; mask: radial-gradient(circle 4.5px at 4.5px 4.5px, transparent 98%, #000) -4.5px -4.5px / 10.5px 10.5px; }
.pc__stamp strong { font: 700 2rem/1 var(--serif); letter-spacing: 0; text-transform: none; display: block; margin-bottom: 2px; }
.pc__stamp--km { background: var(--sage); }
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(6, 1fr); }
  .pc { grid-column: span 2; }
  .pc:nth-child(4) { grid-column: 2 / span 2; }
  .pc:nth-child(5) { grid-column: 4 / span 2; }
}
@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(5, 1fr); gap: 26px 22px; }
  .pc, .pc:nth-child(4), .pc:nth-child(5) { grid-column: auto; }
  .pc:nth-child(even) { margin-top: 46px; }
}
@media (max-width: 759px) {
  .cards { grid-auto-flow: column; grid-auto-columns: min(80%, 320px); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--pad) * -1); padding: 18px var(--pad) 22px; scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .pc { scroll-snap-align: center; }
}
.near__more { display: grid; gap: 14px; max-width: 900px; }
.near__more h3 { font-size: 1.5rem; }
.times { display: grid; gap: 0 48px; }
@media (min-width: 760px) { .times:not(.times--tight) { grid-template-columns: 1fr 1fr; } }
.times li { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(35, 30, 26, .25); }
.times span { flex: 1 1 auto; min-width: 0; }
.times b { flex: none; font-family: var(--serif); font-size: 1.1rem; color: var(--orange-text); white-space: nowrap; }

/* ------------------------------------------------------------ galleria: la quadreria */
.wall { padding: clamp(64px, 9vw, 130px) 0; background: #e7e0d3; }
.wall__head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); }
.wall__head p:not(.eyebrow) { color: #3c3630; }
.frames { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(130px, 40vw, 200px); grid-auto-flow: dense; gap: 14px; }
@media (min-width: 760px) { .frames { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 230px); gap: 22px; } }
.fr { --fc: var(--ink); }
.fr:nth-child(3n+2) { --fc: var(--cotto); }
.fr:nth-child(4n+3) { --fc: #a07a35; }
.fr button { display: block; width: 100%; height: 100%; padding: 7px; border: 5px solid var(--fc); background: #fdfaf4; box-shadow: 0 1px 1px rgba(0, 0, 0, .1), 0 14px 26px -14px rgba(35, 30, 26, .55); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.fr button:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 2px 2px rgba(0, 0, 0, .1), 0 26px 40px -18px rgba(35, 30, 26, .6); }
.fr img { width: 100%; height: 100%; object-fit: cover; }
.fr--1 { grid-column: span 2; grid-row: span 2; }
.fr--2, .fr--8 { grid-row: span 2; }
.fr--5, .fr--6, .fr--9, .fr--12, .fr--14 { grid-column: span 2; }
@media (max-width: 759px) { .fr button { padding: 5px; border-width: 4px; } }

/* ------------------------------------------------------------ prenota: l'etichetta */
.book { padding: clamp(64px, 9vw, 130px) 0; background: var(--band); position: relative; }
.label { max-width: 760px; margin: 0 auto; background: var(--paper); padding: 10px; clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% calc(100% - 22px), calc(100% - 22px) 100%, 22px 100%, 0 calc(100% - 22px), 0 22px); filter: drop-shadow(0 22px 34px rgba(35, 30, 26, .2)); }
.label__frame { border: 1.5px solid var(--ink); outline: 1px solid var(--orange-text); outline-offset: -8px; padding: clamp(26px, 5vw, 50px) clamp(18px, 5vw, 52px); display: grid; gap: 18px; clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px); text-align: center; }
.label__top { display: flex; align-items: center; justify-content: center; gap: 10px; font: 500 .95rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; flex-wrap: wrap; }
.label__top img { width: 40px; height: 40px; }
.label__title { font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4.4rem); font-weight: 700; font-style: italic; color: var(--orange-text); line-height: 1; }
.label__sub { color: var(--muted); max-width: 32em; margin: 0 auto; }
.label__dates { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; margin-top: 6px; }
.field { display: grid; gap: 6px; text-align: left; }
.field > span { font-weight: 700; font-size: .95rem; letter-spacing: .02em; }
.field em { font-weight: 400; font-style: normal; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid rgba(35, 30, 26, .35); border-radius: 12px; background: #fff; font-size: 1rem; }
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(180, 72, 26, .2); }
.label__people { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; padding: 16px 0; border-block: 1px dashed rgba(35, 30, 26, .3); }
.step { display: flex; align-items: center; gap: 12px; }
.step__label { font-weight: 700; min-width: 60px; text-align: right; }
.step__ctl { display: flex; align-items: center; gap: 6px; }
.step input { width: 42px; text-align: center; border: 0; background: transparent; font: 700 1.3rem/1 var(--serif); padding: 0; }
.check { display: inline-flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--orange); flex: none; }
.label__sum { font: italic 500 1.15rem/1.4 var(--serif); }
.label__sum.is-err { color: #9b1c1c; font-style: normal; font-family: var(--sans); font-weight: 700; }
.label__send { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.label__alt { font-size: 1rem; color: var(--muted); }
.label__alt a { color: var(--orange-text); font-weight: 700; }
.label__price { font-size: 1rem; padding-top: 14px; border-top: 1px solid var(--line); }
.label__price[hidden] { display: none; }
.label__price strong { font-family: var(--serif); font-size: 1.3rem; color: var(--orange-text); }
@media (max-width: 479px) {
  .label__dates { grid-template-columns: 1fr; }
  .label__send .btn { width: 100%; }
  .step__label { text-align: left; }
  .label__people { flex-direction: column; align-items: stretch; }
  .step { justify-content: space-between; }
}
.label__frame > *, .field, .field input { min-width: 0; }
@media (max-width: 359px) {
  .label { padding: 6px; }
  .label__frame { padding-inline: 14px; outline-offset: -6px; }
  .step { gap: 6px; }
  .step__label { min-width: 0; }
  .step__ctl { gap: 2px; }
  .step input { width: 32px; }
  .label__top { font-size: .85rem; letter-spacing: .1em; }
}

/* ------------------------------------------------------------ dove siamo e info */
.where { padding: clamp(64px, 9vw, 130px) 0; }
.where__grid { display: grid; gap: 44px 72px; align-items: start; }
@media (min-width: 960px) { .where__grid { grid-template-columns: 1fr 1fr; } }
.addr { font-style: normal; margin: 18px 0; font-size: 1.15rem; }
.map { position: relative; border-radius: 18px; overflow: hidden; margin-bottom: 16px; background: var(--band); }
.map__load { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; }
.map__load img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.85); }
.map__load span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: rgba(255, 252, 247, .96); font-weight: 700; box-shadow: var(--shadow); white-space: nowrap; }
.map__load span svg { width: 20px; height: 20px; color: var(--orange-text); }
.map__frame iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; }
.map__frame[hidden] { display: none; }
.where__sub { font-size: 1.45rem; margin: 30px 0 8px; }
.where__sub--first { margin-top: 0; }
.facts { margin: 0; border-top: 1.5px solid var(--ink); }
.facts div { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--muted); }
@media (max-width: 379px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }
.contact { margin-top: 30px; padding: clamp(20px, 3vw, 30px); border-radius: 20px; background: var(--cotto); color: #fff; display: grid; gap: 4px; }
.contact h3 { font-size: 1.5rem; margin-bottom: 10px; }
.contact__row { display: flex; align-items: center; gap: 14px; padding: 10px 0; text-decoration: none; border-bottom: 1px solid rgba(243, 217, 196, .18); min-width: 0; }
.contact__row svg { width: 26px; height: 26px; flex: none; color: var(--mustard); }
.contact__row > span { display: grid; min-width: 0; font-weight: 700; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact__row small { font-weight: 400; font-size: .9rem; color: var(--peach); }
.contact__row:hover > span > span { text-decoration: underline; }
.contact__social { display: flex; gap: 10px; margin-top: 14px; }
.contact__social a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(243, 217, 196, .45); }
.contact__social a:hover { background: rgba(255, 255, 255, .1); }
.contact__social svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------ piè di pagina */
.foot { background: var(--ink); color: #e9e4dc; padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); }
.foot__in { display: grid; gap: 22px; }
.foot__brand { display: flex; align-items: center; gap: 16px; }
.foot__brand img { width: 56px; height: 56px; flex: none; background: var(--band); border-radius: 50%; padding: 4px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot__links a { text-decoration: none; font-weight: 500; }
.foot__links a:hover { text-decoration: underline; }
.foot__credits { font-size: .92rem; color: #c9c1b6; max-width: 70em; }
.foot__copy { font-size: .92rem; color: #c9c1b6; }

/* ------------------------------------------------------------ schermo intero e video */
.lb, .vd { border: 0; padding: 0; margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; background: rgba(20, 15, 12, .94); color: #fff; }
.lb::backdrop, .vd::backdrop { background: rgba(20, 15, 12, .7); }
.lb[open], .vd[open] { display: grid; place-items: center; }
.lb__fig { margin: 0; display: grid; gap: 10px; justify-items: center; padding: 64px 16px max(20px, env(safe-area-inset-bottom)); max-width: 100%; }
.lb__fig img { max-width: min(100%, 1400px); max-height: calc(100svh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lb__fig figcaption { display: flex; gap: 14px; align-items: baseline; justify-content: center; flex-wrap: wrap; text-align: center; font-size: 1.02rem; padding: 0 60px; }
.lb__count { color: var(--peach); font-variant-numeric: tabular-nums; }
.lb .round, .vd .round { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(20, 15, 12, .5); }
.lb .round:hover:not(:disabled), .vd .round:hover { background: #fff; color: var(--ink); }
.lb__btn { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__btn--prev { left: max(12px, env(safe-area-inset-left)); }
.lb__btn--next { right: max(12px, env(safe-area-inset-right)); }
.lb__btn[hidden] { display: none; }
.lb__close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
@media (max-width: 599px) { .lb__btn { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); transform: none; } .lb__fig { padding-bottom: 80px; } }
.vd__box { width: min(92vw, 1100px, calc((100svh - 120px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.vd__box iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ------------------------------------------------------------ movimento ridotto */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .pcard, .pcard__rate > * { opacity: 1 !important; }
  .hero__photo img { transform: none; }
}
