/* proettesaaapocalypse: blu petrolio #00456f, magenta #c2005d, carta #f5f3f1 */
:root {
  --navy: #00456f;
  --magenta: #c2005d;
  --paper: #f5f3f1;
  --pink: #f3ccdf;
  --peach: #ffddb6;
  --line: #ccdae2;
  --gap: clamp(1rem, 3vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, Arial, sans-serif; font-size: 1rem; line-height: 1.75; color: var(--navy); background: var(--paper); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
h1, h2, h3 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 600; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.68rem); line-height: 1.2; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.grid-container { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--gap); }
.script-kicker { display: block; font-family: Caveat, cursive; font-size: 1.4rem; line-height: 1.2; margin-bottom: .4rem; }
.script-kicker--light { color: #fff; }

/* bottoni */
.f-button { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.5rem; border: 1px solid transparent; font: inherit; line-height: 1.5; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.f-button::after { content: "\2192"; }
.f-button--magenta { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.f-button--magenta:hover { background: #9e004b; }
.f-button--navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.f-button--navy:hover { background: #003152; }
.f-button--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.f-button--outline::after, .consent-top .f-button::after { content: none; }
.arrow-link { display: inline-block; text-decoration: underline; text-underline-offset: .3em; }
.arrow-link::after { content: " \2192"; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* testata */
.site-top { position: sticky; top: 0; z-index: 40; background: #fff; }
.site-top-inner { display: flex; align-items: center; justify-content: space-between; min-height: 5.5rem; }
.site-logo img { width: 13.75rem; }
.main-menu { display: flex; align-items: center; gap: 2rem; }
.main-menu a:not(.f-button) { text-decoration: none; }
.main-menu a:not(.f-button):hover { text-decoration: underline; }
.menu-toggle { display: none; width: 2.75rem; height: 2.75rem; background: none; border: 1px solid var(--navy); position: relative; cursor: pointer; }
.menu-toggle-bar, .menu-toggle-bar::before, .menu-toggle-bar::after { position: absolute; left: .6rem; right: .6rem; height: 2px; background: var(--navy); }
.menu-toggle-bar { top: 50%; }
.menu-toggle-bar::before, .menu-toggle-bar::after { content: ""; left: 0; right: 0; }
.menu-toggle-bar::before { top: -.45rem; }
.menu-toggle-bar::after { top: .45rem; }

/* apertura con polaroid */
.header-home { position: relative; padding: 6rem 0 4rem; overflow: hidden; }
.header-home-text { text-align: center; max-width: 40rem; margin-bottom: 3.5rem; position: relative; z-index: 1; }
.header-home-claim { font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: clamp(2.6rem, 5vw, 3.7rem); line-height: 1; }
.polaroids { position: absolute; top: 5rem; width: 18rem; height: 14rem; }
.polaroids--left { left: 1.5rem; }
.polaroids--right { right: 1.5rem; }
.polaroid { position: absolute; background: #fff; padding: .5rem .5rem 1.6rem; box-shadow: 0 .4rem 1.2rem rgba(0, 69, 111, .15); }
.polaroid img { width: 7.5rem; height: 6rem; object-fit: cover; }
.polaroid figcaption { position: absolute; bottom: .2rem; left: .6rem; font-family: Caveat, cursive; font-size: .95rem; }
.polaroid--round img { width: 5.5rem; height: 5.5rem; border-radius: 50%; }
.polaroid--a { left: 0; top: 2rem; transform: rotate(-5deg); }
.polaroid--b { left: 8rem; top: 7rem; transform: rotate(-12deg); }
.polaroid--c { right: 7rem; top: 1rem; transform: rotate(-4deg); }
.polaroid--d { right: 0; top: 6.5rem; transform: rotate(6deg); }
.filter-bar { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 2px; position: relative; z-index: 1; }
.filter-field { background: #fff; padding: 1.25rem 1rem; }
.filter-field label { display: block; font-weight: 600; font-size: .875rem; }
.filter-field select { width: 100%; border: 0; border-bottom: 1px solid var(--navy); background: transparent; font: inherit; color: var(--navy); padding: .5rem 0; }
.filter-submit { background-clip: padding-box; border: 1rem solid #fff; max-width: 12rem; text-align: center; justify-content: center; }

/* valori */
.usp-row { background: var(--peach); }
.usp-row-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding-block: 1.6rem; }
.usp-row-list b { font-family: "Barlow Condensed", sans-serif; font-size: 1.35rem; }

/* testo e immagine */
.text-media { padding: 6rem 0; }
.text-media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.text-media-grid > * { min-width: 0; }
.text-media-visual { position: relative; padding: 6rem 0; }
.text-media-block { position: absolute; left: 0; top: 0; bottom: 0; width: 70%; background: var(--pink); }
.text-media-block--peach { background: var(--peach); left: auto; right: 0; }
.text-media-visual img { position: relative; width: 92%; margin-left: 2%; aspect-ratio: 3 / 2; object-fit: cover; }
.text-media--flip .text-media-visual { order: 2; }
.text-media--flip .text-media-visual img { margin-left: auto; margin-right: 2%; }
.text-media-copy h1 { font-size: clamp(2.2rem, 3.8vw, 2.9rem); margin-bottom: 1.4rem; }
.text-media-copy h2 { margin-bottom: 1.2rem; }
.text-media-copy p { margin-bottom: 1rem; }
.text-media-copy .f-button { margin-top: 1rem; }

/* cosa non facciamo, subito dopo l'introduzione */
.clear-note { padding: 0 0 5rem; }
.clear-note-box { background: var(--navy); color: #fff; padding-block: 3.5rem; text-align: center; }
.clear-note-box h2 { margin-bottom: 1.5rem; }
.clear-note-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 2rem; max-width: 46rem; margin: 0 auto 1.5rem; text-align: left; }
.clear-note-list li::before { content: "\2715  "; color: var(--peach); }
.clear-note-limit { max-width: 42rem; margin: 0 auto; font-size: .9rem; opacity: .92; }

/* schede */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2.2rem; }
.section-head-note { max-width: 22rem; font-size: .9rem; }
.cards-section, .destinations, .featured-courses, .sheets-strip { padding: 4.5rem 0; }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.course-grid--two { grid-template-columns: 1fr 1fr; }
.course-card, .dest-card, .cycle-card { background: #fff; min-width: 0; }
.course-card-media, .dest-card-media { position: relative; }
.course-card-media img, .dest-card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.badge { display: inline-block; padding: .2rem .9rem; font-size: 1rem; border-radius: 4px; }
.course-card-media .badge, .dest-card-media .badge { position: absolute; top: 1rem; left: 1rem; }
.badge--pink { background: var(--pink); }
.badge--peach { background: #ffbb6c; color: #3a1f00; }
.badge--navy { background: var(--navy); color: #fff; }
.course-card-body { padding: 1.5rem; }
.course-card-place { font-size: .875rem; margin: 1.5rem 0 .3rem; }
.course-card-body .course-card-place { margin-top: 0; }
.course-card-body h3, .dest-card h3 { margin-bottom: .8rem; }
.dest-card > h3, .dest-card > p { padding-inline: 1.5rem; }
.dest-card > p:last-child { padding-bottom: 1.5rem; }
.course-facts { display: grid; grid-template-columns: auto 1fr; gap: .1rem 1.5rem; font-size: .875rem; margin-bottom: 1.2rem; }
.course-facts dt { font-weight: 600; }
.course-facts dd { margin: 0; }
.sheets-strip-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.sheets-strip-list li { border-top: 2px solid var(--navy); padding-top: 1rem; }
.sheets-strip-list h3 { margin-bottom: .4rem; }
.deadline-band { background: var(--peach); padding: 5rem 0; }
.deadline-intro { margin: -1rem 0 2rem; }
.cycle-card { padding: 1.5rem; }
.cycle-card .badge { margin-bottom: 1rem; }
.cycle-card h3 { margin-bottom: .8rem; }
.slide-arrows { display: flex; gap: .5rem; }
.slide-arrow { width: 2.75rem; height: 2.75rem; border: 1px solid var(--navy); background: #fff; color: var(--navy); font-size: 1.1rem; cursor: pointer; }
.slide-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4rem) / 3); gap: 2rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slide-row::-webkit-scrollbar { display: none; }
.slide-row > * { scroll-snap-align: start; }

/* fascia blu con il simbolo */
.cta-band { padding: 2rem 0 5rem; }
.cta-band-box { position: relative; overflow: hidden; background: #1a5b84; color: #fff; text-align: center; padding-block: 4rem; }
.cta-band-mark { position: absolute; right: -3rem; bottom: -4rem; width: 20rem; color: rgba(255, 255, 255, .1); }
.cta-band-box h2 { margin-bottom: 1.8rem; }
.cta-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 56rem; margin: 0 auto 2.2rem; position: relative; }
.cta-steps b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 1.35rem; }

/* domande */
.faq-block { padding: 3rem 0 6rem; }
.faq-block-inner { max-width: 52rem; }
.faq-block h2 { margin-bottom: 1.6rem; }
.faq-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.faq-tab { border: 1px solid var(--navy); background: #fff; color: var(--navy); border-radius: 9999px; padding: .4rem 1.2rem; font: inherit; cursor: pointer; }
.faq-tab.is-current { background: var(--navy); color: #fff; }
.faq-panel details { border-bottom: 1px solid var(--line); }
.faq-panel summary { cursor: pointer; padding: 1rem 0; font-weight: 600; }
.faq-panel details p { padding-bottom: 1rem; }

/* piede */
.site-foot { background: #fff; padding: 4.5rem 0 0; }
.site-foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.site-foot-grid > * { min-width: 0; overflow-wrap: anywhere; }
.site-foot-title { font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 1.7rem; margin-bottom: .8rem; }
.site-foot-links { list-style: none; padding: 0; }
.site-foot-links a::before { content: "\2192  "; text-decoration: none; display: inline-block; margin-right: .4rem; }
.site-foot-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; padding-block: 1.6rem; border-top: 1px solid #e6ecf1; }
.site-foot-bottom img { width: 9.4rem; }

/* consenso in alto */
.consent-top { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: #fff; border-bottom: 3px solid var(--magenta); box-shadow: 0 .3rem 1rem rgba(0, 0, 0, .1); }
.consent-top[hidden], .consent-top-opt[hidden] { display: none; }
.consent-top-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding-block: 1rem; font-size: .9rem; }
.consent-top-inner p { flex: 1 1 22rem; }
.consent-top-opt { display: flex; align-items: center; gap: .4rem; }
.consent-top-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.consent-top .f-button { padding: .45rem 1rem; }

/* pagine interne */
.inner-head { padding: 4.5rem 0 3rem; }
.inner-head h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); margin-bottom: 1rem; }
.inner-head p { max-width: 44rem; }
.breadcrumbs { font-size: .875rem; margin-bottom: 1rem; }
.inner-body { padding: 0 0 6rem; }
.inner-body h2 { margin: 2.6rem 0 .9rem; font-size: clamp(1.7rem, 3vw, 2.1rem); }
.inner-body p { margin-bottom: 1rem; max-width: 46rem; }
.inner-body ul { max-width: 46rem; }
.inner-figure { margin: 2.5rem 0; position: relative; padding: 2.5rem 0; }
.inner-figure img { position: relative; width: 80%; aspect-ratio: 16 / 9; object-fit: cover; margin-left: 5%; }
.legal-copy { background: #fff; padding: 2.5rem; max-width: 52rem; }
.legal-copy h2 { font-size: 1.5rem; margin: 2rem 0 .6rem; }
.legal-copy h2:first-child { margin-top: 0; }
.day-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.2rem; }
.day-pair > div { background: #fff; padding: 1.5rem; min-width: 0; }
.day-pair p { margin-bottom: .7rem; }

/* richiesta */
.request-form { background: #fff; padding: 2.5rem; max-width: 46rem; }
.request-form .row { margin-bottom: 1.1rem; }
.request-form label.lbl, .request-form legend { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; padding: 0; }
.request-form fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; }
.request-form .inp { width: 100%; font: inherit; color: var(--navy); padding: .6rem 0; border: 0; border-bottom: 1px solid var(--navy); background: transparent; }
.request-form .inp:focus { outline: none; border-bottom: 2px solid var(--magenta); }
.request-form .inp[aria-invalid="true"] { border-bottom: 2px solid #b0003a; }
.request-form .opts { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; }
.request-form .msg { display: block; min-height: 1.4em; font-size: .85rem; color: #b0003a; }
.request-form .chk { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }
.request-form .pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 1100px) {
  .polaroids { display: none; }
  .header-home { padding-top: 4rem; }
}
@media (max-width: 900px) {
  .main-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: .4rem; background: #fff; padding: 1rem var(--gap) 1.5rem; border-top: 1px solid var(--line); }
  .main-menu.is-open { display: flex; }
  .menu-toggle { display: block; }
  .filter-bar { grid-template-columns: 1fr; }
  .filter-submit { max-width: none; border-width: .5rem; }
  .usp-row-list, .course-grid, .course-grid--two, .cta-steps, .site-foot-grid, .day-pair { grid-template-columns: 1fr; }
  .text-media-grid { grid-template-columns: 1fr; gap: 2rem; }
  .text-media--flip .text-media-visual { order: 0; }
  .text-media { padding: 3.5rem 0; }
  .text-media-visual { padding: 2.5rem 0; }
  .clear-note-list { grid-template-columns: 1fr; }
  .sheets-strip-list { grid-template-columns: 1fr 1fr; }
  .slide-row { grid-auto-columns: 80%; gap: 1rem; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .request-form, .legal-copy { padding: 1.5rem 1.1rem; }
}
@media (max-width: 480px) {
  .sheets-strip-list { grid-template-columns: 1fr; }
  .site-logo img { width: 11rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .f-button { transition: none; }
}
