/* Villa Tormalina — palette sabbia, corallo, turchese; Gatwick + Cormorant Garamond */
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
/* Gatwick viene caricato da fonts.cdnfonts.com nel <head> */

:root {
  --sand: #E8D08A;
  --coral: #D4635A;
  --teal: #3DBFB8;
  --dark: #1C1C1C;
  --offwhite: #FAFAF8;
  --white: #FFFFFF;
  --mid: #4A4A4A;
  --muted: #7A7A7A;
  --earth: #3A2A1E;        /* testo nei moduli */
  --earth-label: #7A4A3A;
  --stone: #D4C9B0;        /* fondo dei moduli */
  --line: rgba(100, 70, 50, .14);
  --grad: linear-gradient(135deg, #E8D08A 0%, #D4635A 50%, #3DBFB8 100%);
  --grad-soft: linear-gradient(120deg, rgba(232,208,138,.25) 0%, rgba(212,99,90,.15) 50%, rgba(61,191,184,.20) 100%);
  --font-t: "Gatwick", "Century Gothic", Futura, sans-serif;
  --font-b: "Cormorant Garamond", Georgia, serif;
  --wrap: 74rem;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--offwhite); color: var(--dark); font: 400 1.2rem/1.75 var(--font-b); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 0; background: var(--coral); color: #fff; padding: .6rem 1rem; z-index: 20; font-family: var(--font-t); font-size: .8rem; }
.skip:focus { left: 1rem; top: 1rem; }

/* Elementi ricorrenti */
.ga { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.grad-band { height: 5px; background: var(--grad); }
.sl { display: block; font-family: var(--font-t); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; }

h1, h2, h3 { font-family: var(--font-t); font-weight: 400; margin: 0; }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.15; letter-spacing: .02em; margin-bottom: 1.5rem; }
h3 { font-size: 1.15rem; letter-spacing: .03em; line-height: 1.3; }
p { margin: 0 0 1.25rem; max-width: 60ch; color: var(--mid); font-size: 1.2rem; line-height: 1.8; }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.25rem; padding: 1rem 1.9rem; border-radius: 10px; border: 1.5px solid transparent; font-family: var(--font-t); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: opacity .25s, background-color .25s, color .25s, border-color .25s; }
.btn-grad { background: var(--grad); color: #fff; border: 0; }
.btn-grad:hover { opacity: .88; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-line { border-color: rgba(212,99,90,.5); color: var(--coral); }
.btn-line:hover { background: var(--coral); color: #fff; border-color: var(--coral); }
.btn svg { width: 1.15rem; height: 1.15rem; }

/* Navigazione: trasparente sopra la foto */
.nav { position: absolute; inset: 0 0 auto; z-index: 10; color: #fff; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.logo b { font-family: var(--font-t); font-weight: 400; font-size: 1.15rem; letter-spacing: .06em; }
.logo small { font-family: var(--font-t); font-size: .58rem; letter-spacing: .32em; text-transform: uppercase; opacity: .75; margin-top: .35rem; }
.nav ul { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav ul a { font-family: var(--font-t); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; opacity: .85; transition: opacity .2s; }
.nav ul a:hover { opacity: 1; }
.nav .nav-cta { opacity: 1; padding: .7rem 1.2rem; border-radius: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); }
.nav .nav-cta:hover { background: rgba(255,255,255,.25); }
@media (max-width: 760px) { .nav ul li:not(:last-child) { display: none; } }

/* Hero a tutta pagina */
.hero { position: relative; min-height: min(100svh, 56rem); display: flex; align-items: flex-end; color: #fff; background: var(--dark); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,14,8,.6) 0%, rgba(20,14,8,.25) 45%, rgba(20,14,8,0) 70%), linear-gradient(180deg, rgba(20,14,8,.5) 0%, rgba(20,14,8,.05) 30%, rgba(20,14,8,.2) 55%, rgba(20,14,8,.75) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 9rem; padding-bottom: clamp(3rem, 8vw, 6rem); }
.hero .sl { color: #F3E3B0; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.hero h1 { font-size: clamp(3rem, 7.5vw, 6.5rem); line-height: 1; letter-spacing: .02em; margin-bottom: 1.5rem; max-width: 12ch; }
.hero-lead { color: rgba(255,255,255,.88); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.55; max-width: 34ch; margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
@media (prefers-reduced-motion: no-preference) {
  .hero-img { animation: respiro 2.2s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes respiro { from { transform: scale(1.06); opacity: .4; } to { transform: none; opacity: 1; } }
}

/* Dati essenziali */
.fatti { background: var(--white); border-bottom: 1px solid var(--line); }
.fatti dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.fatti dl > div { padding: 2rem 1rem 2rem 0; }
.fatti dl > div + div { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.fatti dt { font-family: var(--font-t); font-size: clamp(1.25rem, 2.2vw, 1.7rem); letter-spacing: .02em; line-height: 1.2; }
.fatti dd { margin: .35rem 0 0; color: var(--muted); font-size: 1.1rem; }
@media (max-width: 760px) {
  .fatti dl { grid-template-columns: 1fr 1fr; }
  .fatti dl > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .fatti dl > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Sezioni */
.sezione { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.sezione.stretta { padding-top: 0; }
.due-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
@media (max-width: 860px) { .due-col { grid-template-columns: 1fr; } }

.spazi { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.spazi li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.spazi strong { font-family: var(--font-t); font-weight: 400; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--earth-label); }
.spazi span { color: var(--mid); font-size: 1.15rem; }
@media (max-width: 480px) { .spazi li { grid-template-columns: 1fr; gap: .2rem; } }

/* Galleria */
.galleria { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(9rem, 18vw, 15rem); gap: .9rem; }
.galleria figure { margin: 0; position: relative; overflow: hidden; border-radius: 14px; background: var(--stone); }
.galleria img { width: 100%; height: 100%; object-fit: cover; }
.galleria figcaption { position: absolute; left: .85rem; bottom: .85rem; background: rgba(250,250,248,.92); color: var(--dark); font-family: var(--font-t); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; padding: .5rem .8rem; border-radius: 6px; }
.g1 { grid-column: span 4; grid-row: span 2; }
.g2, .g3, .g4, .g5 { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) {
  .galleria { grid-template-columns: 1fr 1fr; grid-auto-rows: 11rem; }
  .g1, .g5 { grid-column: span 2; }
  .g2, .g3, .g4 { grid-column: span 1; }
}

/* Comfort */
.comfort { background: var(--grad-soft), var(--offwhite); }
.lista-comfort { columns: 2; column-gap: clamp(2rem, 6vw, 5.5rem); list-style: none; padding: 0; margin: 0; }
.lista-comfort li { break-inside: avoid; padding: .9rem 0 .9rem 1.6rem; border-bottom: 1px solid var(--line); position: relative; color: var(--earth); font-size: 1.2rem; }
.lista-comfort li::before { content: ""; position: absolute; left: 0; top: 1.5rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--grad); }
@media (max-width: 600px) { .lista-comfort { columns: 1; } }

/* Dove siamo */
.distanze { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.distanze li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.2rem; }
.distanze li span:last-child { font-family: var(--font-t); font-size: .8rem; letter-spacing: .12em; color: var(--coral); white-space: nowrap; }
.link-testo { display: inline-block; margin-top: .5rem; font-family: var(--font-t); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--coral); text-decoration: none; border-bottom: 1px solid rgba(212,99,90,.4); padding-bottom: .2rem; }
.link-testo:hover { border-bottom-color: var(--coral); }

/* Recensioni */
.recensioni { background: var(--dark); color: #fff; }
.recensioni h2 { color: #fff; }
.recensioni .sl { color: var(--sand); }
.punteggi { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2.5rem 0 3rem; }
.punteggio { padding: 1.75rem 1.75rem 1.6rem; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: .35rem; }
.punteggio strong { font-family: var(--font-t); font-weight: 400; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; letter-spacing: .01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.punteggio span { font-size: 1.2rem; color: #fff; }
.punteggio small { font-size: 1.05rem; color: rgba(255,255,255,.6); }
.citazioni { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3.5rem; }
.citazioni blockquote { margin: 0; padding-left: 1.5rem; border-left: 2px solid; border-image: var(--grad) 1; }
.citazioni p { color: rgba(255,255,255,.88); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.45rem); line-height: 1.5; margin: 0 0 .9rem; max-width: none; }
.citazioni cite { font-family: var(--font-t); font-style: normal; font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sand); }
.nota-recensioni { margin: 2.75rem 0 1.5rem; font-size: 1rem; color: rgba(255,255,255,.5); }
.link-recensioni { display: flex; flex-wrap: wrap; gap: .85rem; }
@media (max-width: 760px) { .punteggi, .citazioni { grid-template-columns: 1fr; } .citazioni { gap: 2rem; } }

/* Prenotazione */
.perche { list-style: none; padding: 0; margin: 1.75rem 0 2.25rem; }
.perche li { padding: .8rem 0 .8rem 1.6rem; border-bottom: 1px solid var(--line); position: relative; color: var(--earth); }
.perche li:first-child { border-top: 1px solid var(--line); }
.perche li::before { content: ""; position: absolute; left: 0; top: 1.4rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--grad); }
.contatti a { display: flex; align-items: center; gap: .7rem; text-decoration: none; padding: .45rem 0; font-size: 1.2rem; color: var(--earth); }
.contatti a:hover { color: var(--coral); }
.contatti svg { width: 1.25rem; height: 1.25rem; color: var(--coral); flex: none; }

.modulo { border-radius: 16px; overflow: hidden; background: var(--stone); box-shadow: 0 32px 80px rgba(58,42,30,.18); }
.modulo-testa { background: var(--grad); padding: 1.6rem 2.2rem 1.4rem; color: #fff; }
.modulo-testa span { display: block; font-family: var(--font-t); font-size: .65rem; letter-spacing: .3em; text-transform: uppercase; opacity: .8; margin-bottom: .35rem; }
.modulo-testa strong { font-family: var(--font-t); font-weight: 400; font-size: 1.5rem; letter-spacing: .03em; }
.modulo-corpo { padding: 1.8rem 2.2rem 2rem; }
.campi { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
.campo { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.campo.pieno { grid-column: 1 / -1; }
.campo label { font-family: var(--font-t); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--earth-label); }
.campo input, .campo select, .campo textarea { font: 400 1.1rem var(--font-b); color: var(--earth); background: rgba(255,255,255,.6); border: 1.5px solid rgba(100,70,50,.2); border-radius: 10px; padding: .75rem .9rem; min-height: 3.1rem; width: 100%; transition: border-color .2s, background-color .2s; }
.campo textarea { min-height: 6.5rem; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--coral); background: #fff; }
.notti { grid-column: 1 / -1; margin: -.2rem 0 0; min-height: 1.4em; font-size: 1.1rem; color: var(--coral); font-weight: 500; }
.notti.errore { color: #A8322A; }
.consenso { grid-column: 1 / -1; display: flex; gap: .75rem; align-items: flex-start; font-size: 1.05rem; line-height: 1.5; color: var(--earth); }
.consenso input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; accent-color: var(--coral); flex: none; }
.modulo .btn { width: 100%; margin-top: 1.4rem; min-height: 3.6rem; font-size: .82rem; letter-spacing: .22em; }
.nota { text-align: center; font-size: 1rem; color: rgba(58,42,30,.55); margin: .9rem auto 0; }
.nascosto { position: absolute; left: -9999px; }
@media (max-width: 560px) { .campi { grid-template-columns: 1fr; } .modulo-corpo, .modulo-testa { padding-left: 1.4rem; padding-right: 1.4rem; } }

/* Footer */
.footer { background: var(--dark); color: rgba(255,255,255,.55); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem 3rem; padding-top: 3.5rem; padding-bottom: 3rem; }
.footer .logo { color: #fff; margin-bottom: 1rem; }
.footer p { color: rgba(255,255,255,.55); font-size: 1.05rem; margin: 0 0 .25rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; }
.footer ul a { font-family: var(--font-t); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: rgba(255,255,255,.45); transition: color .2s; }
.footer ul a:hover { color: var(--sand); }
.cin { font-family: var(--font-t); font-size: .62rem !important; letter-spacing: .14em; }

/* Pagine semplici (grazie, privacy) */
.testata { background: var(--dark); color: #fff; }
.testata .wrap { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pagina { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.pagina .wrap { max-width: 46rem; }
.pagina h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin-bottom: 1.5rem; }
.pagina h2 { font-size: 1.1rem; letter-spacing: .06em; margin: 2.5rem 0 .75rem; }

/* Selettore lingua */
.nav-destra { display: flex; align-items: center; gap: 1.75rem; }
.lingue { display: flex; gap: .15rem; }
.lingue button { background: none; border: 0; color: inherit; cursor: pointer; font-family: var(--font-t); font-size: .66rem; letter-spacing: .18em; padding: .55rem .5rem; opacity: .55; border-bottom: 2px solid transparent; transition: opacity .2s; }
.lingue button:hover { opacity: .9; }
.lingue button[aria-pressed="true"] { opacity: 1; border-image: var(--grad) 1; border-bottom-width: 2px; border-bottom-style: solid; }
.testata .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
@media (max-width: 760px) { .nav-destra { gap: .75rem; } }

/* Galleria: tasselli cliccabili e album */
.galleria .apri-foto { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.galleria .apri-foto:focus-visible { outline: 2px solid var(--coral); outline-offset: -4px; }
.galleria img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.galleria figure:hover img { transform: scale(1.03); }
.tutte-foto { margin-top: 1.5rem; }
.album { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--dark); color: #fff; }
.album::backdrop { background: rgba(20,14,8,.85); }
.album[open] { display: flex; flex-direction: column; }
.album-testa { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--pad); border-bottom: 1px solid rgba(255,255,255,.12); flex: none; }
.album-testa span { font-family: var(--font-t); font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; opacity: .7; }
.album-chiudi { background: rgba(255,255,255,.12); border: 0; color: #fff; width: 2.75rem; height: 2.75rem; border-radius: 50%; font-size: 1.1rem; cursor: pointer; }
.album-chiudi:hover { background: rgba(255,255,255,.25); }
.album-foto { overflow-y: auto; flex: 1; padding: 1.5rem var(--pad) 3rem; display: grid; gap: 1.75rem; justify-content: center; grid-template-columns: minmax(0, 46rem); overscroll-behavior: contain; }
.album-foto figure { margin: 0; }
.album-foto img { width: 100%; border-radius: 10px; background: #2a2a2a; }
.album-foto figcaption { margin-top: .6rem; font-size: 1.1rem; color: rgba(255,255,255,.7); }
.logo small { white-space: nowrap; }
@media (max-width: 420px) { .logo small { letter-spacing: .18em; } .lingue button { padding: .55rem .35rem; } }
.errore-invio { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 10px; background: rgba(168,50,42,.1); border: 1px solid rgba(168,50,42,.35); color: #8A2A22; font-size: 1.05rem; }
.modulo .btn:disabled { opacity: .6; cursor: wait; }
