:root {
  --blue: #062b69;
  --blue-deep: #031b45;
  --orange: #f76f35;
  --ink: #06275f;
  --surface: #f4f8fd;
  --max: 1370px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); font-family: Montserrat, Arial, sans-serif; font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

.site-header { max-width: var(--max); min-height: 158px; margin: auto; padding: 22px clamp(20px, 3vw, 42px); display: flex; align-items: flex-start; gap: clamp(24px, 4vw, 60px); }
.brand { flex: 0 1 355px; }
.brand img { display: block; width: 355px; }
.brand small { display: block; margin-top: 7px; text-align: center; font-size: clamp(11px, 1.25vw, 18px); font-weight: 500; }
.partner-logo { display: block; width: auto; height: 88px; margin-top: 5px; }
.partner-logo img { display: block; width: auto; height: 100%; max-width: none; }
nav { display: flex; gap: clamp(18px, 3vw, 45px); margin-left: auto; padding-top: 42px; white-space: nowrap; }
nav a { position: relative; text-transform: uppercase; font-size: 13px; font-weight: 700; }
nav a::after { content: ''; position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
nav a:hover::after, nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; }

.hero { min-height: clamp(430px, 50.2vw, 773px); overflow: hidden; background: url('../img/fede-banner-1.jpg') center 105% / cover no-repeat; }
.hero-copy { width: min(78%, 1180px); padding: clamp(30px, 3.5vw, 54px) 0 0 max(20px, calc((100vw - var(--max)) / 2)); }
.hero h1, .section h2 { margin: 0; text-transform: uppercase; font-size: clamp(27px, 2.8vw, 43px); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; }
em { color: var(--orange); font-style: normal; }
.hero-copy p { margin: clamp(28px, 5vw, 70px) 0 0; font-size: clamp(16px, 1.9vw, 29px); line-height: 1.32; font-weight: 500; }

.section { max-width: var(--max); margin: auto; padding: clamp(52px, 6vw, 90px) clamp(20px, 3vw, 42px); }
.section h2 { text-align: center; font-size: clamp(25px, 2.35vw, 35px); }
.three-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 5vw, 72px); margin-top: clamp(40px, 5vw, 65px); }
.three-columns article { display: grid; grid-template-columns: 112px 1fr; column-gap: 18px; align-items: center; }
.line-icon { width: 112px; aspect-ratio: 1; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; color: var(--orange); font-size: 52px; }
.three-columns .line-icon, .assistance .line-icon { border: 0; background-position: center; background-repeat: no-repeat; background-size: contain; font-size: 0; }
.three-columns article:nth-child(1) .line-icon { background-image: url('../img/avviso-msg.png'); }
.three-columns article:nth-child(2) .line-icon { background-image: url('../img/persona-penna.png'); }
.three-columns article:nth-child(3) .line-icon { background-image: url('../img/mano-cog.png'); }
.three-columns h3, .adv-title h3 { margin: 0; text-transform: uppercase; font-size: clamp(21px, 1.8vw, 27px); line-height: 1.1; }
.three-columns p { grid-column: 1 / -1; margin: 24px 0 0; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.45; }

.advantages { padding-top: 10px; }
.advantages-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(45px, 8vw, 110px); margin-top: clamp(38px, 5vw, 62px); }
.adv-title { display: flex; align-items: center; gap: 24px; }
.welcome-icon { border: 0; }
.welcome-icon img { width: 100%; height: 100%; object-fit: contain; }
.advantages ul { margin: 10px 0 0; padding: 0; list-style: none; }
.advantages li { position: relative; margin: 25px 0; padding-left: 76px; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.35; }
.advantages li::before { content: ''; position: absolute; top: 50%; left: 0; width: 50px; aspect-ratio: 1; transform: translateY(-50%); background: url('../img/check.png') center / contain no-repeat; }
.assistance .line-icon { background-image: url('../img/mano-utente.png'); }
.assistance p { margin: 36px 0 0; padding-left: 136px; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.7; }
.assistance > img { display: block; width: 100%; height: 265px; margin: 30px auto calc(-1 * clamp(52px, 6vw, 90px)); object-fit: cover; object-position: 65% center; }

.price-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 7%; min-height: clamp(390px, 37vw, 564px); padding: 40px max(20px, calc((100% - var(--max)) / 2)); color: #fff; background: #06265b url('../img/fede-banner-2.jpg') center / cover no-repeat; }
.price-card, .price-copy { text-align: center; }
.price-copy { display: flex; flex-direction: column; align-items: center; justify-content: center; transform: translateY(28px); text-align: center; }
.price-card strong { display: block; text-transform: uppercase; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.05; }
.price { display: block; margin: 14px 0; font-family: Georgia, serif; font-size: clamp(84px, 10vw, 155px); font-weight: 700; line-height: 1; }
.price small { font-size: .52em; }
.price-card p, .price-copy p { margin: 0; font-size: clamp(14px, 1.5vw, 20px); font-weight: 600; line-height: 1.35; }
.price-copy h3 { margin: 0 0 22px; text-transform: uppercase; font-size: clamp(21px, 2.5vw, 32px); line-height: 1.2; }
.price-copy p { width: 100%; max-width: 560px; margin: 0 auto; text-align: center; font-size: clamp(15px, 1.8vw, 23px); font-weight: 400; line-height: 1.5; }
.price-copy em { display: block; margin-top: 14px; text-transform: uppercase; font-size: clamp(21px, 2.5vw, 32px); }

.contact { padding-bottom: clamp(55px, 7vw, 100px); }
.contact h2 { font-size: clamp(29px, 2.6vw, 40px); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; margin: 48px clamp(0px, 2vw, 28px) 0; padding: clamp(22px, 3vw, 42px); border: 1px solid #dbe6f5; border-radius: 30px; background: linear-gradient(145deg, #fff, #f6f9ff); box-shadow: 0 18px 45px rgba(6,43,105,.09); }
.field { position: relative; min-height: 82px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 20px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.field:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(247,111,53,.16); }
.field label { position: absolute; z-index: 1; top: 25px; left: 20px; padding: 0 4px; background: #fff; font-size: 17px; font-weight: 500; pointer-events: none; transition: .18s; }
.select-field label { top: -10px; font-size: 13px; font-weight: 700; }
.field label b, .privacy b { color: var(--orange); }
.field input, .field select, .field textarea { display: block; width: 100%; height: 78px; padding: 23px 4px 0; border: 0; outline: 0; appearance: none; background: transparent; color: var(--ink); font: 500 16px Montserrat, Arial, sans-serif; }
.field textarea { min-height: 78px; resize: vertical; }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .select-field select:focus + label, .select-field select:valid + label { top: -10px; color: var(--orange); font-size: 13px; font-weight: 700; }
.select-field::after { content: '⌄'; position: absolute; top: 20px; right: 22px; font-size: 25px; pointer-events: none; }
.field small { position: absolute; bottom: -21px; left: 18px; color: #c42626; font-size: 12px; font-weight: 600; }
.field.invalid { border-color: #c42626; }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.privacy { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 6px 0; font-size: 15px; font-weight: 500; cursor: pointer; }
.privacy input { width: 23px; height: 23px; flex: 0 0 auto; accent-color: var(--orange); }
.contact-form button { grid-column: 1 / -1; justify-self: center; border: 0; border-radius: 18px; padding: 17px 30px; background: var(--orange); box-shadow: 0 7px 0 #d65e2d; color: #fff; font: 700 clamp(16px, 1.5vw, 21px) Montserrat, Arial, sans-serif; text-transform: uppercase; cursor: pointer; transition: transform .2s, background .2s; }
.contact-form button:hover { background: #df602c; transform: translateY(-2px); }
.contact-form button:disabled { box-shadow: none; cursor: wait; filter: saturate(.6); }
.contact-form button i { margin-left: 12px; font-style: normal; }
.form-message { grid-column: 1 / -1; min-height: 22px; margin: -5px 0 0; color: #12703a; font-weight: 700; text-align: center; }
.form-message.error { color: #c42626; }
.closing { margin: 48px 0 0; text-align: center; font-size: clamp(25px, 2.5vw, 38px); font-weight: 500; line-height: 1.28; }

@media (max-width: 900px) {
  .site-header { min-height: 130px; gap: 22px; }
  .brand { flex-basis: 260px; }
  .partner-logo { height: 64px; }
  nav { gap: 15px; padding-top: 32px; }
  nav a { font-size: 11px; }
  .three-columns { gap: 28px; }
  .three-columns article { grid-template-columns: 86px 1fr; }
  .line-icon { width: 86px; }
  .advantages-grid { gap: 40px; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 76px; }
  .site-header { position: sticky; z-index: 20; top: 0; min-height: 70px; padding: 10px 18px; align-items: center; background: rgba(255,255,255,.97); box-shadow: 0 2px 12px rgba(6,43,105,.1); }
  .brand { width: min(190px, 64vw); flex: none; }
  .brand small { margin-top: 2px; font-size: 9px; }
  .partner-logo { display: none; }
  .menu-toggle { display: grid; width: 45px; height: 45px; margin-left: auto; place-items: center; border: 1px solid #dce6f4; border-radius: 10px; background: #fff; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
  nav { position: absolute; top: calc(100% + 6px); right: 14px; left: 14px; display: none; margin: 0; padding: 10px; border-radius: 15px; background: #fff; box-shadow: 0 12px 28px rgba(6,43,105,.18); }
  nav.open { display: grid; }
  nav a { padding: 13px 12px; font-size: 13px; }
  nav a::after { display: none; }
  .hero { min-height: 0; aspect-ratio: 1540 / 773; background-position: center 105%; background-size: cover; }
  .hero-copy { width: 80%; padding: 4.5% 0 0 3.5%; }
  .hero h1 { font-size: clamp(17px, 4.1vw, 28px); }
  .hero-copy p { margin-top: 6%; font-size: clamp(11px, 2.8vw, 18px); }
  .section { padding: 50px 20px; }
  .three-columns, .advantages-grid, .contact-form { grid-template-columns: 1fr; }
  .three-columns { gap: 42px; }
  .three-columns article { grid-template-columns: 78px 1fr; }
  .line-icon { width: 78px; }
  .three-columns p { margin-top: 17px; }
  .adv-title { gap: 16px; }
  .advantages li { padding-left: 62px; }
  .advantages li::before { width: 42px; font-size: 23px; }
  .assistance p { padding-left: 0; }
  .assistance > img { height: 220px; margin-bottom: -50px; object-position: 65% center; }
  .price-section { grid-template-columns: 1fr; gap: 36px; min-height: 0; padding: 48px 24px; background-image: linear-gradient(140deg, rgba(0,20,60,.95), rgba(4,52,122,.9)), url('../img/fede-banner-2.jpg'); }
  .price-card { padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.38); }
  .price { font-size: clamp(82px, 25vw, 130px); }
  .price-copy h3 { margin-bottom: 15px; }
  .contact-form { gap: 25px; margin-top: 35px; padding: 22px 18px; border-radius: 22px; }
  .field { min-height: 72px; }
  .field input, .field select, .field textarea { height: 68px; font-size: 16px; }
  .field textarea { min-height: 68px; }
  .field label { top: 21px; font-size: 16px; }
  .select-field label { top: -10px; font-size: 13px; }
  .select-field::after { top: 17px; }
  .privacy { align-items: flex-start; font-size: 14px; }
  .contact-form button { width: 100%; padding: 16px; font-size: 15px; }
  .closing { margin-top: 40px; }
}

@media (max-width: 380px) {
  .three-columns article { grid-template-columns: 1fr; gap: 14px; }
  .line-icon { width: 68px; }
  .three-columns h3 br { display: none; }
}
