/* Restyling 2026: override del foglio incorporato nella landing. */
:root {
  --navy: #07345f;
  --blue-bright: #155d9b;
  --red-bright: #e2273f;
  --cream: #f7f3eb;
  --mist: #edf4f7;
  --white: #fff;
  --text: #142438;
  --shadow: 0 28px 80px rgba(7, 52, 95, .14);
}

body {
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

.container { width: min(1180px, calc(100% - 48px)); }

header {
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 30px rgba(7, 52, 95, .06);
}

.nav { min-height: 144px; }
header .brand { max-width: calc(100% - 68px); }
.brand { gap: 12px; }
.brand img { width: 440px; height: auto; aspect-ratio: 220 / 62; object-fit: contain; }
.brand-copy { display: none; }

.links {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  gap: 28px;
  padding: 0;
}

.links a {
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--navy);
  font-size: .88rem;
  padding: 10px 0 8px;
  transition: border-color .2s, color .2s;
  white-space: nowrap;
}

.links a:hover,
.links a.active { background: transparent; border-color: var(--red-bright); color: var(--red-bright); }

.header-cta { min-height: 44px; padding: 10px 20px; white-space: nowrap; }

.button {
  background: var(--red-bright);
  box-shadow: 0 10px 24px rgba(226, 39, 63, .2);
  min-height: 50px;
}

.button:hover { background: #bd1830; }

.hero {
  align-items: center;
  display: grid;
  gap: clamp(32px, 5vw, 74px);
  grid-template-columns: .86fr 1.14fr;
  min-height: calc(100vh - 144px);
  padding: 64px 0 76px;
  position: relative;
  text-align: left;
}

.hero::before {
  background: var(--mist);
  border-radius: 50%;
  content: "";
  height: 420px;
  left: -280px;
  position: absolute;
  top: 80px;
  width: 420px;
  z-index: -1;
}

.hero-copy { container-type: inline-size; margin: 0; max-width: 560px; min-width: 0; width: 100%; }
.hero h1 { font-size: clamp(1.5rem, 17cqi, 6.1rem); letter-spacing: -.055em; margin-bottom: 22px; }
.hero h1 span { display: block; white-space: nowrap; }
.hero .eyebrow { color: var(--red-bright); margin-bottom: 18px; }
.hero-copy p { font-size: 1.12rem; margin: 0; max-width: 540px; }
.actions { justify-content: flex-start; margin-top: 30px; }

.hero-photo {
  border-radius: 160px 28px 28px 28px;
  box-shadow: var(--shadow);
  height: min(68vh, 650px);
  min-height: 470px;
}

.hero-photo::after {
  border: 2px solid rgba(226, 39, 63, .5);
  border-radius: 160px 28px 28px 28px;
  content: "";
  inset: 18px -18px -18px 18px;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.hero-photo img { object-position: 58% center; }
.photo-caption { bottom: 22px; left: 22px; right: auto; max-width: 390px; padding: 18px 22px; }

.journey-bar {
  background: var(--navy);
  color: var(--white);
  padding: 24px 0;
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.journey-steps li {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: center;
  padding: 4px 20px;
}

.journey-steps li + li { border-left: 1px solid rgba(255, 255, 255, .22); }
.journey-steps strong { font-size: 1.08rem; }
.journey-steps span { color: #82bce6; font-size: .78rem; font-weight: 800; letter-spacing: .1em; }

#percorsi { background: var(--white); overflow: hidden; }
.section { padding: 110px 0; }

.chapter {
  gap: clamp(34px, 7vw, 100px);
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  margin-top: 130px;
  position: relative;
}

.chapter:nth-child(even) { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.chapter.reverse .chapter-copy { order: 2; }
.chapter.reverse .photo { order: 1; }
.chapter-copy { padding: 24px 0; }
.chapter-copy .eyebrow { color: var(--red-bright); }
.chapter-copy h2 { font-size: clamp(2.2rem, 3.7vw, 3.65rem); line-height: 1.02; margin-bottom: 18px; text-wrap: balance; }
.chapter-intro { color: var(--red-bright); font-size: 1.02rem; font-weight: 700; margin-bottom: 16px; }

.photo {
  border-radius: 26px;
  box-shadow: var(--shadow);
  height: 500px;
  position: relative;
}

.chapter:nth-child(odd) .photo { border-radius: 28px 130px 28px 28px; }
.chapter:nth-child(even) .photo { border-radius: 130px 28px 28px 28px; }
.photo::after { border: 1px solid rgba(7, 52, 95, .22); border-radius: inherit; content: ""; inset: 14px; pointer-events: none; position: absolute; }

.tags { gap: 8px; }
.tags li { background: var(--white); border: 1px solid rgba(7, 52, 95, .1); }

.final {
  background: var(--navy);
  border-radius: 32px;
  box-shadow: var(--shadow);
  color: var(--white);
  margin-block: 100px;
  overflow: hidden;
  padding: clamp(48px, 8vw, 92px);
  position: relative;
}

.final::before,
.final::after { border: 1px solid rgba(255,255,255,.13); border-radius: 50%; content: ""; position: absolute; }
.final::before { height: 280px; left: -150px; top: -160px; width: 280px; }
.final::after { bottom: -220px; height: 380px; right: -180px; width: 380px; }
.final h2, .final p, .final .eyebrow { color: var(--white)!important; position: relative; }
.final .eyebrow { color: #89c3ec!important; }

#contatti { background: var(--mist); }
.contact { max-width: 980px; }
.contact-head h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.formbox { border: 0; box-shadow: var(--shadow); padding: clamp(28px, 6vw, 58px); }
.formbox form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.formbox form > label:first-child,
.formbox .choices,
.formbox form > p,
.formbox .privacy,
.formbox .button,
#feedback { grid-column: 1 / -1; }
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
.formbox input:not([type=checkbox]) { background: #fbfcfd; height: 54px; width: 100%; }
.choices { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.choice { border-radius: 12px; min-height: 48px; padding: 10px 14px; text-align: left; width: 100%; }
.choice { transition: border-color .2s, background .2s, color .2s, transform .2s; }
.choice:hover { border-color: var(--blue-bright); transform: translateY(-1px); }

.site-footer {
  background: #052a4b;
  border: 0;
  color: var(--white);
  padding: 68px 0 24px;
}

.footer-grid { display: grid; gap: 54px; grid-template-columns: 1.45fr .8fr .8fr; }
.footer-grid > div { min-width: 0; }
.site-footer .brand { display: block; max-width: 100%; width: 500px; }
.site-footer .brand img { aspect-ratio: 250 / 76; filter: brightness(0) invert(1); height: auto; object-position: left center; width: 500px; }
.site-footer p { color: rgba(255,255,255,.7); max-width: 430px; }
.site-footer h3 { color: var(--white)!important; font-family: inherit; font-size: .82rem; letter-spacing: .12em; margin-bottom: 18px; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.72); }
.footer-links a:hover { color: var(--white); }
.site-footer .footer-bottom { align-items: center; border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.56); display: flex; justify-content: space-between; }
.back-top { color: var(--white); }

@media (max-width: 1060px) {
  html { scroll-padding-top: 128px; }
  .nav { min-height: 128px; position: relative; }
  .brand img { width: 380px; }
  .nav > .button { display: none; }
  .menu { background: var(--navy); color: var(--white); display: block; }
  .links {
    align-items: stretch;
    border: 0;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 24px 30px rgba(7,52,95,.15);
    display: none;
    gap: 0;
    left: -24px;
    padding: 14px 24px 20px;
    position: absolute;
    right: -24px;
    top: 100%;
  }
  .links.open { background: var(--white); display: grid; }
  .links a { border-bottom: 1px solid rgba(7,52,95,.08); padding: 14px 6px; }
  .hero { grid-template-columns: 1fr 1fr; min-height: auto; }
  .hero-photo { min-height: 420px; }
  .chapter, .chapter:nth-child(even) { gap: 44px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 128px; }
  .container { width: calc(100% - 32px); }
  .nav { min-height: 128px; }
  .links {
    align-items: stretch;
    border: 0;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 24px 30px rgba(7,52,95,.15);
    left: -16px;
    padding: 14px 16px 20px;
    right: -16px;
    top: 100%;
  }
  .links a { padding: 13px 8px; }
  .hero { display: flex; flex-direction: column; padding: 48px 0 64px; }
  .hero-copy { max-width: none; }
  .hero-photo { border-radius: 100px 22px 22px 22px; height: 430px; min-height: 0; width: 100%; }
  .hero-photo::after { border-radius: inherit; inset: 12px -10px -10px 12px; }
  .journey-steps { gap: 16px; grid-template-columns: 1fr; }
  .journey-steps li { justify-content: flex-start; }
  .journey-steps li + li { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; }
  .section { padding: 74px 0; }
  .chapter, .chapter:nth-child(even), .chapter.reverse { display: flex; flex-direction: column; margin-top: 82px; }
  .chapter .chapter-copy, .chapter.reverse .chapter-copy { order: 2; }
  .chapter .photo, .chapter.reverse .photo { border-radius: 22px 80px 22px 22px; height: 340px; order: 1; width: 100%; }
  .chapter:nth-child(even) .photo { border-radius: 80px 22px 22px 22px; }
  .final { border-radius: 0; margin-block: 0; width: 100%; }
  .formbox form { display: block; }
  .choices { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .site-footer .footer-bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (max-width: 430px) {
  .brand img { width: 340px; }
  .hero-photo { height: 360px; }
  .photo-caption { bottom: 14px; left: 14px; max-width: calc(100% - 28px); }
  .choice { width: 100%; }
}
