/* Righe dal KID · espresso, oro antico, bianco. Titoli in Playfair corsivo, testo Open Sans leggero */
:root {
  --espresso: #0F0E0C;
  --oro: #9D9168;
  --oro-testo: #6E6447;
  --notte: #17252A;
  --ardesia: #46707F;
  --crema: #EEE5CA;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; }
body { margin: 0; background: #FFF; color: var(--notte); font: 400 1.0625rem/1.7 "Open Sans", Arial, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ardesia); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
em { font-family: "Playfair Display", Georgia, serif; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; left: 10px; top: 10px; z-index: 99; width: auto; height: auto; clip: auto; padding: 10px 14px; background: #FFF; }
.h-container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 20px; }
.h-container--text { max-width: 820px; }

/* barra in alto */
.h-top-bar { background: #000; color: #FFF; font-size: 0.875rem; }
.h-top-bar__facts { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; padding: 9px 0; list-style: none; }
.h-top-bar__facts li, .h-top-bar__facts a { display: inline-flex; align-items: center; gap: 7px; color: #FFF; text-decoration: none; }
.h-top-bar svg { width: 14px; height: 14px; }

/* testata centrata su fondo a motivo */
.onetap-header-top {
  position: relative;
  background-color: #1B1712;
  background-image:
    radial-gradient(circle at 50% 50%, transparent 0 18px, rgba(157, 145, 104, .22) 19px 21px, transparent 22px),
    linear-gradient(45deg, transparent 46%, rgba(157, 145, 104, .14) 47% 53%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, rgba(157, 145, 104, .14) 47% 53%, transparent 54%);
  background-size: 120px 120px;
  color: #FFF;
}
.h-header-center { display: flex; flex-direction: column; align-items: center; padding-top: 22px; }
.h-logo img { width: 240px; }
.h-menu ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 34px; margin: 22px 0 0; padding: 0; list-style: none; }
.h-menu a { display: block; padding: 8px 0; color: #FFF; font-weight: 600; font-size: 0.875rem; text-transform: uppercase; text-decoration: none; }
.h-menu a:hover, .h-menu .current-menu-item a { color: var(--oro); }
.h-menu-toggle { display: none; }

/* eroe */
.h-hero { position: relative; padding: 120px 0 190px; text-align: center; }
.h-hero__inner { position: relative; z-index: 1; max-width: 880px; }
.h-hero__title { font: 300 clamp(2rem, 5vw, 3.125rem)/1.15 "Open Sans", Arial, sans-serif; text-transform: uppercase; }
.h-hero__sub { margin: 18px 0 10px; font-size: clamp(1.1875rem, 2.2vw, 1.625rem); }
.h-hero__lead { max-width: 700px; margin: 0 auto 30px; color: var(--crema); }
.h-hero__divider { position: absolute; left: 0; right: 0; bottom: -1px; height: 160px; background: var(--espresso); clip-path: polygon(0 100%, 0 70%, 50% 0, 100% 70%, 100% 100%); }

.h-button {
  display: inline-block;
  padding: 15px 30px;
  border: 2px solid var(--oro);
  border-radius: 5px;
  background: var(--oro-testo);
  color: #FFF;
  font: 600 0.875rem/1.3 "Open Sans", Arial, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.h-button--pill { border-radius: 56px; background: var(--notte); }
.h-button--pill:hover { background: #24363C; }
.h-button--dark { padding: 9px 22px; border-radius: 10px; background: var(--notte); font-size: 0.75rem; }
.h-button--line { background: transparent; color: var(--notte); }
.h-linklike { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* blocchi della home */
.h-section { padding: 90px 0; }
.h-section--dark { background: var(--espresso); color: #FFF; }
.h-section--dark a { color: var(--crema); }
.h-about { padding-top: 40px; }
.h-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.h-about__grid > * { min-width: 0; }
.h-title-mixed { margin-bottom: 14px; font: 300 clamp(1.875rem, 3.6vw, 2.75rem)/1.2 "Open Sans", Arial, sans-serif; }
.h-title-mixed em { color: var(--oro); font-weight: 400; }
.h-about__kicker { font-size: 1.3125rem; font-weight: 300; }
.h-frame { position: relative; padding: 0 28px 28px 0; }
.h-frame::after { content: ""; position: absolute; left: 28px; top: 28px; right: 0; bottom: 0; border: 8px solid var(--oro); z-index: 0; }
.h-frame__img { position: relative; z-index: 1; width: 100%; aspect-ratio: 11 / 13; object-fit: cover; }

.h-title-italic { margin-bottom: 50px; color: var(--oro-testo); font: italic 600 clamp(1.875rem, 3.6vw, 2.625rem)/1.2 "Playfair Display", Georgia, serif; text-align: center; }
.h-features__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 900px; margin: 0 auto; }
.h-card { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 30px 32px 34px; border: 1px solid #E8E8E8; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); text-align: center; color: var(--ardesia); }
.h-card__icon { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 20px; border: 2px solid var(--oro); border-radius: 50%; color: var(--oro-testo); }
.h-card__icon svg { width: 40px; height: 40px; }
.h-card h3 { margin-bottom: 14px; color: var(--notte); font-size: 1.1875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.h-card p { flex: 1; }

/* scheda sovrapposta */
.h-overlap__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.h-overlap__grid > * { min-width: 0; }
.h-overlap__card { position: relative; z-index: 2; margin-right: -60px; padding: 70px 100px 70px 70px; border-radius: 5px; background: #FFF; color: var(--ardesia); }
.h-overlap__card .h-title-mixed { color: var(--notte); }
.kid-out { margin-top: 24px; padding: 18px 20px; border-left: 4px solid var(--oro); background: #F7F4EA; }
.kid-out p { margin: 0 0 6px; color: var(--notte); }
.kid-out b { color: var(--notte); font-family: Consolas, "Courier New", monospace; }
.kid-out__note { margin: 6px 0 0 !important; color: var(--ardesia) !important; font-size: 0.9375rem; }
.kid-sheet { position: relative; z-index: 1; padding: 40px 34px 30px 90px; border-radius: 5px; background: #FBFAF6; color: var(--notte); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.kid-sheet__head { margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--notte); font-weight: 700; font-size: 0.9375rem; }
.kid-sheet__head span { float: right; font-weight: 400; }
.kid-sheet__line { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 8px; padding: 11px 14px; border: 1px solid #DDD6BF; border-radius: 5px; background: #FFF; color: var(--notte); font: inherit; font-size: 0.9375rem; text-align: left; cursor: pointer; }
.kid-sheet__line:hover { border-color: var(--oro); }
.kid-sheet__line[aria-pressed="true"] { border-color: var(--oro-testo); background: var(--crema); }
.kid-sheet__n { display: grid; place-items: center; flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--notte); color: #FFF; font-size: 0.8125rem; }
.kid-sheet__foot { margin: 14px 0 0; color: var(--ardesia); font-size: 0.8125rem; font-style: italic; }

/* galleria */
.h-title-light { font: 300 clamp(1.875rem, 3.8vw, 2.75rem)/1.2 "Open Sans", Arial, sans-serif; text-align: center; }
.h-subtitle { margin: 12px 0 50px; color: var(--ardesia); font-weight: 300; text-align: center; }
.h-gallery__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.h-gallery__img { width: 100%; aspect-ratio: 566 / 328; object-fit: cover; }

/* invito */
.h-cta { position: relative; padding: 80px 0; overflow: hidden; color: #FFF; text-align: center; }
.h-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h-cta::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(15, 14, 12, .72); }
.h-cta__inner { position: relative; z-index: 2; max-width: 820px; }
.h-cta__text { text-shadow: 0 2px 8px rgba(0, 0, 0, .7); font: 400 clamp(1.1875rem, 2vw, 1.375rem)/2 "Playfair Display", Georgia, serif; }

/* fisarmonica */
.h-faq__item { border-bottom: 1px solid #E1DCCB; }
.h-faq__item summary { position: relative; padding: 18px 40px 18px 0; color: var(--notte); font-weight: 600; cursor: pointer; list-style: none; }
.h-faq__item summary::-webkit-details-marker { display: none; }
.h-faq__item summary::after { content: ""; position: absolute; right: 8px; top: 24px; width: 9px; height: 9px; border-right: 2px solid var(--oro-testo); border-bottom: 2px solid var(--oro-testo); transform: rotate(45deg); }
.h-faq__item[open] summary::after { transform: rotate(-135deg); top: 28px; }
.h-faq__item p { color: var(--ardesia); }

/* interne e legali */
.h-page-title { padding: 60px 0 70px; text-align: center; }
.h-crumbs { margin-bottom: 14px; color: var(--crema); font-size: 0.875rem; }
.h-crumbs a { color: var(--crema); }
.h-page-title h1 { font: 300 clamp(1.875rem, 4.4vw, 2.875rem)/1.15 "Open Sans", Arial, sans-serif; text-transform: uppercase; overflow-wrap: break-word; }
.h-page-title__sub { margin: 14px 0 0; font-size: 1.375rem; }
.h-section--page h2 { margin: 40px 0 14px; color: var(--notte); font-size: 1.625rem; font-weight: 400; }
.h-section--page h2 em { color: var(--oro-testo); }
.legal .h-section--page h2 { font-size: 1.25rem; font-weight: 600; }
.h-section--page p, .h-section--page li { color: #2C4048; }
.h-wide { width: 100%; aspect-ratio: 55 / 28; object-fit: cover; margin: 34px 0; border-radius: 5px; }
.h-split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; margin: 34px 0; }
.h-split--rev { grid-template-columns: 1.3fr 1fr; }
.h-split > * { min-width: 0; }
.h-split h2:first-child { margin-top: 0; }
.h-split__img { width: 100%; object-fit: cover; border-radius: 5px; }
.h-float { float: right; width: 40%; margin: 6px 0 20px 30px; border-radius: 5px; }
.h-list { padding-left: 20px; }

/* richiesta del posto */
.h-form { margin: 0 0 40px; padding: 34px; border-top: 4px solid var(--oro); background: #FAF8F1; }
.h-form__row { margin-bottom: 18px; }
.h-form__row label { display: block; margin-bottom: 6px; font-weight: 600; }
.h-form__row label span { color: var(--ardesia); font-weight: 400; }
.h-form input[type="text"], .h-form input[type="email"], .h-form select { width: 100%; padding: 12px 14px; border: 1px solid #B9B094; border-radius: 5px; background: #FFF; color: var(--notte); font: inherit; font-size: 1rem; }
.h-form input:invalid:not(:placeholder-shown), .h-form .is-wrong { border-color: #A1342A; }
.h-form__help { display: block; margin-top: 4px; color: var(--ardesia); font-size: 0.875rem; }
.h-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.h-form__check { font-size: 0.9375rem; }
.h-notice { margin-bottom: 24px; padding: 18px 22px; border-left: 4px solid var(--oro); background: #F7F4EA; color: var(--notte); }

/* chiusura scura */
.h-footer { padding: 70px 0 30px; background: var(--espresso); color: var(--crema); }
.h-footer a { color: var(--crema); }
.h-footer__cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 50px; }
.h-footer__cols > * { min-width: 0; }
.h-footer__col img { width: 200px; margin-bottom: 18px; }
.h-footer__title { margin-bottom: 10px; color: var(--oro); font: italic 400 1.5rem "Playfair Display", Georgia, serif; }
.h-footer__legal { margin: 14px 0 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.h-footer__legal li { margin-bottom: 6px; }
.h-footer__copy { max-width: 1170px; margin: 40px auto 0; padding: 18px 20px 0; border-top: 1px solid #333129; font-size: 0.875rem; text-align: center; }

/* consenso */
.cookie-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .55); }
.cookie-modal__box { width: min(520px, 100%); padding: 30px; border-radius: 10px; background: #FFF; color: var(--notte); }
.cookie-modal__title { margin-bottom: 10px; font-size: 1.375rem; }
.cookie-modal__title em { color: var(--oro-testo); }
.cookie-modal__cats { display: grid; gap: 6px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid #E1DCCB; border-radius: 5px; }
.cookie-modal__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-modal .h-button { padding: 11px 16px; font-size: 0.8125rem; }

@media (max-width: 1023px) {
  .h-menu-toggle { display: grid; place-items: center; width: 46px; height: 46px; margin-top: 10px; border: 1px solid var(--oro); border-radius: 5px; background: transparent; cursor: pointer; }
  .h-menu-toggle__bars, .h-menu-toggle__bars::before, .h-menu-toggle__bars::after { display: block; width: 22px; height: 2px; background: #FFF; }
  .h-menu-toggle__bars { position: relative; }
  .h-menu-toggle__bars::before, .h-menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .h-menu-toggle__bars::before { top: -7px; }
  .h-menu-toggle__bars::after { top: 7px; }
  .h-menu { display: none; width: 100%; }
  .h-menu.is-open { display: block; }
  .h-menu ul { flex-direction: column; align-items: center; gap: 0; margin-top: 10px; }
  .h-overlap__card { margin-right: 0; padding: 40px 30px; }
  .h-overlap__grid { grid-template-columns: 1fr; gap: 30px; }
  .kid-sheet { padding: 30px 22px; }
}

@media (max-width: 767px) {
  body { font-size: 1rem; }
  .h-top-bar__facts li:nth-child(-n+2) { display: none; }
  .h-logo img { width: 180px; }
  .h-hero { padding: 60px 0 130px; }
  .h-hero__divider { height: 90px; }
  .h-section { padding: 60px 0; }
  .h-about__grid, .h-features__row, .h-gallery__grid, .h-split, .h-split--rev, .h-footer__cols { grid-template-columns: 1fr; gap: 30px; }
  .h-float { float: none; width: 100%; margin: 20px 0; }
  .h-form { padding: 22px 16px; }
  .kid-sheet__head span { float: none; display: block; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ritmi diversi per blocco, come nel tema */
.h-top-bar__row { min-height: 40px; }
.onetap-header-top--home .h-header-center { padding-top: 30px; }
.h-features { padding: 70px 0 110px; }
.h-overlap { padding: 110px 0 80px; }
.h-gallery { padding: 90px 0 50px; }
.h-faq { padding: 50px 0 100px; background: #FBFAF6; }

@media (max-width: 1023px) {
  .h-header-center { position: relative; }
  .h-menu-toggle { position: absolute; top: 14px; right: 20px; margin-top: 0; }
}
