/* =========================================================
   Resort Al Castello — foglio di stile principale
   ---------------------------------------------------------
   TUTTI I COLORI DEL SITO SONO QUI SOTTO.
   Per allinearli alla palette di Hibou Bistrot basta
   sostituire i valori esadecimali delle variabili.
   ========================================================= */
:root {
  /* Palette di Hibou Bistrot (rilevata da hiboubistrot.net) */
  --c-bg:          #F6F6F6;  /* sfondo pagina */
  --c-bg-alt:      #EFEFEF;  /* sfondo sezioni alternate */
  --c-surface:     #FFFFFF;  /* card */
  --c-line:        #E3E3E3;  /* bordi e separatori */
  --c-ink:         #1E1E1E;  /* titoli e testo principale */
  --c-ink-soft:    #2F2E2E;  /* testo dei paragrafi */
  --c-muted:       #555555;  /* didascalie */
  --c-primary:     #541038;  /* prugna Hibou: pulsanti "Prenota", sezione vantaggi */
  --c-primary-ink: #FFFFFF;  /* testo sui pulsanti prugna */
  --c-accent:      #541038;  /* occhielli, dettagli */
  --c-dark:        #1E1E1E;  /* barra superiore, contatti */
  --c-darker:      #141414;  /* footer */
  --c-on-dark:     #FFFFFF;  /* testo su sfondi scuri */
  --c-on-dark-soft:#CFCFCF;  /* testo secondario su sfondi scuri */
  --c-highlight:   #E9C9DA;  /* occhielli su sfondi scuri e prugna */
  --c-ph:          #E3E3E3;  /* colore di fondo mentre le foto caricano */
  --c-whatsapp:    #25D366;  /* pulsante WhatsApp, come su Hibou */

  /* Tipografia: Poppins, come su hiboubistrot.net */
  --f-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 6px;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-primary); }
a:hover { color: var(--c-ink); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-dark); color: var(--c-on-dark); }
.section--primary { background: var(--c-primary); color: var(--c-on-dark); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--c-primary); color: var(--c-primary-ink); padding: 12px 18px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }

/* Tipografia */
.eyebrow { display: block; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--c-accent); font-weight: 600; margin-bottom: 14px; }
.section--dark .eyebrow, .section--primary .eyebrow, .hero .eyebrow { color: var(--c-highlight); }
h1, h2 { font-family: var(--f-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.035em; margin: 0; }
h1 { font-size: clamp(38px, 5.6vw, 62px); }
h2 { font-size: clamp(30px, 3.8vw, 42px); }
h3 { margin: 0; }
.h3-serif { font-family: var(--f-display); font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.lead { font-size: 18px; font-weight: 300; color: var(--c-ink-soft); margin: 14px 0 0; max-width: 720px; }
.section--dark .lead, .section--primary .lead { color: #EDEDED; }
.head { margin-bottom: 48px; max-width: 760px; }
.head--row { max-width: none; display: flex; flex-wrap: wrap; gap: 20px 32px; justify-content: space-between; align-items: flex-end; }
.head--row > div { max-width: 720px; }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 14px 32px; border-radius: 999px; font-weight: 600; text-decoration: none; font-family: inherit; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn--primary { background: var(--c-primary); color: var(--c-primary-ink); text-transform: uppercase; font-weight: 500; letter-spacing: .02em; }
.btn--primary:hover { background: #3E0B29; color: var(--c-primary-ink); }
.btn--light { background: var(--c-on-dark); color: var(--c-ink); }
.btn--light:hover { background: #FFFFFF; color: var(--c-ink); }
.btn--ghost-light { border-color: var(--c-on-dark); color: var(--c-on-dark); font-weight: 600; }
.btn--ghost-light:hover { background: var(--c-on-dark); color: var(--c-ink); }
.btn--ghost { border-color: var(--c-ink); color: var(--c-ink); font-weight: 600; }
.btn--ghost:hover { background: var(--c-ink); color: #FFFFFF; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.link-strong { font-weight: 600; }

/* Barra superiore */
.topbar { background: var(--c-dark); color: var(--c-on-dark); font-size: 13px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.topbar a { color: var(--c-on-dark); text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: var(--c-on-dark); }
.topbar__right { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.lang a[aria-current] { font-weight: 700; }

/* Header e menu */
.header { background: var(--c-bg); border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 50; }
.header .wrap { display: flex; gap: 16px 32px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { text-decoration: none; color: var(--c-ink); display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--f-display); font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.brand__tag { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--c-muted); margin-top: 4px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--c-line); border-radius: 4px; width: 48px; height: 48px; cursor: pointer; color: var(--c-ink); align-items: center; justify-content: center; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; align-items: center; }
.nav__list > li { position: relative; }
.nav__list a, .nav__drop-btn { color: var(--c-ink); text-decoration: none; padding: 12px 0; display: inline-flex; align-items: center; gap: 6px; background: none; border: none; font: inherit; cursor: pointer; }
.nav__list a:hover, .nav__drop-btn:hover { color: var(--c-primary); }
.nav__drop-btn svg { transition: transform .2s; }
.nav__drop-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dropdown { position: absolute; top: 100%; left: -20px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(29,34,30,.12); padding: 10px 0; width: 290px; list-style: none; margin: 0; display: none; }
.dropdown.is-open { display: block; }
.dropdown a { display: block; padding: 10px 20px; }
.dropdown__all { border-top: 1px solid var(--c-bg-alt); margin-top: 6px; }
.dropdown__all a { color: var(--c-accent); font-weight: 600; font-size: 14px; }
@media (hover: hover) and (min-width: 961px) {
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
}

/* Hero */
.hero { position: relative; color: var(--c-on-dark); background: var(--c-dark); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(20,20,20,.55); }
.hero .wrap { position: relative; padding-top: 140px; padding-bottom: 72px; }
.hero h1 { max-width: 880px; }
.hero__sub { font-size: 19px; font-weight: 300; max-width: 680px; color: #F0F0F0; margin: 24px 0 32px; }

/* Form disponibilità */
.booking { margin-top: 48px; background: var(--c-bg); color: var(--c-ink); border-radius: var(--radius); padding: 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 170px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select { font: inherit; padding: 12px 18px; border: 1px solid #9A9A9A; border-radius: 999px; background: #FFFFFF; color: var(--c-ink); min-height: 48px; }
.booking .btn { flex: 1 1 200px; }
.booking__note { flex: 1 1 100%; margin: 0; font-size: 13px; color: var(--c-muted); }

/* Griglie e card */
.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.media { background: var(--c-ph); border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.pillar { display: flex; flex-direction: column; gap: 16px; }
.pillar p { margin: 0; color: var(--c-ink-soft); }
.card { background: var(--c-surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--c-line); }
.card .media { border-radius: 0; aspect-ratio: 3 / 2; }
.card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.card__body p { margin: 0; color: var(--c-ink-soft); flex-grow: 1; }
.card__title { font-size: 20px; font-weight: 700; }
.tag { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent); font-weight: 700; }

/* Vantaggi */
.perks { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.perks__intro { flex: 1 1 380px; }
.perks__intro p { margin: 18px 0 28px; font-size: 17px; font-weight: 300; color: #F3E6ED; }
.perks__list { flex: 1 1 520px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 28px; }
.perks__list li { display: flex; gap: 12px; align-items: flex-start; }
.perks__list svg { flex-shrink: 0; margin-top: 4px; }

/* Split (evidenza) */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 460px; }
.split .media { aspect-ratio: 5 / 4; }
.split p { font-size: 17px; color: var(--c-ink-soft); margin: 18px 0; }
.split .note { font-size: 15px; color: var(--c-muted); }

/* Recensioni */
.rating { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 14px 20px; background: var(--c-surface); }
.review { margin: 0; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.review blockquote { margin: 0; font-family: var(--f-display); font-size: 18px; font-weight: 300; font-style: italic; line-height: 1.55; }
.review figcaption { font-size: 14px; color: var(--c-muted); }
.reviews-cta { margin-top: 32px; }

/* Social */
.socials { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.social { display: flex; align-items: center; gap: 12px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 14px 22px; text-decoration: none; color: var(--c-ink); min-width: 200px; }
.social:hover { border-color: var(--c-primary); color: var(--c-ink); }
.social strong { display: block; }
.social span span { font-size: 13px; color: var(--c-muted); }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.ig-grid a { display: block; aspect-ratio: 1 / 1; background: var(--c-ph); border-radius: 4px; overflow: hidden; }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ig-grid a:hover img { transform: scale(1.04); }

/* FAQ */
.faq { max-width: 900px; margin: 0 auto; }
.faq__list { border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 19px; font-weight: 600; }
.faq summary svg { flex-shrink: 0; transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; color: var(--c-ink-soft); max-width: 780px; }

/* Contatti */
.contact { display: flex; flex-wrap: wrap; gap: 48px; }
.contact__info { flex: 1 1 380px; display: flex; flex-direction: column; gap: 22px; }
.contact address { font-style: normal; display: flex; flex-direction: column; gap: 10px; font-size: 17px; color: #EDEDED; }
.contact address a { color: var(--c-on-dark); }
.contact__hours { margin: 0; font-size: 15px; color: var(--c-on-dark-soft); }
.contact__map { flex: 1 1 520px; min-height: 400px; border-radius: var(--radius); overflow: hidden; background: #2A2A2A; }
.contact__map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; }

/* Footer */
.footer { background: var(--c-darker); color: var(--c-on-dark-soft); font-size: 14px; padding: 64px 0 32px; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.footer strong, .footer .brand__name { color: var(--c-on-dark); }
.footer nav { display: flex; flex-direction: column; gap: 8px; }
.footer a { color: var(--c-on-dark-soft); }
.footer a:hover { color: var(--c-on-dark); }
.footer__bottom { border-top: 1px solid #2E2E2E; margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* WhatsApp fisso */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 60px; height: 60px; border-radius: 50%; background: var(--c-whatsapp); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 60; }
.wa-float:hover { background: #1EB955; }

/* Mobile */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--c-bg); border-bottom: 1px solid var(--c-line); flex-direction: column; align-items: stretch; padding: 8px 24px 24px; gap: 12px; max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--c-line); }
  .nav__list a, .nav__drop-btn { width: 100%; justify-content: space-between; padding: 14px 0; }
  .dropdown { position: static; box-shadow: none; border: none; width: auto; padding: 0 0 8px 12px; background: transparent; }
  .nav .btn { width: 100%; }
  .section { padding: 72px 0; }
  .hero .wrap { padding-top: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
