:root{--primary:#49c5b6;--secondary:#4fa3d9;--accent:#d9c2a3;--dark:#082f52;--text:#17304f;--light:#f6fbff}
*{box-sizing:border-box}
html,body{margin:0;max-width:100%;overflow-x:hidden;scroll-behavior:smooth}
.header{
position:sticky;
top:0;
z-index:1000;
width:100%;
padding:10px 5%;
background:rgba(79,163,217,.16);
backdrop-filter:blur(16px) saturate(130%);
-webkit-backdrop-filter:blur(16px) saturate(130%);
border-bottom:1px solid rgba(255,255,255,.18);
}

.header-inner{
max-width:1280px;
margin:0 auto;
display:flex;
align-items:center;
justify-content:space-between;
gap:16px;
}

.logo-wrap{
display:flex;
align-items:center;
justify-content:center;
}

.logo-img{
width:118px;
display:block;
object-fit:contain;
}

.nav{
display:flex;
gap:8px;
align-items:center;
flex-wrap:wrap;
justify-content:flex-end;
}

.nav a{
text-decoration:none;
padding:8px 12px;
border-radius:999px;
background:rgba(255,255,255,.16);
color:#08335c;
font-family:'Manrope',sans-serif;
font-weight:800;
font-size:13px;
transition:.3s ease;
}

.nav a:hover,
.nav a.active{
background:linear-gradient(135deg,var(--primary),var(--accent));
color:#03263f;
}

body{font-family:'Inter',sans-serif;background:#f6fbff;color:#17304f;-webkit-font-smoothing:antialiased}
.checkout-hero{
padding:118px 5% 52px;
background:radial-gradient(circle at 50% 18%,rgba(73,197,182,.22),transparent 38%),linear-gradient(180deg,#ffffff,#f6fbff);
text-align:center;
}
.checkout-hero h1{
font-family:'Manrope','Inter',sans-serif;
font-size:clamp(38px,5vw,64px);
line-height:1.04;
letter-spacing:-.055em;
color:#082f52;
margin:0 0 14px;
}
.checkout-hero p{
max-width:760px;
margin:0 auto;
font-size:17px;
line-height:1.75;
color:#526d86;
}
.checkout-section{
padding:42px 5% 92px;
}
.checkout-layout{
max-width:1280px;
margin:0 auto;
display:grid;
grid-template-columns:1.15fr .85fr;
gap:28px;
align-items:start;
}
.checkout-card{
background:linear-gradient(180deg,#ffffff,#f7fbff);
border:1px solid rgba(6,28,53,.06);
border-radius:34px;
padding:34px;
box-shadow:0 18px 46px rgba(8,36,58,.08);
}
.checkout-card h2{
font-family:'Manrope','Inter',sans-serif;
font-size:30px;
letter-spacing:-.045em;
color:#082f52;
margin-bottom:8px;
}
.checkout-card > p{
font-size:14px;
line-height:1.7;
color:#526d86;
margin-bottom:24px;
}
.checkout-form{
display:grid;
grid-template-columns:1fr 1fr;
gap:16px;
}
.checkout-field{
display:flex;
flex-direction:column;
gap:8px;
}
.checkout-field.full{grid-column:1/-1}
.checkout-field label{
font-size:13px;
font-weight:800;
color:#193c5c;
}
.checkout-field input,
.checkout-field textarea,
.checkout-field select{
width:100%;
border:none;
outline:none;
font-family:'Inter',sans-serif;
font-size:14px;
padding:15px 16px;
border-radius:18px;
background:#eef7fb;
color:#17304f;
transition:.25s ease;
}
.checkout-field textarea{min-height:105px;resize:vertical}
.checkout-field input:focus,
.checkout-field textarea:focus,
.checkout-field select:focus{
background:#e5f8f5;
box-shadow:0 0 0 3px rgba(73,197,182,.18);
}
.checkout-field.has-error input,
.checkout-field.has-error textarea,
.checkout-field.has-error select{
box-shadow:0 0 0 3px rgba(180,70,70,.18);
background:#fff4f4;
}
.checkout-error{
display:none;
font-size:12px;
color:#b44646;
font-weight:700;
}
.checkout-field.has-error .checkout-error{display:block}
.payment-options{
display:grid;
gap:12px;
margin-top:18px;
}
.payment-option{
border:1px solid rgba(8,47,82,.10);
border-radius:22px;
padding:16px;
display:flex;
align-items:center;
gap:14px;
cursor:pointer;
background:#fff;
transition:.25s ease;
}
.payment-option.active{
border-color:#49c5b6;
box-shadow:0 0 0 4px rgba(73,197,182,.12);
}
.payment-option input{width:18px;height:18px}

/* Metodo di pagamento annunciato ma non ancora collegato.
   Resta visibile perche' il cliente sappia che sta arrivando,
   ma non e' selezionabile: se lo fosse, chi lo sceglie verrebbe
   portato lo stesso alla pagina delle carte senza capire perche'. */
.payment-option.non-disponibile{
opacity:.55;
cursor:not-allowed;
background:#f7f9fb;
}
.payment-option.non-disponibile input{cursor:not-allowed}
.payment-option.non-disponibile strong::after{
content:'presto disponibile';
display:inline-block;
margin-left:8px;
padding:2px 8px;
border-radius:999px;
background:rgba(8,47,82,.08);
color:#526d86;
font-size:11px;
font-weight:700;
letter-spacing:.04em;
text-transform:uppercase;
vertical-align:middle;
}
.payment-option strong{
display:block;
font-family:'Manrope','Inter',sans-serif;
color:#082f52;
margin-bottom:4px;
}
.payment-option span{
font-size:13px;
color:#526d86;
line-height:1.5;
}
.order-summary{
position:sticky;
top:96px;
}
.summary-items{
display:grid;
gap:14px;
margin:22px 0;
}
.summary-item{
display:grid;
grid-template-columns:58px 1fr auto;
gap:12px;
align-items:center;
padding-bottom:14px;
border-bottom:1px solid #edf2f6;
}
.summary-item img{
width:58px;
height:58px;
border-radius:14px;
object-fit:cover;
background:#edf7fb;
}
.summary-item h3{
font-family:'Manrope','Inter',sans-serif;
font-size:15px;
color:#082f52;
margin-bottom:3px;
}
.summary-item p{font-size:13px;color:#526d86}
.summary-price{
font-weight:800;
color:#082f52;
font-size:14px;
}
.summary-empty{
text-align:center;
padding:26px 10px;
line-height:1.7;
color:#526d86;
}
.summary-empty a{
display:inline-flex;
margin-top:14px;
text-decoration:none;
border-radius:999px;
padding:12px 16px;
background:#49c5b6;
color:white;
font-weight:800;
}
.summary-total{
display:flex;
align-items:center;
justify-content:space-between;
font-family:'Manrope','Inter',sans-serif;
font-size:22px;
font-weight:800;
color:#082f52;
padding-top:18px;
border-top:1px solid #e6eef5;
}
.checkout-submit{
margin-top:22px;
width:100%;
border:none;
border-radius:999px;
padding:16px 20px;
background:linear-gradient(135deg,#49c5b6,#d9c2a3);
color:#03263f;
font-family:'Manrope','Inter',sans-serif;
font-size:15px;
font-weight:800;
cursor:pointer;
transition:.3s ease;
}
.checkout-submit:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(73,197,182,.22)}
.checkout-message{
margin-top:16px;
padding:14px 16px;
border-radius:18px;
font-size:14px;
line-height:1.6;
display:none;
}
.checkout-message.success{display:block;background:#e8fbf5;color:#0b6c5f}
.checkout-message.error{display:block;background:#fff0f0;color:#9d3131}
@media(max-width:900px){
.checkout-layout{grid-template-columns:1fr}
.order-summary{position:static}
}
@media(max-width:640px){
.checkout-hero{padding:96px 5% 42px}
.checkout-card{padding:26px 20px;border-radius:28px}
.checkout-form{grid-template-columns:1fr}
.checkout-section{padding:34px 5% 76px}
}

.checkout-legal-consent{
grid-column:1/-1;
display:grid;
gap:10px;
margin:10px 0 4px;
padding:16px;
border-radius:18px;
background:#f4fafc;
border:1px solid rgba(8,47,82,.08);
}
.checkout-legal-consent label{
display:flex;
gap:10px;
align-items:flex-start;
font-size:13px;
line-height:1.55;
color:#405d78;
}
.checkout-legal-consent input{
width:auto;
margin-top:3px;
}
.checkout-legal-consent a{
color:#0b8d83;
font-weight:800;
text-decoration:none;
}

/* Step Menu Uniforme - mobile */
@media(max-width:720px){
.header{
padding:8px 4%;
}

.header-inner{
flex-direction:column;
gap:7px;
}

.logo-img{
width:112px;
}

.nav{
justify-content:center;
gap:6px;
}

.nav a{
font-size:12px;
padding:7px 10px;
}
}



/* Step 14 - Miniature riepilogo ordine con sfondo ottanio/turchese trasparente */
.summary-item img{
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.42), rgba(255,255,255,0) 58%),
    linear-gradient(135deg, rgba(73,197,182,.18), rgba(79,163,217,.10)) !important;
}

/* ============================================================
   CHECKOUT — allineamento allo stile della pagina Prodotti
   Stessa palette, stesse forme (card morbide, tasti a pillola),
   stessa gerarchia tipografica.
   ============================================================ */

/* --- CONSENSI LEGALI: ora stanno DENTRO il form, prima del tasto --- */
.checkout-legal-consent{
  grid-column:1/-1;
  display:grid;
  gap:12px;
  margin:6px 0 2px;
  padding:18px 20px;
  border-radius:22px;
  background:linear-gradient(180deg,#f2fbfa,#eef7fb);
  border:1px solid rgba(73,197,182,.22);
}
.checkout-legal-consent label{
  display:flex;
  gap:11px;
  align-items:flex-start;
  font-size:13.5px;
  line-height:1.55;
  color:#3f5f7a;
  cursor:pointer;
}
.checkout-legal-consent input[type="checkbox"]{
  width:20px;
  height:20px;
  min-width:20px;
  margin-top:1px;
  accent-color:#1f8fa3;      /* colore del brand quando spuntato */
  cursor:pointer;
}
.checkout-legal-consent a{
  color:#0b8d83;
  font-weight:800;
  text-decoration:underline;
}
/* se non li spunta: bordo di avviso */
.checkout-legal-consent.has-error{
  border-color:rgba(180,70,70,.45);
  background:#fff5f5;
}
.checkout-legal-consent.has-error .checkout-error{display:block; margin-top:2px}

/* --- CARD: stesse forme della pagina Prodotti --- */
.checkout-card{
  border-radius:34px;
  border:1px solid rgba(6,28,53,.055);
  box-shadow:0 18px 46px rgba(8,36,58,.09);
}
.checkout-card h2{
  font-family:'Manrope','Inter',sans-serif;
  letter-spacing:-.045em;
  color:#082f52;
}

/* --- ETICHETTA "CHECKOUT" in stile kicker, come su Prodotti --- */
.checkout-kicker{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 18px;
  border-radius:999px;
  background:rgba(73,197,182,.10);
  color:#0b8d83;
  font-family:Manrope, sans-serif;
  font-size:11px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
  margin-bottom:18px;
}

/* --- CAMPI: piu' morbidi, coerenti col resto --- */
.checkout-field input,
.checkout-field textarea,
.checkout-field select{
  border-radius:16px;
  padding:15px 17px;
  background:#eef7fb;
  border:1px solid transparent;
}
.checkout-field input:focus,
.checkout-field textarea:focus,
.checkout-field select:focus{
  background:#ffffff;
  border-color:rgba(73,197,182,.55);
  box-shadow:0 0 0 4px rgba(73,197,182,.14);
}

/* --- METODI DI PAGAMENTO: schede piu' leggibili --- */
.payment-option{
  border-radius:22px;
  border:1px solid rgba(8,47,82,.10);
  padding:18px;
  transition:.25s ease;
}
.payment-option:hover{
  border-color:rgba(73,197,182,.45);
  transform:translateY(-1px);
}
.payment-option.active{
  border-color:#49c5b6;
  background:linear-gradient(180deg,#ffffff,#f3fbfa);
  box-shadow:0 0 0 4px rgba(73,197,182,.12);
}
.payment-option input{accent-color:#1f8fa3}

/* --- TASTO PRINCIPALE: a pillola, come "Apri scheda" su Prodotti --- */
.checkout-submit{
  border-radius:999px;
  padding:17px 24px;
  min-height:52px;
  background:linear-gradient(135deg, var(--primary), var(--accent));
  color:#03263f;
  font-family:Manrope, sans-serif;
  font-weight:800;
  letter-spacing:.02em;
  box-shadow:0 10px 26px rgba(73,197,182,.22);
  transition:transform .25s ease, box-shadow .25s ease;
}
.checkout-submit:hover:not(:disabled){
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(73,197,182,.30);
}
.checkout-submit:disabled{
  cursor:not-allowed;
  filter:grayscale(.35);
}

/* --- RIEPILOGO ORDINE --- */
.summary-item img{
  border-radius:14px;
  border:1px solid rgba(8,47,82,.06);
}
.summary-total{
  font-family:Manrope, sans-serif;
  color:#082f52;
}
.summary-empty a{
  border-radius:999px;
  background:linear-gradient(135deg, var(--primary), var(--accent));
  color:#03263f;
  font-weight:800;
  box-shadow:0 10px 24px rgba(73,197,182,.20);
}

/* --- MESSAGGI --- */
.checkout-message{border-radius:18px; font-weight:600}

@media(max-width:640px){
  .checkout-legal-consent{padding:16px}
  .checkout-submit{min-height:54px}   /* comodo da toccare */
}
