/* =========================================================
   Tenuta Ferrata – Pagina Experience
   Colori e font allineati al tema i01timbertheme (tenutaferrata.it)
   ========================================================= */

/* Montserrat ospitato sul sito (stessi file del tema): nessuna chiamata a Google Fonts */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/montserrat-v26-latin-300.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-v26-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-v26-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-v26-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-v26-latin-700.woff2") format("woff2"); }

:root {
  --tf-black: #000;
  --tf-text: #111;
  --tf-white: #fff;
  --tf-gold: #ac8200;
  --tf-gold-dark: #8f6c00;
  --tf-red: #c72835;
  --tf-blue: #52b3da;
  --tf-cream: #fff7eb;
  --tf-gray-bg: #f5f5f5;
  --tf-gray-line: #d9d9d9;
  --tf-gray-border: #9c9c9c;
  --tf-gray-text: #8a8a8a;
  --tf-error: #dc3545;

  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 3.125vw, 60px);
  --radius: 16px;
  --header-h: 72px;
}

@media (min-width: 1200px) {
  :root { --header-h: 112px; }
}

/* ---------- Reset essenziale ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--tf-text);
  background: var(--tf-white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--tf-black);
  color: var(--tf-white);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--tf-gold);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1920px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(1500px + 2 * var(--gutter));
}

/* Nel layout il form è più rientrato delle card (210px a 1920px) */
@media (min-width: 1200px) {
  .container--narrow {
    max-width: 1920px;
    padding-inline: clamp(var(--gutter), 10.9vw, 210px);
  }
}
@media (min-width: 1921px) {
  .container--narrow { max-width: calc(1500px + 420px); }
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--tf-white);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.site-header__logo { flex-shrink: 0; }
.site-header__logo .logo-desktop { display: none; width: 252px; }
.site-header__logo .logo-mobile { width: 146px; }

.nav-toggle {
  padding: 8px 0;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

/* --- Menu mobile (overlay) --- */
.main-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 20px var(--gutter) 48px;
  overflow-y: auto;
  background: var(--tf-black);
  color: var(--tf-white);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.main-nav.is-open { opacity: 1; visibility: visible; }

.main-nav__mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: calc(var(--header-h) - 20px);
}
.main-nav__close {
  border: 0;
  background: none;
  color: inherit;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

.main-nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 24px;
}
.main-nav__list a {
  position: relative;
  font-size: 18px;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}
/* Voce attiva: grassetto (come sul sito; il pallino compare solo da desktop) */
.main-nav__list a.is-active { font-weight: 700; }

/* Selettore lingua: ITA | EN, lingua attiva in grassetto con pallino sotto */
.lang-switch {
  display: flex;
  align-items: center;
  font-size: 16px;
  letter-spacing: .02em;
}
.lang-switch li + li::before {
  content: "|";
  margin-inline: 6px;
  font-weight: 400;
}
.lang-switch a {
  position: relative;
  text-decoration: none;
  transition: opacity .3s ease;
}
.lang-switch a:hover { opacity: .6; }
.lang-switch a.is-active { font-weight: 700; }
.lang-switch a.is-active:hover { opacity: 1; }
.lang-switch a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

.social-list { display: flex; gap: 16px; }
.social-list a { display: inline-flex; padding: 2px; }

@media (min-width: 1200px) {
  /* Logo | menu centrato nella pagina | selettore lingua a destra */
  /* Le colonne laterali non scendono sotto la larghezza di logo e lingua:
     con 5 voci, sotto ~1400px il menu si sposta un po' a destra invece di sovrapporsi al logo */
  .site-header__inner {
    display: grid;
    grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
    column-gap: 24px;
  }
  .main-nav__menu { grid-column: 2; }
  .lang-switch {
    grid-column: 3;
    justify-self: end;
    font-size: 15px;
  }

  .site-header__logo .logo-desktop { display: block; }
  .site-header__logo .logo-mobile,
  .nav-toggle,
  .main-nav__mobile-head,
  .main-nav__social { display: none; }

  /* Da desktop il contenitore dell'overlay "sparisce": menu e lingua diventano celle della griglia */
  .main-nav {
    position: static;
    display: contents;
    color: inherit;
    opacity: 1;
    visibility: visible;
  }
  .main-nav__list {
    flex-direction: row;
    gap: 0;
    margin: 0;
  }
  .main-nav__list a {
    display: block;
    padding: .5rem clamp(12px, 1.6vw, 35px);
    font-size: 1rem;
    letter-spacing: .02em;
    transition: opacity .5s ease-in-out;
  }

  /* Hover come sul sito: le altre voci si attenuano */
  .main-nav__list:hover a { opacity: .3; }
  .main-nav__list a:hover,
  .main-nav__list a:focus-visible { opacity: 1; }

  /* Voce attiva: pallino nero centrato sotto il testo */
  .main-nav__list a.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    transform: translateX(-50%);
  }
}

/* =========================================================
   INTRO
   ========================================================= */
.intro {
  padding-block: clamp(48px, 5vw, 96px) clamp(56px, 7.3vw, 140px);
  text-align: center;
}

.intro__title {
  font-size: clamp(2.125rem, 1.3rem + 3.1vw, 4.75rem);
  line-height: 1.08;
  letter-spacing: .005em;
  text-transform: uppercase;
}
.intro__title span { display: block; }
.intro__title-light { font-weight: 400; }
.intro__title-bold { font-weight: 700; }

.intro__body {
  max-width: 920px;
  margin: clamp(28px, 3vw, 56px) auto 0;
  font-size: clamp(15px, .85rem + .2vw, 19px);
  line-height: 1.6;
}
.intro__body p + p { margin-top: 1em; }
.intro__body strong { font-weight: 700; }

.intro__subtitle {
  margin-bottom: clamp(14px, 1.3vw, 24px);
  font-size: clamp(1.0625rem, .9rem + .45vw, 1.5rem);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.u-upper { text-transform: uppercase; }

/* =========================================================
   CARD EXPERIENCE
   ========================================================= */
.experiences { padding-bottom: clamp(64px, 7.5vw, 144px); }

.experiences__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 64px;
  max-width: 560px;
  margin-inline: auto;
}

.exp-card { display: flex; }

.exp-card__link {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: inherit;
  text-align: center;
  text-decoration: none;
}

/* Le proporzioni stanno sul contenitore e la foto lo riempie in assoluto:
   così Firefox non usa le dimensioni reali del file (1134×1226) per calcolare
   l'altezza delle righe della griglia (altrimenti comparivano grandi spazi vuoti) */
.exp-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 567 / 613;
  overflow: hidden;
}
.exp-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s ease;
}

.exp-card__title {
  margin-top: clamp(24px, 2.4vw, 46px);
  padding-inline: 8px;
  color: var(--accent);
  font-size: clamp(1.25rem, .95rem + .8vw, 1.875rem);
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.exp-card__text {
  flex-grow: 1;
  max-width: 500px;
  margin: clamp(16px, 1.6vw, 28px) auto clamp(28px, 2.2vw, 42px);
  padding-inline: 12px;
  font-size: clamp(16px, .9rem + .3vw, 21px);
  line-height: 1.55;
}

.exp-card__offer {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.exp-card__details {
  padding: clamp(28px, 3vw, 58px) 20px clamp(28px, 2.6vw, 50px);
  background: var(--tf-cream);
  font-size: clamp(15px, .85rem + .25vw, 20px);
  font-weight: 700;
  line-height: 1.6;
}

.exp-card__duration {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(20px, 2vw, 36px);
  color: var(--accent);
}
.exp-card__duration svg { width: 1.05em; height: 1.05em; }

.exp-card__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .22em;
  padding: clamp(18px, 1.8vw, 34px) 16px clamp(22px, 2vw, 38px);
  background: var(--accent);
  color: var(--tf-white);
  font-size: clamp(16px, .9rem + .6vw, 28px); /* base per le unità em */
}
.exp-card__currency { font-size: 2em; font-weight: 700; line-height: 1; }
.exp-card__amount  { font-size: 3em; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.exp-card__per     { font-size: 1.12em; font-weight: 400; margin-left: .15em; }

.exp-card__link:hover .exp-card__img { opacity: .9; }
.exp-card__link:hover .exp-card__offer {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .45);
}

@media (min-width: 992px) {
  .experiences__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 2.45vw, 47px);
    max-width: none;
  }
  /* Titoli su una riga centrati nello spazio di due, come da layout */
  .exp-card__title {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5em;
  }

  /* Subgrid: titoli, testi e box offerta allineati tra le tre card */
  @supports (grid-template-rows: subgrid) {
    .experiences__grid { row-gap: 0; }
    .exp-card,
    .exp-card__link {
      display: grid;
      grid-row: span 4;
      grid-template-rows: subgrid;
    }
    .exp-card__offer { display: flex; flex-direction: column; }
    .exp-card__details {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      flex-grow: 1;
    }
  }
}

/* =========================================================
   PRENOTAZIONE
   ========================================================= */
.booking {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 6vw, 115px) clamp(48px, 4.5vw, 86px);
  background: var(--tf-gray-bg);
}

/* Pittogramma decorativo in basso a destra (file fornito dal cliente, già in grigio chiaro) */
.booking__emblem {
  position: absolute;
  right: -170px;
  bottom: -110px;
  width: clamp(380px, 32vw, 620px);
  height: auto;
  pointer-events: none;
  user-select: none;
}

.booking .container { position: relative; }

.booking__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.booking__title {
  font-size: clamp(1.5rem, 1.2rem + .7vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.booking__note {
  max-width: 400px;
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.45;
}
.booking__note strong { font-weight: 700; }

.booking__info-title {
  margin-top: 24px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.booking__contacts {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.45;
}
.booking__contacts span {
  display: inline-block;
  min-width: 64px;
}
.booking__contacts a { text-decoration: none; }
.booking__contacts a[href^="mailto"] { text-decoration: underline; text-underline-offset: 2px; }
.booking__contacts a:hover { color: var(--tf-gold); }

.booking__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px clamp(24px, 2.7vw, 52px);
  align-items: start;
}

.booking__divider {
  margin: clamp(36px, 3.6vw, 56px) 0;
  border: 0;
  border-top: 1px solid var(--tf-gray-line);
}

.booking__veg {
  margin-top: -4px;
  color: var(--tf-gold);
  font-size: 14px;
  font-weight: 700;
}

/* ---------- Campi ---------- */
.field { display: flex; flex-direction: column; min-width: 0; }

.field__label {
  margin-bottom: 6px;
  font-size: clamp(14px, .8rem + .15vw, 17px);
  letter-spacing: .02em;
  line-height: 1.3;
  text-transform: uppercase;
}

.field__control {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--tf-gray-border);
  border-radius: 0;
  background-color: transparent;
  font-size: 16px; /* >=16px evita lo zoom automatico su iOS */
  transition: border-color .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field__control:hover,
.field__control:focus { border-color: var(--tf-black); }
.field__control:focus { outline: none; box-shadow: 0 0 0 1px var(--tf-black); }

textarea.field__control {
  height: auto;
  min-height: 160px;
  padding: 12px 14px;
  resize: vertical;
}

select.field__control {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 9px;
  cursor: pointer;
}
select.field__control:invalid { color: var(--tf-gray-text); }
select.field__control option { color: var(--tf-text); }

input[type="date"].field__control { min-height: 46px; line-height: 44px; }
input[type="date"].field__control::-webkit-date-and-time-value { text-align: left; }
input[type="date"].field__control::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .7; }

/* ---------- Calendario (creato da esperienze.js) ---------- */
.datepicker__anchor { position: relative; }

.datepicker__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}
.datepicker__value {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.datepicker__value.is-placeholder { color: var(--tf-gray-text); }
.datepicker__icon { flex-shrink: 0; }
.datepicker__toggle[aria-expanded="true"] { border-color: var(--tf-black); box-shadow: 0 0 0 1px var(--tf-black); }

.datepicker {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  width: 100%;
  min-width: 284px;
  max-width: 360px;
  padding: 16px 16px 14px;
  border: 1px solid var(--tf-black);
  background: var(--tf-white);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .45);
}
.datepicker[hidden] { display: none; }

.datepicker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.datepicker__month {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.datepicker__nav {
  display: inline-flex;
  padding: 6px;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}
.datepicker__nav:hover { color: var(--tf-gold); }
.datepicker__nav:disabled { color: #c4c4c4; cursor: default; }

.datepicker__grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.datepicker__grid th {
  padding-bottom: 6px;
  color: var(--tf-gray-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.datepicker__grid td { padding: 2px; text-align: center; }

.datepicker__day {
  position: relative;
  width: 100%;
  max-width: 40px;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  font-size: 14px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.datepicker__day:hover { background: var(--tf-cream); }
.datepicker__day:focus-visible { outline: 2px solid var(--tf-gold); outline-offset: 0; }
.datepicker__day[aria-disabled="true"] {
  color: #c4c4c4;
  background: none;
  cursor: not-allowed;
}
.datepicker__day.is-today::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}
.datepicker__day.is-selected,
.datepicker__day.is-selected:hover {
  background: var(--tf-gold);
  color: var(--tf-white);
  font-weight: 700;
}

.datepicker__hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--tf-gray-line);
  color: var(--tf-gray-text);
  font-size: 12px;
  line-height: 1.35;
}
.datepicker__hint::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tf-gold);
}

.field__error {
  min-height: 0;
  margin-top: 6px;
  color: var(--tf-error);
  font-size: 13px;
  line-height: 1.3;
}
.field__error:empty { display: none; }

.field.is-invalid .field__control { border-color: var(--tf-error); }
.field.is-invalid .field__control:focus { box-shadow: 0 0 0 1px var(--tf-error); }

/* ---------- Numero persone ---------- */
.field--inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}
.field--inline .field__label { margin-bottom: 0; }
.field--inline .field__error { flex-basis: 100%; margin-top: 0; }

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.stepper__btn {
  display: inline-flex;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--tf-black);
  cursor: pointer;
  transition: color .2s ease;
}
.stepper__btn:hover { color: var(--tf-gold); }
.stepper__btn:disabled { color: #c4c4c4; cursor: default; }

.stepper__value {
  width: 2.2ch;
  padding: 0;
  border: 0;
  background: none;
  font-size: 24px;
  font-weight: 300;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper__value::-webkit-outer-spin-button,
.stepper__value::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__value:focus { outline: none; box-shadow: 0 1px 0 var(--tf-black); }

/* ---------- Checkbox ---------- */
.check {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}
.check input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.check__box {
  flex-shrink: 0;
  width: 12px; height: 12px;
  margin-top: 4px;
  border: 1px solid currentColor;
  background: transparent;
  transition: background-color .2s ease;
}
.check input:checked + .check__box {
  background: currentColor;
  box-shadow: inset 0 0 0 2px var(--tf-gray-bg);
}
.check input:focus-visible + .check__box { outline: 2px solid var(--tf-gold); outline-offset: 2px; }
.check a { text-decoration: underline; text-underline-offset: 2px; }
.field.is-invalid .check__box { border-color: var(--tf-error); }

/* ---------- Riga invio ---------- */
.booking__submit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 54px;
  padding: 0 40px;
  border: 0;
  border-radius: 999px;
  background: var(--tf-gold);
  box-shadow: 0 0 0 7px rgba(172, 130, 0, .22);
  color: var(--tf-white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.btn-pill:hover { background: var(--tf-gold-dark); box-shadow: 0 0 0 9px rgba(172, 130, 0, .18); }
.btn-pill:disabled { opacity: .65; cursor: progress; }
.btn-pill.is-loading .btn-pill__label::after {
  content: "";
  display: inline-block;
  width: 12px; height: 12px;
  margin-left: 10px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -1px;
  animation: tf-spin .8s linear infinite;
}
@keyframes tf-spin { to { transform: rotate(360deg); } }

.booking__status {
  margin-top: 36px;
  padding: 18px 22px;
  border-left: 4px solid var(--tf-gold);
  background: var(--tf-white);
  font-size: 15px;
}
.booking__status.is-error { border-left-color: var(--tf-error); }
.booking__status strong { display: block; margin-bottom: 2px; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Breakpoint form ---------- */
@media (min-width: 640px) {
  .booking__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
  .field--inline { padding-top: 34px; min-height: 80px; } /* allinea alla riga del select a fianco */
  .booking__submit { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 992px) {
  .booking__row { grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: 32px; }
  .booking__row--submit .booking__aside { display: block; }
}

@media (max-width: 991.98px) {
  .booking__row--submit .booking__aside { display: none; }
}

@media (max-width: 639.98px) {
  .btn-pill { align-self: stretch; }
  .booking__emblem { opacity: .7; }
}

/* =========================================================
   GALLERY (carosello a scorrimento orizzontale)
   ========================================================= */
.gallery {
  --gallery-h: clamp(240px, 32vw, 580px);
  --gallery-gap: clamp(12px, 1.25vw, 24px);
  padding-block: clamp(56px, 6vw, 115px) clamp(56px, 5vw, 96px);
}

.gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 2.4vw, 44px);
}
.gallery__title {
  font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
}
.gallery__title b { font-weight: 700; }

.gallery__nav { display: flex; gap: 10px; flex-shrink: 0; }
.gallery__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--tf-black);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}
.gallery__btn:hover { background: var(--tf-black); color: var(--tf-white); }
.gallery__btn:disabled { opacity: .25; cursor: default; background: none; color: inherit; }

.gallery__track {
  position: relative; /* riferimento per offsetLeft delle slide */
  display: flex;
  gap: var(--gallery-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter);
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline-offset: -2px; }

.gallery__slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.gallery__slide img {
  width: auto;
  height: var(--gallery-h);
  max-width: 86vw;
  object-fit: cover;
  background: var(--tf-gray-bg);
}

.gallery__progress {
  position: relative;
  height: 2px;
  margin-top: clamp(20px, 2vw, 36px);
  overflow: hidden;
  background: var(--tf-gray-line);
}
.gallery__progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 30%;
  background: var(--tf-black);
  transition: transform .15s linear;
}

@media (max-width: 639.98px) {
  .gallery__btn { width: 42px; height: 42px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  padding-top: clamp(56px, 4.3vw, 84px);
  background: var(--tf-black);
  color: var(--tf-white);
  font-size: 14px;
  text-align: center;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
}

.site-footer__logo .logo-desktop { display: none; width: 70px; }
.site-footer__logo .logo-mobile { width: 204px; margin-inline: auto; }

.site-footer__title {
  margin-bottom: 22px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.site-footer__title--normal { text-transform: none; }
.site-footer__title--small { font-size: 13px; }
.site-footer__title--spaced { margin-top: 36px; }

.site-footer__links { display: grid; gap: 10px; }
.site-footer__links a,
.site-footer__bottom a {
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity .2s ease;
}
.site-footer__links a:hover,
.site-footer__bottom a:hover { opacity: .65; }
.site-footer__bottom a { text-transform: none; }
.site-footer__bottom a.u-underline { text-decoration: underline; text-underline-offset: 2px; }

.site-footer__address { line-height: 1.6; }
.site-footer .social-list { justify-content: center; }

/* Newsletter */
.newsletter__input {
  width: 100%;
  padding: 8px 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .7);
  border-radius: 0;
  background: transparent;
  color: var(--tf-white);
  font-size: 14px;
  font-weight: 300;
  text-align: inherit;
}
.newsletter__input::placeholder { color: rgba(255, 255, 255, .75); }
.newsletter__input:focus { outline: none; border-bottom-color: var(--tf-white); }

.newsletter__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}
.check--dark { font-size: 11px; text-align: left; }
.check--dark .check__box { width: 11px; height: 11px; margin-top: 2px; }
.check--dark input:checked + .check__box { box-shadow: inset 0 0 0 2px var(--tf-black); }

.newsletter__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tf-white);
  font-size: 13px;
  font-weight: 300;
  text-transform: uppercase;
  cursor: pointer;
}
.newsletter__btn:hover { opacity: .65; }

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: clamp(56px, 6vw, 110px);
  padding-block: 32px 40px;
}
.site-footer__bottom small { font-size: 13px; }

@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__logo,
  .site-footer__newsletter { grid-column: 1 / -1; }
  .site-footer__newsletter { max-width: 480px; width: 100%; margin-inline: auto; }
}

@media (min-width: 1200px) {
  .site-footer { text-align: left; }
  .site-footer__grid {
    grid-template-columns: 70px repeat(4, minmax(0, 1fr)) minmax(0, 1.8fr);
    gap: clamp(24px, 4vw, 85px);
  }
  .site-footer__logo,
  .site-footer__newsletter { grid-column: auto; }
  .site-footer__newsletter { max-width: none; margin: 0; }
  .site-footer__logo .logo-desktop { display: block; }
  .site-footer__logo .logo-mobile { display: none; }
  .site-footer .social-list { justify-content: flex-start; }
  .newsletter__bottom { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 24px; }
  .check--dark { max-width: 300px; }
  .site-footer__bottom { flex-direction: row; justify-content: space-between; }
}
