/*
Theme Name: Insteia
Description: Tema fotografico su misura per l'Hotel Insteia di Polla (SA). Blu Insteia, azzurro, Cormorant Garamond.
Author: Miragee
Version: 1.0
Text Domain: insteia
*/

:root {
  --blu: #16365C;
  --blu-notte: #0E2238;
  --fondo: #F4F8FB;
  --pietra: #45525E;
  --azzurro: #2E7FC2;
  --azzurro-scuro: #1F619B;
  --cielo: #A6D3F2;
  --bianco: #FFFFFF;
  --linea: rgba(22, 54, 92, 0.16);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-testo: "Figtree", -apple-system, "Segoe UI", sans-serif;
  --larghezza: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-testo);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--pietra);
  background-color: var(--fondo);
  /* le righe del quaderno */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 43px,
    rgba(22, 54, 92, 0.042) 43px 44px
  );
  -webkit-font-smoothing: antialiased;
}

/* il margine del quaderno */
body::before {
  content: "";
  position: fixed; top: 0; bottom: 0;
  left: clamp(28px, 4vw, 64px);
  border-left: 1.5px dashed rgba(46, 127, 194, 0.18);
  z-index: -2; pointer-events: none;
}
@media (max-width: 1100px) { body::before { display: none; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blu); text-decoration-color: rgba(22,54,92,.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--azzurro); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--azzurro); outline-offset: 3px; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--blu);
  line-height: 1.06;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
em { font-style: italic; }

.contenitore { max-width: var(--larghezza); margin-inline: auto; padding-inline: var(--gutter); }
.sezione { padding-block: clamp(64px, 10vw, 128px); }
.sezione--stretta { padding-block: clamp(44px, 7vw, 84px); }

/* ---------- bottoni ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-testo);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95em 2em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--azzurro { background: var(--azzurro-scuro); color: #fff; }
.btn--azzurro:hover { background: var(--blu); color: #fff; }
.btn--fantasma { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--fantasma:hover { border-color: #fff; }
.btn--blu { background: var(--blu); color: #fff; }
.btn--blu:hover { background: var(--blu-notte); }

/* ---------- header ---------- */
.testata {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.testata__riga {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 14px;
}
.testata__logo img { height: 46px; width: auto; }
.testata__logo .logo--blu { display: none; }
.testata nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 34px); }
.testata nav a {
  color: #fff; text-decoration: none; font-weight: 500; font-size: 0.98rem;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
  transition: border-color .2s ease;
}
.testata nav a:hover { border-bottom-color: var(--azzurro); }
.testata.solida, body.no-hero .testata {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 30px rgba(22, 54, 92, 0.10);
}
.testata.solida nav a, body.no-hero .testata nav a { color: var(--blu); }
.testata.solida .logo--bianco, body.no-hero .logo--bianco { display: none; }
.testata.solida .logo--blu, body.no-hero .logo--blu { display: block; }

.testata__burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; position: relative; z-index: 80;
}
.testata__burger span, .testata__burger span::before, .testata__burger span::after {
  content: ""; display: block; width: 26px; height: 2px; background: currentColor;
  position: absolute; left: 8px; transition: transform .2s ease, opacity .2s ease;
}
.testata__burger { color: #fff; }
.testata.solida .testata__burger, body.no-hero .testata__burger { color: var(--blu); }
.testata__burger span { top: 20px; }
.testata__burger span::before { top: -8px; left: 0; }
.testata__burger span::after { top: 8px; left: 0; }
body.menu-aperto .testata__burger { color: #fff; }
body.menu-aperto .testata__burger span { transform: rotate(45deg); }
body.menu-aperto .testata__burger span::before { transform: rotate(-90deg) translateX(-8px); }
body.menu-aperto .testata__burger span::after { opacity: 0; }

@media (max-width: 860px) {
  .testata nav {
    position: fixed; inset: 0; background: var(--blu-notte);
    flex-direction: column; justify-content: center; gap: 30px;
    transform: translateY(-100%); transition: transform .3s ease;
  }
  body.menu-aperto .testata nav { transform: translateY(0); }
  .testata nav a { color: #fff !important; font-size: 1.5rem; font-family: var(--font-display); }
  .testata__burger { display: block; }
}

/* ---------- hero ---------- */
.eroe {
  position: relative; min-height: 92svh; display: flex; align-items: flex-end;
  color: #fff; isolation: isolate; overflow: hidden;
}
.eroe__foto { position: absolute; inset: 0; z-index: -2; }
.eroe__foto img { width: 100%; height: 100%; object-fit: cover; }
.eroe::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 34, 56, 0.45) 0, rgba(14, 34, 56, 0) 22%),
    linear-gradient(200deg, rgba(14,34,56,0) 35%, rgba(14,34,56,.72) 100%);
}
.eroe__testo { padding-block: clamp(48px, 8vw, 96px); max-width: 820px; }
.eroe__testo h1 { color: #fff; animation: alzati .9s ease both; }
.eroe__testo h1 em { color: var(--cielo); }
.eroe__sotto { margin-top: 20px; max-width: 54ch; font-size: 1.1rem; animation: alzati .9s .15s ease both; }
.eroe__azioni { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; animation: alzati .9s .3s ease both; }
@keyframes alzati { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.eroe--pagina { min-height: 62svh; }

/* ---------- intro editoriale ---------- */
.lead {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.35; color: var(--blu); max-width: 30ch; font-weight: 500;
}
.lead em { color: var(--azzurro-scuro); }
.fatti { margin-top: 28px; color: var(--pietra); max-width: 62ch; }

/* ---------- bande camere / sezioni fotografiche ---------- */
.banda { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; margin-block: clamp(40px, 7vw, 96px); }
.banda__foto { grid-row: 1; grid-column: 1 / 9; aspect-ratio: 16 / 10; overflow: hidden; }
.banda__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.banda:hover .banda__foto img { transform: scale(1.025); }
.banda__corpo { grid-row: 1; grid-column: 6 / 13; position: relative; padding-bottom: clamp(8px, 2vw, 28px); }
.banda--destra .banda__foto { grid-column: 5 / 13; }
.banda--destra .banda__corpo { grid-column: 1 / 8; }
.banda__nome {
  font-family: var(--font-display); font-weight: 600; color: var(--blu);
  font-size: clamp(2.2rem, 5.5vw, 4.6rem); line-height: 0.98;
  text-shadow: 0 0 18px var(--fondo), 0 0 36px var(--fondo);
}
.banda__nome a { color: inherit; text-decoration: none; }
.banda__nome a:hover { color: var(--azzurro-scuro); }
.banda__dati { margin-top: 14px; font-size: 1rem; color: var(--pietra); background: var(--fondo); display: inline-block; padding: 6px 10px 6px 0; }
.banda__dati strong { color: var(--blu); font-weight: 600; }
.banda__link { margin-top: 10px; display: inline-block; font-weight: 600; }
@media (max-width: 760px) {
  .banda { display: block; }
  .banda__corpo { margin-top: -34px; padding-inline: 4px; }
}

/* ---------- lista alla carta (dot leaders) ---------- */
.carta { max-width: 760px; }
.carta li { list-style: none; display: flex; align-items: baseline; gap: 10px; padding-block: 13px; }
.carta li + li { border-top: 1px dashed var(--linea); }
.carta .voce { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--blu); white-space: nowrap; }
.carta .filo { flex: 1; border-bottom: 2px dotted rgba(22,54,92,.3); transform: translateY(-5px); min-width: 30px; }
.carta .nota { text-align: right; max-width: 34ch; }
@media (max-width: 560px) {
  .carta li { flex-wrap: wrap; }
  .carta .filo { display: none; }
  .carta .nota { text-align: left; }
}

/* ---------- scheda camera ---------- */
.scheda-griglia { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .scheda-griglia { grid-template-columns: 1fr; } }
.galleria {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr; grid-auto-flow: dense; gap: 10px;
}
.galleria a { display: block; aspect-ratio: 1; overflow: hidden; }
.galleria a:first-child { grid-column: 1 / 3; grid-row: 1 / 3; aspect-ratio: auto; }
@media (max-width: 700px) {
  .galleria { grid-template-columns: repeat(2, 1fr); }
  .galleria a:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
}
.galleria img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.galleria a:hover img { transform: scale(1.04); }

/* ---------- blocco prenota ---------- */
.prenota-blocco {
  background: var(--blu-notte); color: rgba(255,255,255,.85);
  padding: clamp(40px, 6vw, 72px); border-radius: 4px;
}
.prenota-blocco h2, .prenota-blocco h3 { color: #fff; }
.prenota-blocco .btn { margin-top: 22px; }
.prenota-blocco a { color: var(--cielo); }

/* ---------- sezione scura finale ---------- */
.sezione--notte { background: var(--blu-notte); color: rgba(255,255,255,.82); }
.sezione--notte h2 { color: #fff; }
.sezione--notte .lead { color: #fff; }
.sezione--notte .lead em { color: var(--cielo); }

/* ---------- footer ---------- */
.fondo { background: var(--blu); color: rgba(255,255,255,.8); padding-block: clamp(48px, 7vw, 80px) 28px; }
.fondo a { color: #fff; }
.fondo__griglia { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .fondo__griglia { grid-template-columns: 1fr; } }
.fondo__logo img { height: 58px; width: auto; }
.fondo h4, .fondo .fondo__voce { font-family: var(--font-display); color: #fff; font-size: 1.3rem; margin-bottom: 14px; font-weight: 600; }
.fondo ul { list-style: none; }
.fondo li { padding-block: 4px; }
.fondo__legale { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); font-size: .85rem; color: rgba(255,255,255,.55); }
.fondo__legale a { color: rgba(255,255,255,.7); }

/* ---------- whatsapp ---------- */
.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.wa svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- lightbox ---------- */
.lucebox {
  position: fixed; inset: 0; z-index: 100; background: rgba(14,34,56,.94);
  display: none; align-items: center; justify-content: center; padding: 4vmin;
}
.lucebox.aperta { display: flex; }
.lucebox img { max-width: 100%; max-height: 92vh; width: auto; height: auto; }
.lucebox button { background: none; border: 0; color: #fff; line-height: 1; cursor: pointer; }
.lucebox__chiudi { position: absolute; top: 16px; right: 20px; font-size: 2.4rem; }
.lucebox__freccia {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1;
  font-size: 3.4rem; padding: 20px 16px; opacity: .75; transition: opacity .2s ease;
}
.lucebox__freccia:hover { opacity: 1; }
.lucebox__freccia--prev { left: 8px; }
.lucebox__freccia--next { right: 8px; }
.lucebox__contatore {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  font-family: "Caveat", cursive; font-size: 1.35rem; color: var(--cielo);
}
.lucebox--sola .lucebox__freccia, .lucebox--sola .lucebox__contatore { display: none; }

/* ---------- pagine contenuto (privacy ecc.) ---------- */
.prosa { max-width: 72ch; }
.prosa p, .prosa ul, .prosa figure { margin-block: 1em; }
.prosa h2 { margin-top: 1.6em; font-size: 1.8rem; }

/* ---------- griglia foto semplice ---------- */
.mosaico { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mosaico a { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.mosaico img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mosaico a:hover img { transform: scale(1.04); }

/* ---------- due colonne testo+foto ---------- */
.spezzato { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 820px) { .spezzato { grid-template-columns: 1fr; } }
.spezzato figure { aspect-ratio: 4 / 5; overflow: hidden; }
.spezzato figure img { width: 100%; height: 100%; object-fit: cover; }
.spezzato--orizzontale figure { aspect-ratio: 16 / 11; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--blu); padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- header: bottone Prenota compatto e allineato ---------- */
.testata nav a { line-height: 1.4; }
.testata nav .btn {
  padding: 0.55em 1.5em; font-size: 0.95rem;
  border-bottom: 0; margin-left: 6px;
}
.testata nav .btn:hover { border-bottom: 0; }

/* ---------- header invertito per hero chiari ---------- */
body.hero-chiaro .testata:not(.solida) nav a { color: var(--blu); }
body.hero-chiaro .testata:not(.solida) nav .btn { color: #fff; }
body.hero-chiaro .testata:not(.solida) .testata__burger { color: var(--blu); }
body.hero-chiaro .testata:not(.solida) .logo--bianco { display: none; }
body.hero-chiaro .testata:not(.solida) .logo--blu { display: block; }
body.hero-chiaro .eroe { color: var(--blu); }
body.hero-chiaro .eroe::after {
  background: linear-gradient(200deg, rgba(244,248,251,0) 30%, rgba(244,248,251,0.88) 100%);
}
body.hero-chiaro .eroe__testo h1 { color: var(--blu); }
body.hero-chiaro .eroe__testo h1 em { color: var(--azzurro); }
body.hero-chiaro .eroe__sotto { color: var(--pietra); }
body.hero-chiaro .btn--fantasma { color: var(--blu); border-color: rgba(22,54,92,.45); }
body.hero-chiaro .btn--fantasma:hover { border-color: var(--blu); }

/* ---------- giostra camere (carosello scroll-snap) ---------- */
.giostra__testa { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.giostra__frecce { display: flex; gap: 10px; }
.giostra__frecce button {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--blu); background: transparent; color: var(--blu);
  font-size: 1.2rem; cursor: pointer; display: grid; place-items: center;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
.giostra__frecce button:hover { background: var(--blu); color: #fff; }
.giostra__frecce button:disabled { opacity: .3; pointer-events: none; }
.giostra {
  display: flex; gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-inline: max(calc((100vw - var(--larghezza)) / 2 + var(--gutter)), var(--gutter));
  padding-block: 6px 18px;
  scrollbar-width: none;
}
.giostra::-webkit-scrollbar { display: none; }
.giostra__carta {
  flex: 0 0 clamp(280px, 26vw, 380px);
  scroll-snap-align: start; text-decoration: none; display: block;
}
.giostra__carta figure { aspect-ratio: 3 / 4; overflow: hidden; }
.giostra__carta img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.giostra__carta:hover img { transform: scale(1.03); }
.giostra__nome {
  font-family: var(--font-display); font-weight: 600; color: var(--blu);
  font-size: clamp(1.9rem, 2.6vw, 2.6rem); line-height: 1;
  margin-top: -0.58em; position: relative; padding-inline: 8px 0;
  text-shadow: 0 0 14px var(--fondo), 0 0 28px var(--fondo);
}
.giostra__carta:hover .giostra__nome { color: var(--azzurro-scuro); }
.giostra__dati { margin-top: 8px; padding-inline: 8px 0; font-size: .95rem; color: var(--pietra); }
.giostra__dati strong { color: var(--blu); font-weight: 600; }
.giostra__contatore { font-size: .95rem; color: var(--pietra); margin-right: 14px; }
.giostra__coda {
  flex: 0 0 clamp(280px, 26vw, 380px); scroll-snap-align: start;
  background: var(--blu-notte); aspect-ratio: 3 / 4.45;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; text-align: center; padding: 28px; text-decoration: none;
}
.giostra__coda em {
  font-family: var(--font-display); font-style: italic; color: #fff; font-size: 1.5rem; line-height: 1.3;
}
@media (max-width: 560px) {
  .giostra__carta, .giostra__coda { flex-basis: 78vw; }
  .giostra__frecce { display: none; }
}

/* ---------- fili tratteggiati di sfondo (si disegnano allo scroll) ---------- */
.con-filo { position: relative; }
.filo-sfondo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; color: var(--azzurro); opacity: .35; z-index: 0;
}
.con-filo > .contenitore { position: relative; z-index: 1; }
.sezione--notte .filo-sfondo { color: var(--cielo); opacity: .3; }

/* ---------- comparsa contenuti ---------- */
html.con-js .rivela {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
html.con-js .rivela.visibile { opacity: 1; transform: none; }
html.con-js .rivela--2 { transition-delay: .12s; }
html.con-js .rivela--3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html.con-js .rivela { opacity: 1 !important; transform: none !important; }
}

/* ---------- bottone a contorno ---------- */
.btn--contorno { background: transparent; color: var(--blu); border-color: var(--blu); }
.btn--contorno:hover { background: var(--blu); color: #fff; }

/* ---------- titoli bilanciati ---------- */
h1, h2, .lead { text-wrap: balance; }

/* ---------- mini carta (dal menù) ---------- */
.carta--mini .voce { font-size: 1.15rem; white-space: normal; }
.carta--mini .nota { font-size: .9rem; }
.carta--mini li { padding-block: 9px; }
.carta__cappello {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.1rem; color: var(--azzurro-scuro); margin-bottom: 6px;
}

/* ---------- home: la tavola (ristorante) ---------- */
.tavola { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto auto 90px; }
.tavola__titolo {
  grid-column: 9 / 13; grid-row: 1; z-index: 2; margin-bottom: -0.45em;
  padding-left: clamp(20px, 2.5vw, 36px);
  text-shadow: 0 0 18px var(--fondo), 0 0 36px var(--fondo);
}
.tavola__foto-a { grid-column: 1 / 8; grid-row: 2 / 4; aspect-ratio: 4 / 5; overflow: hidden; }
.tavola__foto-a img, .tavola__foto-b img { width: 100%; height: 100%; object-fit: cover; }
.tavola__foto-b {
  grid-column: 6 / 9; grid-row: 3 / 5; aspect-ratio: 3 / 4; overflow: hidden;
  border: 10px solid var(--fondo); z-index: 1; align-self: end;
}
.tavola__corpo {
  grid-column: 9 / 13; grid-row: 2 / 4;
  padding: clamp(24px, 3vw, 48px) 0 0 clamp(20px, 2.5vw, 36px);
}
.tavola__corpo .carta--mini { margin-top: 22px; }
.tavola__azioni { margin-top: 26px; }
.tavola__tel { margin-top: 12px; font-size: .95rem; }
@media (max-width: 820px) {
  .tavola { display: block; }
  .tavola__titolo { margin-bottom: .4em; text-shadow: none; }
  .tavola__foto-a { aspect-ratio: 4 / 5; }
  .tavola__foto-b { width: 58%; margin: -72px 0 0 auto; }
  .tavola__corpo { padding: 26px 0 0; }
}

/* ---------- home: il giorno lungo (ricevimenti) ---------- */
.giorno { position: relative; overflow: hidden; height: clamp(520px, 72vh, 760px); display: flex; align-items: center; }
.giorno__foto { position: absolute; inset: 0; z-index: 0; }
.giorno__foto img { width: 100%; height: 100%; object-fit: cover; }
.giorno::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(244,248,251,.94) 0, rgba(244,248,251,.78) 34%, rgba(244,248,251,0) 62%);
}
.giorno .contenitore { position: relative; z-index: 2; }
.giorno h2 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
.giorno p { margin-top: 14px; max-width: 42ch; color: var(--pietra); }
.giorno__azioni { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.strip {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; align-items: end;
  margin-top: clamp(-96px, -7vw, -64px); position: relative; z-index: 2;
}
.strip figure { margin: 0; }
.strip img { width: 100%; height: 100%; object-fit: cover; border: 8px solid var(--fondo); box-sizing: border-box; }
.strip__a { grid-column: 2 / 5; aspect-ratio: 3 / 4; }
.strip__b { grid-column: 5 / 8; aspect-ratio: 3 / 4; }
.strip__c { grid-column: 8 / 12; aspect-ratio: 16 / 10; }
.strip figcaption {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.05rem; color: var(--pietra); margin-top: 10px;
}
@media (max-width: 820px) {
  .giorno { height: 70svh; }
  .giorno::after { background: linear-gradient(0deg, rgba(244,248,251,.95) 20%, rgba(244,248,251,0) 70%); }
  .strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: -48px; }
  .strip > figure { flex: 0 0 64vw; scroll-snap-align: start; }
}

/* Il testo del bottone Prenota resta bianco in ogni stato dell'header. */
.testata nav a.btn { color: #fff !important; }

/* ---------- filo unico: una sola linea continua sotto tutti i contenuti ---------- */
.filo-tela { position: relative; }
.filo-tela > .filo-sfondo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.filo-tela > section { position: relative; z-index: 1; }

/* ---------- schede mete (territorio): polaroid + appunto sfasato ---------- */
.mosaico--schede { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 26px; }
@media (max-width: 980px) { .mosaico--schede { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mosaico--schede { grid-template-columns: 1fr; } }
.scheda-meta figure {
  aspect-ratio: 4 / 3; overflow: hidden; margin: 0;
  border: 8px solid #fff;
  box-shadow: 0 14px 36px rgba(22, 54, 92, 0.14);
}
.scheda-meta img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.scheda-meta:hover img { transform: scale(1.04); }
.scheda-meta__corpo {
  position: relative; z-index: 1;
  background: rgba(252, 253, 254, 0.97);
  border: 1.5px dashed #BCD8EE;
  padding: 16px 18px 18px;
  width: calc(100% - 48px);
  margin: -44px auto 0;
  box-shadow: 0 12px 30px rgba(22, 54, 92, 0.08);
}
.scheda-meta h3 { font-size: 1.45rem; }
.scheda-meta__distanza {
  font-family: "Caveat", cursive; font-size: 1.25rem;
  color: var(--azzurro-scuro); margin: 2px 0 8px;
}
.scheda-meta__corpo p:last-child { font-size: .95rem; }

/* ---------- aeroplanino in punta al filo ---------- */
.filo-aereo {
  position: absolute; top: 0; left: 0;
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  z-index: 0; pointer-events: none;
  color: var(--azzurro);
  transition: opacity .3s ease;
  will-change: transform;
}
.filo-aereo svg { display: block; width: 100%; height: 100%; fill: currentColor; filter: drop-shadow(0 2px 6px rgba(22, 54, 92, 0.3)); }

/* ---------- sfondo: costa cilentana a matita, verticale a destra ---------- */
.sfondo-costa {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(26vw, 360px);
  z-index: -1; pointer-events: none;
}
.sfondo-costa svg { display: block; width: 100%; height: 100%; }
.costa-terra { fill: url(#ombreggiatura); opacity: .55; }
.costa-profilo {
  stroke: #B9D6EC; stroke-width: 1.8; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.costa-profilo--eco { stroke: #D6E7F4; stroke-width: 1.3; }
.costa-onda { stroke: #D9E9F6; stroke-width: 1.3; stroke-linecap: round; }
.costa-poi circle { fill: none; stroke: #A9CCE8; stroke-width: 1.4; }
.costa-poi text, .costa-polla text {
  font-family: "Caveat", cursive; font-size: 17px;
  fill: #9FC4E2; text-anchor: end;
}
.costa-polla path { fill: none; stroke: #9CC4E4; stroke-width: 1.4; }
.costa-polla text { text-anchor: middle; font-size: 18px; font-weight: 600; }
.costa-polla .costa-polla__sotto { font-size: 14px; font-weight: 500; }
.sfondo-costa .poi { opacity: 0; transition: opacity .7s ease; }
.sfondo-costa .poi.visibile { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .sfondo-costa .poi { opacity: 1; }
  .costa-profilo { stroke-dashoffset: 0 !important; }
}
@media (max-width: 1100px) { .sfondo-costa { display: none; } }

/* ---------- territorio: schede "appunto di viaggio" ---------- */
.banda--appunto { margin-bottom: clamp(84px, 12vw, 160px); }
.banda--appunto .banda__foto {
  border: 10px solid #fff;
  box-shadow: 0 18px 50px rgba(22, 54, 92, 0.15);
}
.banda--appunto .banda__corpo {
  transform: translateY(clamp(30px, 5vw, 64px));
  background: rgba(252, 253, 254, 0.96);
  border: 1.5px dashed #BCD8EE;
  padding: clamp(22px, 3vw, 36px);
  box-shadow: 0 16px 44px rgba(22, 54, 92, 0.09);
}
.banda--appunto .banda__nome {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  text-shadow: none;
}
.banda--appunto .banda__dati {
  background: none; padding: 0; margin-top: 8px;
  font-family: "Caveat", cursive; font-size: 1.35rem;
  color: var(--azzurro-scuro);
}
.banda--appunto .banda__dati strong { color: inherit; font-weight: 600; }
.banda--appunto p:last-child { margin-top: 10px; }
@media (max-width: 760px) {
  .banda--appunto .banda__corpo { transform: none; margin-top: -48px; margin-inline: 12px; }
  .banda--appunto { margin-bottom: clamp(40px, 7vw, 96px); }
}

/* ---------- camere: scheda appunto e galleria polaroid ---------- */
.appunto-scheda {
  background: rgba(252, 253, 254, 0.97);
  border: 1.5px dashed #BCD8EE;
  padding: clamp(18px, 2.5vw, 28px);
  margin-top: 28px;
  box-shadow: 0 12px 30px rgba(22, 54, 92, 0.08);
}
.appunto-scheda__titolo {
  font-family: "Caveat", cursive; font-size: 1.4rem;
  color: var(--azzurro-scuro);
}
.prezzo-mano {
  font-family: "Caveat", cursive; font-size: 1.45rem;
  color: var(--azzurro-scuro); font-weight: 600;
}
.galleria { gap: 22px 16px; }
.galleria a {
  border: 6px solid #fff;
  box-shadow: 0 10px 26px rgba(22, 54, 92, 0.14);
  transition: transform .35s ease;
}
.galleria a:nth-child(3n+1) { transform: rotate(-1.3deg); }
.galleria a:nth-child(3n+2) { transform: rotate(0.9deg); }
.galleria a:nth-child(3n)   { transform: rotate(-0.5deg); }
.galleria a:hover { transform: rotate(0) scale(1.02); z-index: 1; }
.galleria a:hover img { transform: none; }
@media (prefers-reduced-motion: reduce) { .galleria a { transform: none; } }


/* ---------- footer: panorama del Vallo a matita ---------- */
.fondo { padding-top: 0; }
.fondo__panorama {
  display: block; width: min(1180px, 92vw); height: auto;
  margin: 0 auto; padding-top: 26px;
  color: #9FC4E2; opacity: 0.6;
}
.fondo__panorama-nota {
  font-family: "Caveat", cursive; font-size: 19px;
  fill: #9FC4E2; text-anchor: middle;
}
.fondo .contenitore { padding-top: clamp(30px, 4vw, 48px); }
@media (max-width: 760px) { .fondo__panorama { opacity: 0.4; } }


/* ---------- regola prefooter: sezione notte col disegno a matita centrato ---------- */
.prefooter { position: relative; overflow: hidden; }
.prefooter .contenitore { position: relative; z-index: 1; }
.prefooter__vettore {
  position: absolute; right: clamp(-30px, 3vw, 90px);
  top: 50%; transform: translateY(-50%);
  width: min(42vw, 530px); height: auto;
  color: var(--cielo); opacity: 0.38; pointer-events: none;
}
@media (max-width: 860px) {
  .prefooter__vettore { width: 80vw; right: -12vw; opacity: 0.2; }
}

/* ---------- scheda-meta cliccabile (altre camere) ---------- */
.scheda-meta--link { display: block; text-decoration: none; color: inherit; }
.scheda-meta--link h3 { color: var(--blu); transition: color .2s ease; }
.scheda-meta--link:hover h3 { color: var(--azzurro-scuro); }

/* ---------- scheda-meta: sottotitolo e descrizione clampata ---------- */
.scheda-meta__sottotitolo {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.08rem; color: var(--blu); margin-bottom: 6px;
}
.scheda-meta__descrizione {
  font-size: .95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* le card-link delle camere non sono foto del mosaico: niente taglio */
.mosaico a.scheda-meta--link {
  aspect-ratio: auto;
  overflow: visible;
  height: auto;
}
.mosaico a.scheda-meta--link img { height: 100%; }

/* ---------- polaroid con didascalia a mano ---------- */
.polaroide {
  margin: 0; background: #fff; padding: 8px;
  box-shadow: 0 14px 36px rgba(22, 54, 92, 0.14);
}
.polaroide img { width: 100%; height: auto; display: block; }
.polaroide a { display: block; }
.polaroide figcaption {
  font-family: "Caveat", cursive; font-size: 1.25rem;
  color: var(--azzurro-scuro); text-align: center; padding: 10px 6px 12px;
}
.duo-polaroid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px); align-items: start;
}
.duo-polaroid .polaroide--sx { transform: rotate(-1.4deg); }
.duo-polaroid .polaroide--dx { transform: rotate(1.1deg); margin-top: 34px; }
.duo-polaroid--menu { max-width: 860px; }
.duo-polaroid--menu .polaroide:first-child { transform: rotate(-0.9deg); }
.duo-polaroid--menu .polaroide:last-child { transform: rotate(0.8deg); margin-top: 20px; }
@media (max-width: 700px) { .duo-polaroid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .duo-polaroid .polaroide { transform: none; } }
.spezzato .polaroide { aspect-ratio: auto; }

.polaroide--lead { transform: rotate(1deg); max-width: 560px; justify-self: end; align-self: center; }
@media (prefers-reduced-motion: reduce) { .polaroide--lead { transform: none; } }

/* ---------- vetrina eventi: card grande + 2 file da 2 miniature ---------- */
.mosaico--vetrina { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mosaico--vetrina > a:first-child {
  grid-column: 1 / 3; grid-row: 1 / 3;
  display: flex; flex-direction: column;
}
.mosaico--vetrina > a:first-child figure { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; }
.mosaico--vetrina > a:first-child figure img { height: 100%; object-fit: cover; }
@media (max-width: 980px) {
  .mosaico--vetrina { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaico--vetrina > a:first-child { grid-column: 1 / -1; grid-row: auto; display: block; }
  .mosaico--vetrina > a:first-child figure { aspect-ratio: 4 / 3; }
}

/* vetrina alternata: nei gruppi pari la card grande sta a destra */
@media (min-width: 981px) {
  .mosaico--vetrina-dx > a:first-child { grid-column: 3 / 5; }
}

/* Evento senza testo: locandina centrale. */
.evento-centro { max-width: 640px; text-align: center; }
.evento-centro .polaroide { margin: 28px auto 0; max-width: 480px; }
.evento-centro__azioni { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.evento-centro .prosa { margin-top: 30px; text-align: center; }

/* Dove siamo: mappa polaroid e appunti d'arrivo. */
.scheda-griglia--pari { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.polaroide--mappa { transform: rotate(.6deg); }
.polaroide--mappa iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.pila-polaroid { display: grid; gap: clamp(26px, 3.5vw, 46px); align-content: start; }
.pila-polaroid .polaroide + .polaroide { transform: rotate(1deg); }
@media (prefers-reduced-motion: reduce) {
  .polaroide--mappa, .pila-polaroid .polaroide + .polaroide { transform: none; }
}
.appunti-tre { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.appunti-tre .appunto-scheda { margin-top: 28px; }
.appunto-scheda--mezzo .appunto-scheda__titolo { text-align: center; font-size: 1.55rem; }
.appunto-scheda__icona {
  display: block; width: 58px; height: auto; margin: 4px auto 10px;
  color: var(--azzurro); fill: none;
  stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 860px) { .appunti-tre { grid-template-columns: 1fr; } }

/* Gallery: l'album effervescente. */
.album { columns: 3 300px; column-gap: 30px; }
.album__foto {
  break-inside: avoid; margin: 0 0 34px; position: relative;
  transition: transform .35s ease, box-shadow .35s ease;
}
.album__foto:nth-child(3n+1) { transform: rotate(-1.3deg); }
.album__foto:nth-child(3n+2) { transform: rotate(1.1deg); }
.album__foto:nth-child(5n+3) { transform: rotate(-.6deg); }
.album__foto:hover { transform: rotate(0) translateY(-6px); box-shadow: 0 22px 48px rgba(22, 54, 92, .22); z-index: 2; }
.album__foto.nascosta { display: none; }
.filtri { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.filtro {
  font-family: "Caveat", cursive; font-size: 1.35rem; line-height: 1;
  color: var(--azzurro-scuro); background: #fff;
  border: 1.6px dashed #BCD8EE; border-radius: 999px;
  padding: 9px 20px 11px; cursor: pointer;
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}
.filtro:hover { border-color: var(--azzurro); }
.filtro.attivo { background: var(--azzurro-scuro); border: 1.6px solid var(--azzurro-scuro); color: #fff; }
.bollicine { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bollicine span {
  position: absolute; bottom: -40px; border-radius: 50%;
  border: 2px solid rgba(46, 127, 194, .2);
  animation-name: bolla-su; animation-timing-function: linear; animation-iteration-count: infinite;
}
@keyframes bolla-su {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: 1; }
  100% { transform: translateY(-115vh); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bollicine { display: none; }
  .album__foto, .album__foto:nth-child(n) { transform: none; }
}

/* Le polaroid dell'album si "sviluppano" allo scroll: da lattiginose a nitide. */
html.con-js .album__foto img {
  filter: brightness(1.5) contrast(.45) saturate(.15) sepia(.18) blur(1.5px);
  transition: filter 1.8s ease;
}
html.con-js .album__foto.visibile img {
  filter: brightness(1) contrast(1) saturate(1) sepia(0) blur(0);
}
html.con-js .album__foto.visibile:nth-child(3n+2) img { transition-delay: .3s; }
html.con-js .album__foto.visibile:nth-child(3n) img { transition-delay: .6s; }
@media (prefers-reduced-motion: reduce) {
  html.con-js .album__foto img { filter: none; transition: none; }
}

/* Giostra camere in linguaggio scheda-meta (polaroid + appunto). */
.giostra { padding-block: 6px 36px; }
.giostra .scheda-meta__corpo { padding: 14px 16px 16px; }
.giostra__coda {
  background: rgba(252, 253, 254, 0.97);
  border: 1.5px dashed #BCD8EE;
  box-shadow: 0 12px 30px rgba(22, 54, 92, 0.08);
  aspect-ratio: auto;
}
.giostra__coda em {
  font-family: "Caveat", cursive; font-style: normal;
  color: var(--azzurro-scuro); font-size: 1.75rem; line-height: 1.25;
}

/* Ricevimenti in home: testi con alone chiaro sulla foto, strip in polaroid. */
.giorno h2, .giorno p {
  text-shadow:
    0 0 2px var(--fondo), 0 0 5px var(--fondo), 0 0 9px var(--fondo),
    0 0 16px var(--fondo), 0 0 28px var(--fondo), 0 0 46px var(--fondo), 0 0 70px var(--fondo);
}
.giorno p { color: var(--blu); }
.strip .polaroide { padding: 8px; display: flex; flex-direction: column; }
.strip .polaroide img { border: 0; flex: 1 1 auto; min-height: 0; }
.strip__a.polaroide, .strip__b.polaroide, .strip__c.polaroide {
  grid-column: auto; aspect-ratio: 3 / 4.4;
}
@media (min-width: 821px) {
  .strip { grid-template-columns: repeat(3, clamp(240px, 24vw, 320px)); justify-content: center; gap: clamp(20px, 3vw, 44px); }
}
.strip__a.polaroide { transform: rotate(-1.2deg); }
.strip__b.polaroide { transform: rotate(.9deg); }
.strip__c.polaroide { transform: rotate(-.5deg); }
@media (prefers-reduced-motion: reduce) { .strip .polaroide { transform: none; } }
/* Link leggibili sulle sezioni notte. */
.sezione--notte a:not(.btn) { color: var(--cielo); }

/* Mazzetto di polaroid: mini gallery impilata, clic sulla prima e si sfoglia. */
.mazzetto { position: relative; aspect-ratio: 1 / 1.1; max-width: 480px; justify-self: center; align-self: center; width: 100%; }
.mazzetto__foto {
  position: absolute; inset: 0;
  transition: transform .45s ease;
}
.mazzetto__foto a { position: absolute; inset: 8px 8px 50px; display: block; overflow: hidden; }
.mazzetto__foto:not(:first-child) a { inset: 8px; }
.mazzetto__foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mazzetto__foto figcaption { position: absolute; left: 8px; right: 8px; bottom: 4px; }
.mazzetto__foto:nth-child(1) { z-index: 5; transform: rotate(-1.2deg); }
.mazzetto__foto:nth-child(2) { z-index: 4; transform: rotate(4deg) translate(14px, -8px); }
.mazzetto__foto:nth-child(3) { z-index: 3; transform: rotate(-5deg) translate(-16px, 10px); }
.mazzetto__foto:nth-child(4) { z-index: 2; transform: rotate(7deg) translate(24px, 14px); }
.mazzetto__foto:nth-child(5) { z-index: 1; transform: rotate(-8.5deg) translate(-26px, -14px); }
.mazzetto:hover .mazzetto__foto:nth-child(1) { transform: rotate(0) translateY(-4px); }
.mazzetto:hover .mazzetto__foto:nth-child(2) { transform: rotate(6.5deg) translate(22px, -13px); }
.mazzetto:hover .mazzetto__foto:nth-child(3) { transform: rotate(-7.5deg) translate(-25px, 15px); }
.mazzetto:hover .mazzetto__foto:nth-child(4) { transform: rotate(10deg) translate(34px, 20px); }
.mazzetto:hover .mazzetto__foto:nth-child(5) { transform: rotate(-12deg) translate(-37px, -20px); }
@media (prefers-reduced-motion: reduce) {
  .mazzetto__foto, .mazzetto:hover .mazzetto__foto { transition: none; }
}

/* Consenso cookie: appunto fisso in basso a sinistra. */
.consenso {
  position: fixed; left: 18px; bottom: 18px; z-index: 95;
  max-width: 440px; width: calc(100% - 36px);
  background: rgba(252, 253, 254, 0.98);
  border: 1.5px dashed #BCD8EE;
  box-shadow: 0 18px 50px rgba(22, 54, 92, 0.25);
  padding: 20px 22px;
}
.consenso[hidden] { display: none; }
.consenso__titolo { font-family: "Caveat", cursive; font-size: 1.5rem; color: var(--azzurro-scuro); }
.consenso p + p { margin-top: 6px; font-size: .93rem; color: var(--pietra); }
.consenso__azioni { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.consenso__azioni .btn { padding-block: 10px; }
.consenso__azioni a { font-size: .9rem; color: var(--azzurro-scuro); }

/* La mappa di Google si carica solo dopo il consenso. */
.mappa-cornice { position: relative; }
.mappa-velo {
  position: absolute; inset: 0; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: repeating-linear-gradient(0deg, #F4F8FB 0, #F4F8FB 43px, rgba(22, 54, 92, 0.05) 44px);
  text-align: center; padding: 24px;
}
.mappa-bloccata .mappa-velo { display: flex; }
.mappa-velo p { max-width: 34ch; color: var(--pietra); font-size: .95rem; }

/* Modulo contatti: campi in stile quaderno. */
.modulo form > label, .modulo .modulo__riga label { display: block; margin-top: 14px; font-weight: 600; color: var(--blu); }
.modulo label span { font-weight: 400; font-size: .85rem; color: var(--pietra); }
.modulo input[type="text"], .modulo input[type="email"], .modulo input[type="tel"], .modulo textarea {
  width: 100%; margin-top: 6px; padding: 11px 13px;
  border: 1.5px solid #BCD8EE; background: #fff;
  font: inherit; color: var(--blu-notte);
}
.modulo input:focus, .modulo textarea:focus {
  outline: none; border-color: var(--azzurro);
  box-shadow: 0 0 0 3px rgba(46, 127, 194, .15);
}
.modulo textarea { resize: vertical; }
.modulo__riga { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .modulo__riga { grid-template-columns: 1fr; } }
.modulo__privacy {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 16px;
  font-weight: 400 !important; font-size: .9rem; color: var(--pietra);
}
.modulo__privacy input { margin-top: 3px; accent-color: var(--azzurro); }
.modulo__privacy a { color: var(--azzurro-scuro); }
.modulo__nascosto { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.modulo__esito { padding: 12px 14px; border: 1.5px dashed; margin-bottom: 8px; }
.modulo__esito--ok { border-color: #9CC79B; background: #F2F8F0; color: #2F5D2E; }
.modulo__esito--no { border-color: #D9A6A6; background: #FBF2F2; color: #7A3030; }

/* Menu nativi: le voci partecipano al layout come link semplici. */
.testata nav ul.menu-testata, .testata nav ul.menu-testata li { display: contents; }
