/* ==========================================================
   OSM Partner Arezzo Etruria – landing evento
   Palette e tipografia riprese dal flyer
   ========================================================== */

@font-face { font-family: "Helvetica Neue LT Pro"; src: url("assets/fonts/hn-light.woff") format("woff");  font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Neue LT Pro"; src: url("assets/fonts/hn-italic.woff") format("woff"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Helvetica Neue LT Pro"; src: url("assets/fonts/hn-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Neue LT Pro"; src: url("assets/fonts/hn-heavy.woff") format("woff");  font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Neue LT Pro"; src: url("assets/fonts/hn-black.woff") format("woff");  font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --navy: #1b3557;
  --navy-deep: #12294a;
  --blue: #1f6fc4;
  --magenta: #a71c84;
  --magenta-vivo: #b3167c;
  --bordeaux: #6b0e3f;
  --vino: #830f4f;
  --oro: #d4a059;
  --carta: #fdf8fb;
  --rosa: #f3dfe8;
  --rosa-bordo: #e6c7d6;
  --font: "Helvetica Neue LT Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1160px;
  --pad: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(17px, 1.05vw + 13px, 20px);
  line-height: 1.45;
  color: var(--navy);
  background: var(--carta);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
strong { font-weight: 900; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); position: relative; z-index: 2; }

.skip { position: absolute; left: -999px; top: 0; background: #fff; color: var(--navy); padding: 10px 16px; z-index: 10; font-weight: 800; }
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-weight: 500;
  font-size: .86em;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding-bottom: .65em;
  margin-bottom: 1em;
  display: inline-block;
  min-width: min(320px, 70%);
  border-bottom: 1px solid currentColor;
}
.eyebrow--gold    { color: #fff; border-color: var(--oro); }
.eyebrow--white   { color: #fff; border-color: rgba(255,255,255,.75); }
.eyebrow--magenta { color: var(--navy); border-color: var(--vino); }

.title {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: .005em;
  color: var(--navy);
}
.title--white { color: #fff; }
.c-magenta { color: var(--vino); }
.c-gold { color: var(--oro); }

.subtitle { font-weight: 900; text-transform: uppercase; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.1; color: var(--navy); }
.subtitle--lg { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: .45em; }

.lead { font-size: 1.05em; max-width: 34em; }
.lead--wide { max-width: 44em; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 900;
  font-size: .95em;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-decoration: none;
  padding: 1em 1.8em;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--oro); color: var(--navy-deep); box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.btn--gold:hover { background: #e0b371; }
.btn--magenta { background: linear-gradient(100deg, var(--magenta-vivo), var(--vino)); color: #fff; box-shadow: 0 8px 20px rgba(131,15,79,.3); }

/* ---------- Apertura ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding-block: clamp(48px, 8vw, 96px) clamp(60px, 9vw, 130px);
}
.hero__shapes { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__lines { position: absolute; inset: 35% -10% -10% 30%; background: url("assets/linee-chiare.svg") center / 100% 100% no-repeat; transform: rotate(-14deg); }
.hero__grid { display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; }
.hero__title { font-weight: 900; text-transform: uppercase; line-height: .98; margin-bottom: .5em; }
.hero__title span { display: block; }
.hero__l1 { font-size: clamp(2.1rem, 5.4vw, 4rem); }
.hero__l2 { font-size: clamp(3.1rem, 8.2vw, 6.2rem); }
.hero__l3 { font-size: clamp(3.1rem, 8.2vw, 6.2rem); color: var(--oro); }
.hero__lead { font-size: 1.15em; margin-bottom: 1.8em; }
.hero__brand img { width: min(380px, 78%); margin-inline: auto; }
.hero__tagline {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 1.2em;
  max-width: var(--wrap); margin: clamp(40px, 6vw, 72px) auto 0; padding: 0 var(--pad);
  font-style: italic; font-size: .95em; white-space: nowrap;
}
.hero__tagline::before, .hero__tagline::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.55); }

/* ---------- Sezioni chiare ---------- */
.sec { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 104px); }
.sec--light { background: var(--carta) url("assets/linee-magenta.svg") center / 140% 100% no-repeat; }
.sec--flush { padding-top: clamp(28px, 4vw, 48px); }
.deco { position: absolute; z-index: 1; pointer-events: none; }
.deco--bl { left: 0; bottom: 0; width: 100%; height: clamp(70px, 11vw, 150px); }

/* 01 / Riconoscerti */
.riconoscerti__grid { display: grid; gap: clamp(28px, 5vw, 72px); }
.riconoscerti__head .title { margin-bottom: .55em; }
.situazioni li { display: flex; align-items: center; gap: 1.1em; padding-block: 1.05em; border-bottom: 1px solid rgba(27,53,87,.22); }
.situazioni li:first-child { padding-top: 0; }
.situazioni h3, .passi h3 { font-weight: 900; font-size: 1.08em; line-height: 1.2; color: var(--navy); }
.situazioni li > div, .passi li > div { border-left: 1px solid rgba(27,53,87,.35); padding-left: 1em; }
.num {
  flex: none; display: grid; place-items: center;
  width: 2.9em; height: 2.9em; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 900; font-size: 1.05em;
}
.situazioni li:nth-child(even) .num { background: var(--vino); }
.chiusa { font-weight: 900; margin-top: 1.4em; padding-top: 1.2em; border-top: 2px solid var(--vino); }
.situazioni li:last-child { border-bottom: 0; }

/* Fasce colorate */
.band { position: relative; overflow: hidden; color: #fff; padding-block: clamp(96px, 13vw, 190px) clamp(80px, 11vw, 150px); }
.band--navy { background: var(--navy); }
.band--magenta { background: linear-gradient(105deg, var(--magenta-vivo) 0%, var(--vino) 45%, var(--bordeaux) 70%, var(--magenta) 100%); }
.band__lines { position: absolute; inset: -20% -5% 0 40%; background: url("assets/linee-chiare.svg") center / 100% 100% no-repeat; }
/* Onde di raccordo tra le sezioni */
.wave { position: absolute; left: 0; width: 100%; height: clamp(48px, 8vw, 120px); z-index: 1; pointer-events: none; }
.wave--top { top: -1px; }
.wave--bottom { bottom: -1px; }
.wave--tall { height: clamp(70px, 11vw, 160px); }
.riconoscerti { padding-top: clamp(36px, 5vw, 64px); }
.metodo .sec--flush, .iprofile .sec--flush { padding-bottom: clamp(40px, 5vw, 64px); }
.riconoscerti { padding-bottom: clamp(40px, 5vw, 64px); }

/* 02 / Metodo */
.passi { display: grid; gap: 18px; margin-top: clamp(24px, 3.5vw, 40px); }
.passi li {
  display: flex; align-items: center; gap: 1em;
  background: var(--rosa);
  border-left: 18px solid var(--oro);
  border-radius: 8px;
  padding: 1.1em 1.2em;
  box-shadow: 0 10px 24px rgba(131,15,79,.14), 0 0 0 1px rgba(255,255,255,.7) inset;
}
.passi__num { flex: none; font-weight: 900; font-size: 1.55em; color: var(--vino); }
.vicini { margin-top: clamp(32px, 5vw, 56px); padding-bottom: 1.1em; border-bottom: 2px solid var(--vino); max-width: 46em; }
.vicini p { margin-top: .25em; }

/* I-Profile */
.iprofile__grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
.callout {
  margin-top: 1.6em;
  background: var(--rosa);
  border: 2px solid #fff;
  border-radius: 10px;
  padding: 1em 1.2em 1em 2em;
  position: relative;
  box-shadow: 0 10px 26px rgba(131,15,79,.2);
  max-width: 34em;
}
.callout::before { content: ""; position: absolute; left: .9em; top: .9em; bottom: .9em; width: 5px; border-radius: 3px; background: var(--magenta-vivo); }
.callout__t { font-weight: 900; text-transform: uppercase; color: var(--vino); font-size: 1.2em; line-height: 1.15; }
.callout__s { font-weight: 900; color: var(--navy); margin-top: .15em; }

.evento {
  position: relative; overflow: hidden;
  background: var(--navy) url("assets/linee-chiare.svg") center / 220% 160% no-repeat;
  color: #fff;
  border-radius: 12px;
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 18px 40px rgba(18,41,74,.3);
}
.evento__title { font-weight: 900; text-transform: uppercase; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.05; margin-bottom: 1em; }
.evento__dati { display: grid; gap: 1em; }
.evento__dati dt { font-weight: 800; text-transform: uppercase; font-size: .78em; letter-spacing: .08em; color: var(--oro); margin-bottom: .2em; }
.evento__dati dd { font-weight: 500; line-height: 1.3; }
.evento__nota { margin-top: 1.4em; padding-top: 1em; border-top: 1px solid rgba(255,255,255,.35); font-style: italic; }

/* Contatti */
.contatti { padding-bottom: clamp(120px, 17vw, 230px); }
.contatti__grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contatti__info .title { margin-bottom: .3em; }
.recapiti { margin-top: 1.4em; padding-block: 1.1em; border-block: 1px solid var(--vino); display: grid; gap: .35em; }
.recapiti a { text-decoration: none; overflow-wrap: anywhere; }
.recapiti a:hover, .footer a:hover { text-decoration: underline; }
.recapiti strong, .firma strong { text-transform: uppercase; }
.firma { margin-top: 1.2em; }

.form {
  background: #fff;
  border-radius: 12px;
  padding: clamp(22px, 3.5vw, 40px);
  box-shadow: 0 18px 44px rgba(131,15,79,.16);
  border-top: 8px solid var(--oro);
  display: grid; gap: 16px;
}
.form__intro { font-size: .92em; }
.form__row { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 800; font-size: .8em; text-transform: uppercase; letter-spacing: .04em; }
.field input, .field textarea {
  width: 100%;
  font: inherit; font-weight: 500; font-size: 1rem; color: var(--navy);
  background: var(--carta);
  border: 1px solid var(--rosa-bordo);
  border-radius: 6px;
  padding: .8em .9em;
}
.field textarea { resize: vertical; min-height: 7em; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(167,28,132,.2); background: #fff; }
.check { display: flex; gap: .7em; align-items: flex-start; font-size: .92em; cursor: pointer; }
.check input { flex: none; width: 1.25em; height: 1.25em; margin: .15em 0 0; accent-color: var(--vino); }
.check--evid { background: var(--rosa); border-left: 5px solid var(--magenta-vivo); border-radius: 6px; padding: .8em .9em; font-size: 1em; }
.form .btn { justify-self: start; margin-top: 4px; }

/* Footer */
.footer { background: var(--navy); color: #fff; padding-block: clamp(32px, 5vw, 56px); font-size: .9em; }
.footer__grid { display: grid; gap: 24px; align-items: center; }
.footer img { width: 190px; }
.footer a { text-decoration: none; overflow-wrap: anywhere; }
.footer strong { text-transform: uppercase; }

/* ---------- Da tablet in su ---------- */
@media (min-width: 720px) {
  .form__row { grid-template-columns: 1fr 1fr; }
  .passi { grid-template-columns: repeat(3, 1fr); }
  .passi li { flex-direction: column; align-items: flex-start; border-left: 0; border-top: 14px solid var(--oro); padding: 1.3em 1.3em 1.5em; }
  .passi li > div { border-left: 0; padding-left: 0; }
  .passi__num { font-size: 2.2em; line-height: 1; }
  .footer__grid { grid-template-columns: auto 1fr auto; gap: 40px; }
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.15fr .85fr; }
  .hero__brand img { width: min(420px, 100%); }
  .riconoscerti__grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .riconoscerti__head .title { font-size: clamp(2.2rem, 3.9vw, 3.1rem); white-space: nowrap; }
  .iprofile__grid { grid-template-columns: 1.2fr .8fr; }
  .contatti__grid { grid-template-columns: .85fr 1.15fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
