/**
 * Comparto in Luce, tema "luce".
 * Giallo pieno per le azioni, nero per l'alternativa, grigio chiaro per i riquadri.
 */
:root {
  --giallo: #FFCD00;
  --giallo-btn: #FFD400;
  --inchiostro: #1A272E;
  --grigio-box: #F6F6F6;
  --linea: #DDDFE0;
  --puntino: #8EB0E6;
}

html { overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: "Manrope", "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.55; color: var(--inchiostro); background: #FFF; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--inchiostro); }
h1, h2, h3 { margin: 0 0 14px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.18; text-wrap: balance; }
p { margin: 0 0 14px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.visually-hidden.focusable:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: #FFF; padding: 8px 14px; z-index: 99; }
:focus-visible { outline: 3px solid #2B6CD4; outline-offset: 2px; }
.layout-container { max-width: 1110px; margin: 0 auto; padding: 0 20px; }

/* testata */
.header { background: #FFF; border-bottom: 1px solid var(--linea); }
.header .layout-container { display: flex; align-items: center; gap: 22px; min-height: 60px; max-width: 1280px; }
.site-logo img { width: 190px; height: auto; }
.nav-main { display: flex; list-style: none; margin: 0; padding: 0; gap: 22px; flex: 1; }
.nav-link { text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-link:hover, .nav-link[aria-current] { text-decoration: underline; text-underline-offset: 5px; }
.ui-button { display: inline-flex; align-items: center; gap: 8px; border-radius: 22px; padding: 10px 14px; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ui-button--yellow { background: var(--giallo); color: #111; }
.ui-button--outline { border: 1px solid #111; color: #111; }
.top_menu_toggle { display: none; margin-left: auto; border: 1px solid #111; background: #FFF; border-radius: 22px; padding: 8px 14px; font: 700 14px "Manrope", sans-serif; }

/* apertura gialla con la foto della città */
.hero-yellow { position: relative; background: linear-gradient(180deg, #FFCB05 0%, #F9B81C 100%); overflow: hidden; min-height: 400px; }
.hero-yellow__photo { position: absolute; right: 0; top: 0; bottom: 0; width: 44%; }
.hero-yellow__photo img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.hero-yellow .layout-container { position: relative; padding-top: 64px; padding-bottom: 60px; }
.hero-yellow__title { font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; max-width: 640px; margin: 0 0 16px; }
.hero-yellow__lead { font-size: 1.3125rem; line-height: 1.5; max-width: 540px; }
.hero-yellow__claim { margin-top: 48px; font-size: 22px; font-weight: 700; }

/* introduzione centrata */
.intro-center { text-align: center; padding: 70px 0 34px; }
.intro-center h1 { font-size: clamp(28px, 3.2vw, 36px); max-width: 820px; margin: 0 auto 18px; }
.intro-center p { max-width: 38.75rem; margin: 0 auto .75rem; font-size: 1.0625rem; }

/* scheda doppia con "oppure" */
.match-card { background: #FFF; border-radius: 12px; box-shadow: 0 3px 14px rgba(0,0,0,.09); padding: 30px 26px 0; margin: 0 auto 70px; }
.match-card__halves { display: grid; grid-template-columns: 1fr 56px 1fr; }
.match-card__half { padding: 14px 20px 30px; min-width: 0; }
.match-card__half small { font-size: 12px; color: #535D62; }
.match-card__half h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 6px 0 10px; }
.match-card__half p { font-size: 14px; }
.match-card__half dl { font-size: 14px; margin: 0 0 18px; }
.match-card__half dt { font-weight: 700; float: left; clear: left; margin-right: 6px; }
.match-card__half dd { margin: 0 0 6px; }
.match-card__or { position: relative; display: flex; align-items: center; justify-content: center; }
.match-card__or::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px solid var(--linea); }
.match-card__or span { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--linea); background: #FFF; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.btn-wide { display: flex; justify-content: center; align-items: center; gap: 10px; border-radius: 4px; padding: 13px 20px; font-weight: 700; text-decoration: none; }
.btn-wide--yellow { background: #F2C800; color: #111; }
.btn-wide--black { background: #000; color: #FFF; }
.btn-wide:hover { filter: brightness(1.06); }
.match-card__usp { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--linea); margin: 0 -26px; }
.match-card__usp li { list-style: none; display: flex; gap: 10px; align-items: center; justify-content: center; padding: 16px 10px; font-size: 14px; border-left: 1px solid var(--linea); }
.match-card__usp li:first-child { border-left: 0; }
.match-card__usp svg { width: 18px; height: 18px; flex: none; }
.match-card__usp ul { display: contents; }

/* sezione nera: detto chiaramente */
.black-panel { background: #000; color: #FFF; border-radius: 20px; padding: 40px 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 80px; }
.black-panel h2 { color: #FFF; font-size: 30px; }
.black-panel ul { margin: 0; padding: 0; list-style: none; }
.black-panel li { padding: 11px 0; border-bottom: 1px solid #333; }
.black-panel li::before { content: "×"; color: var(--giallo); font-weight: 800; margin-right: 10px; }
.black-panel .limite { background: #222; border-radius: 12px; padding: 22px; align-self: start; }
.black-panel .limite b { display: block; color: var(--giallo); margin-bottom: 6px; }

/* percorso a zig zag con la linea tratteggiata */
.zigzag-head { text-align: center; max-width: 700px; margin: 0 auto 30px; }
.zigzag-head h2 { font-size: clamp(26px, 3vw, 34px); }
.zigzag { position: relative; margin-bottom: 70px; }
.zigzag::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dotted #C4C8CA; }
.zigzag__row { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; margin-bottom: 60px; }
.zigzag__row::after { content: ""; position: absolute; left: calc(50% - 7px); top: 40px; width: 14px; height: 14px; border-radius: 50%; background: var(--puntino); border: 2px solid #FFF; box-shadow: 0 0 0 1px #C9D9F2; }
.zigzag__row:nth-child(even) .zigzag__photo { order: 2; }
.zigzag__photo { position: relative; padding-top: 34px; min-width: 0; }
.zigzag__photo img { border-radius: 12px; width: 100%; aspect-ratio: 1.4; object-fit: cover; }
.zigzag__box { background: var(--grigio-box); border-radius: 20px; padding: 32px 26px; min-width: 0; }
.zigzag__box h3 { font-size: 24px; }
.zigzag__box p { font-size: .9375rem; font-weight: 500; }

/* quattro fogli */
.sheets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 80px; }
.sheet { background: var(--grigio-box); border-radius: 16px; overflow: hidden; min-width: 0; }
.sheet img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.sheet__body { padding: 16px 18px 20px; }
.sheet__when { display: inline-block; background: var(--giallo); font-size: 12px; font-weight: 700; border-radius: 4px; padding: 2px 8px; margin-bottom: 8px; }
.sheet h3 { font-size: 18px; margin-bottom: 6px; }
.sheet p { font-size: .875rem; margin: 0; }

/* tre passi in fascia gialla */
.steps-band { background: var(--giallo); padding: 54px 0; }
.steps-band h2 { font-size: 30px; }
.steps-band ol { list-style: none; counter-reset: p; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 24px; padding: 0; }
.steps-band li { counter-increment: p; background: #FFF; border-radius: 12px; padding: 20px; }
.steps-band li::before { content: counter(p); display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: #000; color: #FFF; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 10px; }
.steps-band li b { display: block; font-size: 18px; }

/* cicli: testo e grande foto */
.cycles { background: #F6F7F7; padding: 64px 0 0; overflow: hidden; }
.cycles__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: end; }
.cycles__text { padding-bottom: 60px; }
.cycles__text small { display: block; letter-spacing: .08em; font-weight: 700; margin-bottom: 10px; }
.cycles__text h2 { font-size: clamp(28px, 3.4vw, 38px); }
.cycles table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 15px; }
.cycles th, .cycles td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--linea); }
.cycles th { font-weight: 700; }
.cycles__photo img { border-radius: 20px 0 0 0; width: 100%; aspect-ratio: 1.3; object-fit: cover; }

/* carosello delle mattine */
.slick-wrap { padding: 70px 0; }
.slick-wrap h2 { font-size: 30px; }
.slick-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.slick-arrows { display: flex; gap: 8px; }
.slick-arrows button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid #111; background: #FFF; cursor: pointer; font-size: 18px; }
.slick-arrows button[disabled] { opacity: .3; }
.slick-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slick-track::-webkit-scrollbar { display: none; }
.slick-slide { flex: 0 0 calc((100% - 36px) / 3); scroll-snap-align: start; background: var(--grigio-box); border-radius: 16px; overflow: hidden; }
.slick-slide img { width: 100%; aspect-ratio: 1.6; object-fit: cover; }
.slick-slide div { padding: 16px 18px 20px; }
.slick-slide b { font-size: 13px; color: #535D62; }
.slick-slide h3 { font-size: 19px; margin: 4px 0 6px; }
.slick-slide p { font-size: 14px; margin: 0; }

/* da Genova */
.city-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--grigio-box); border-radius: 20px; overflow: hidden; margin-bottom: 70px; }
.city-row img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.city-row__text { padding: 40px 36px; }
.city-row__text h2 { font-size: 30px; }

/* domande per argomento */
.faq-topics { padding-bottom: 80px; }
.faq-topics h2 { font-size: 30px; text-align: center; margin-bottom: 26px; }
.faq-topics__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.faq-topics__col h3 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 3px solid var(--giallo); padding-bottom: 8px; }
.faq-topics details { border-bottom: 1px solid var(--linea); }
.faq-topics summary { cursor: pointer; padding: 12px 0; font-weight: 700; }
.faq-topics details p { font-size: 15px; }

/* pagine interne */
.page-head { background: linear-gradient(180deg, #FFCB05, #F9B81C); padding: 46px 0 40px; }
.page-head h1 { font-size: clamp(28px, 3.6vw, 40px); }
.page-head p { font-size: 18px; max-width: 680px; margin: 0; }
.breadcrumb { font-size: 13px; margin-bottom: 10px; }
.node--type-page { position: relative; }
.page-body { max-width: 50rem; margin: 0 auto; padding: 44px 20px 70px; font-size: 17px; line-height: 1.65; overflow-wrap: anywhere; }
.page-body h2 { font-size: 24px; margin-top: 34px; }
.page-body figure { margin: 28px 0; }
.page-body figure img { border-radius: 16px; width: 100%; aspect-ratio: 2; object-fit: cover; }
.page-body figcaption { font-size: 13px; color: #535D62; margin-top: 6px; }
.page-body .grey-box { background: var(--grigio-box); border-radius: 16px; padding: 18px 22px; margin: 24px 0; }
.page--legal .page-body h2 { font-size: 20px; }

/* modulo del ciclo */
.cycle-form { background: var(--grigio-box); border-radius: 20px; padding: 28px; }
.cycle-form fieldset { border: 0; margin: 0 0 22px; padding: 0 0 18px; border-bottom: 1px solid var(--linea); }
.cycle-form legend { font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.cycle-form legend span { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: #000; color: #FFF; align-items: center; justify-content: center; font-size: 13px; margin-right: 8px; }
.opt-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opt-cards label { display: flex; gap: 8px; align-items: flex-start; background: #FFF; border: 1px solid var(--linea); border-radius: 12px; padding: 12px; cursor: pointer; font-size: 15px; }
.opt-cards label:has(input:checked) { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
.cycle-form .field { margin-bottom: 14px; }
.cycle-form .field label { display: block; font-weight: 700; margin-bottom: 4px; }
.cycle-form input[type=text], .cycle-form input[type=email] { width: 100%; padding: 12px; border: 1px solid #B9BEC0; border-radius: 6px; font: 16px "Manrope", sans-serif; background: #FFF; }
.cycle-form input:user-invalid { border-color: #B3261E; background: #FFF6F5; }
.cycle-form .hint { display: block; min-height: 20px; font-size: 13px; color: #B3261E; }
.cycle-form .hp-field { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.cycle-form button { background: var(--giallo-btn); border: 0; border-radius: 6px; padding: 13px 26px; font: 700 16px "Manrope", sans-serif; cursor: pointer; }
.form-done { background: #FFF; border-left: 5px solid var(--giallo); border-radius: 12px; padding: 20px; margin-bottom: 20px; }

/* piede */
.site-footer { background: #1A272E; color: #E8ECEE; padding: 50px 0 26px; font-size: 14px; }
.site-footer a { color: #FFF; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.layout--threecol-section { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 { font-size: 15px; margin: 0 0 12px; color: var(--giallo); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer button { background: none; border: 0; color: #FFF; font: 14px "Manrope", sans-serif; padding: 0; cursor: pointer; }
.site-footer .copy { border-top: 1px solid #34444C; margin-top: 30px; padding-top: 16px; color: #B5C0C5; }

/* consenso in basso a sinistra */
.consent-pop { position: fixed; left: 16px; bottom: 16px; z-index: 80; width: min(360px, calc(100% - 32px)); background: #FFF; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.22); padding: 18px; font-size: 14px; }
.consent-pop p { margin-bottom: 12px; }
.consent-pop .row { display: flex; gap: 8px; flex-wrap: wrap; }
.consent-pop button { flex: 1; border-radius: 6px; padding: 9px 10px; font: 700 13px "Manrope", sans-serif; cursor: pointer; border: 1px solid #111; background: #FFF; }
.consent-pop button.ok { background: var(--giallo); border-color: var(--giallo); }
.consent-pop .more { margin-top: 10px; border-top: 1px solid var(--linea); padding-top: 10px; }
.consent-pop .more label { display: flex; gap: 8px; margin-bottom: 6px; }

@media (max-width: 991px) {
  .nav-main, .header .ui-button { display: none; }
  .top_menu_toggle { display: block; }
  .header.is-open .nav-main { display: flex; flex-direction: column; position: absolute; top: 61px; left: 0; right: 0; background: #FFF; padding: 16px 20px; border-bottom: 1px solid var(--linea); z-index: 50; }
  .header { position: relative; }
  .sheets { grid-template-columns: 1fr 1fr; }
  .slick-slide { flex-basis: calc((100% - 18px) / 2); }
  .faq-topics__grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .hero-yellow__photo { position: relative; width: 100%; height: 220px; }
  .hero-yellow__photo img { mask-image: none; -webkit-mask-image: none; }
  .hero-yellow .layout-container { padding-top: 30px; padding-bottom: 30px; }
  .hero-yellow__lead { font-size: 17px; }
  .hero-yellow__claim { margin-top: 18px; }
  .match-card { padding: 20px 14px 0; }
  .match-card__halves, .black-panel, .zigzag__row, .cycles__grid, .city-row, .steps-band ol, .layout--threecol-section, .opt-cards { grid-template-columns: 1fr; }
  .match-card__or { height: 50px; }
  .match-card__or::before { top: 50%; bottom: auto; left: 0; right: 0; border-left: 0; border-top: 1px solid var(--linea); }
  .match-card__usp { grid-template-columns: 1fr 1fr; margin: 0 -14px; }
  .black-panel { padding: 26px 20px; }
  .zigzag::before, .zigzag__row::after { display: none; }
  .zigzag__row { gap: 16px; margin-bottom: 30px; }
  .zigzag__row:nth-child(even) .zigzag__photo { order: 0; }
  .sheets { grid-template-columns: 1fr; }
  .slick-slide { flex-basis: 86%; }
  .cycles__text { padding-bottom: 10px; }
  .city-row__text { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
