/* =========================================================================
   Savorita Contattaci
   Specifica: docs/contact-widget.md · Mockup: mockups/contact/

   Regole di scrittura (le stesse degli altri widget):
   - ogni selettore parte da .sv-ct.sv-ct
   - responsive a contenitore: la radice è il contenitore "svct" (non ha
     elementi fissi). Sotto 1000 telefono, da 700 misure più ampie, da 1000
     computer con due colonne
   - niente !important su display; [hidden] vince con tre attributi
   - i link si vestono da data-ct, mai dalla classe del link
   - i bottoni azzerano tutto ciò che kit e tema mettono sui <button>
   - campi a 16 px: iPhone non ingrandisce la pagina
   ========================================================================= */

/* ---------- radice e azzeramenti (kit Elementor, tema Hello) ---------- */
.sv-ct.sv-ct{
  --g:#087F23; --g2:#61C685; --mint:#E8FFE5; --red:#EC1B30; --navy:#293241; --txt:#6B8083; --ink:#2A3330;
  --line:#E3E1F0; --lilac:#F7F6FE; --field:#FCFCFF; --wa:#1FAF55; --wa-d:#178F45;
  --f-head:"Nunito","Segoe UI",system-ui,sans-serif; --f-body:"Nunito Sans","Nunito","Segoe UI",system-ui,sans-serif;
  container-type:inline-size; container-name:svct;
  color-scheme:light; line-height:1.4; color:var(--navy); font-family:var(--f-body); font-size:16px; text-align:left; width:100%;
}
.sv-ct.sv-ct *{ box-sizing:border-box; }
.sv-ct.sv-ct :is(h1,h2,h3,p,dl,dt,dd){ margin:0; padding:0; text-transform:none; letter-spacing:inherit; color:inherit; font-family:inherit; }
.sv-ct.sv-ct a,.sv-ct.sv-ct a:hover{ text-decoration:none; }
html .sv-ct.sv-ct button{
  font:inherit; color:inherit; background:none; border:0; padding:0; margin:0; cursor:pointer; box-shadow:none;
  text-transform:none; letter-spacing:inherit; line-height:inherit; min-height:0; white-space:normal; word-spacing:normal;
  text-align:inherit; -webkit-tap-highlight-color:transparent; border-radius:0;
}
.sv-ct.sv-ct :is(button,a,input,select,textarea):focus-visible{ outline:2px solid var(--g); outline-offset:2px; }
.sv-ct.sv-ct [hidden][hidden][hidden]{ display:none; }
.sv-ct.sv-ct svg{ display:block; flex:none; }

/* ---------- impaginazione ---------- */
/* larghezza massima e margini laterali sono del widget: va bene anche in un contenitore a tutta larghezza */
.sv-ct.sv-ct .ct-wrap{ display:grid; gap:28px; grid-template-areas:"intro" "card" "ways"; width:100%; max-width:1200px; margin:0 auto; padding-inline:clamp(16px,4vw,40px); padding-block:8px 40px; }
@container svct (min-width:700px){ .sv-ct.sv-ct .ct-wrap{ padding-block:16px 56px; } }
@container svct (min-width:1000px){
  .sv-ct.sv-ct .ct-wrap{ grid-template-columns:minmax(0,5fr) minmax(0,7fr); grid-template-areas:"intro card" "ways card"; grid-template-rows:auto 1fr;
    column-gap:64px; row-gap:36px; padding-block:40px 72px; align-items:start; }
}

/* ---------- apertura ---------- */
.sv-ct.sv-ct .ct-intro{ grid-area:intro; display:flex; flex-direction:column; gap:12px; min-width:0; }
.sv-ct.sv-ct .ct-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.sv-ct.sv-ct .ct-eyebrow{ font:800 13px/1 var(--f-head); letter-spacing:1.6px; text-transform:uppercase; color:var(--g); }
.sv-ct.sv-ct .ct-lang{ display:inline-flex; padding:3px; border-radius:999px; background:#fff; box-shadow:inset 0 0 0 1px var(--line),0 4px 14px -8px rgba(41,50,65,.3); flex:none; }
.sv-ct.sv-ct .ct-lang button{ display:inline-flex; align-items:center; gap:7px; padding:6px 12px 6px 7px; border-radius:999px; font:800 13px/1 var(--f-head); color:var(--txt); letter-spacing:.6px; }
.sv-ct.sv-ct .ct-lang button[aria-pressed="true"]{ background:var(--navy); color:#fff; }
.sv-ct.sv-ct .ct-flag{ width:20px; height:20px; border-radius:50%; overflow:hidden; flex:none; box-shadow:0 0 0 1px rgba(41,50,65,.12); }
.sv-ct.sv-ct .ct-flag svg{ width:100%; height:100%; }
.sv-ct.sv-ct .ct-h{ font:900 34px/1.06 var(--f-head); letter-spacing:-.6px; text-wrap:balance; color:var(--navy); }
.sv-ct.sv-ct .ct-h em{ font-style:normal; color:var(--g); }
@container svct (min-width:700px){ .sv-ct.sv-ct .ct-h{ font-size:42px; } }
@container svct (min-width:1000px){ .sv-ct.sv-ct .ct-h{ font-size:52px; } }
.sv-ct.sv-ct .ct-p{ color:var(--txt); font-size:17px; line-height:1.45; max-width:46ch; }
.sv-ct.sv-ct .ct-hand{ font-family:"Gloria Hallelujah",cursive; color:var(--red); font-size:17px; line-height:1.3; transform:rotate(-3deg); transform-origin:left; display:inline-flex; gap:8px; align-items:center; margin-top:4px; }
.sv-ct.sv-ct .ct-hand svg{ width:34px; height:20px; }

/* ---------- contatti diretti ---------- */
.sv-ct.sv-ct .ct-ways{ grid-area:ways; display:flex; flex-direction:column; gap:10px; min-width:0; }
.sv-ct.sv-ct .ct-ways h3{ margin:0 0 2px; font:800 13px/1 var(--f-head); letter-spacing:1.4px; text-transform:uppercase; color:var(--txt); }
.sv-ct.sv-ct .ct-way{ position:relative; display:flex; align-items:center; gap:12px; padding:10px 14px 10px 10px; border-radius:16px; background:rgba(255,255,255,.65); box-shadow:inset 0 0 0 1px var(--line); transition:background .2s,box-shadow .2s; }
.sv-ct.sv-ct .ct-way:hover{ background:#fff; box-shadow:inset 0 0 0 1px var(--g2); }
.sv-ct.sv-ct a[data-ct="way"]{ flex:1; min-width:0; display:flex; align-items:center; gap:12px; color:inherit; }
.sv-ct.sv-ct a[data-ct="way"]::after{ content:""; position:absolute; inset:0; border-radius:16px; }
.sv-ct.sv-ct .ct-way-i{ width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:var(--mint); color:var(--g); flex:none; }
.sv-ct.sv-ct .ct-way-i svg{ width:22px; height:22px; }
.sv-ct.sv-ct .ct-way-t{ display:block; min-width:0; }
.sv-ct.sv-ct .ct-way-t b{ display:block; font:800 15px/1.2 var(--f-head); color:var(--navy); }
.sv-ct.sv-ct .ct-way-t > span{ display:block; font-size:14px; color:var(--txt); overflow-wrap:anywhere; }
.sv-ct.sv-ct .ct-way-go{ flex:none; font-size:13px; font-weight:700; color:var(--g); white-space:nowrap; }
.sv-ct.sv-ct .ct-way-go button{ position:relative; z-index:1; padding:6px 10px; margin:-6px -8px; border-radius:999px; color:var(--g); font-weight:700; }
.sv-ct.sv-ct .ct-way-go button:hover{ background:var(--mint); }
.sv-ct.sv-ct .ct-login{ font-size:14.5px; color:var(--txt); margin-top:4px; }
.sv-ct.sv-ct a[data-ct="login"]{ color:var(--g); font-weight:700; border-bottom:1.5px solid var(--g2); }

/* ---------- la scheda ---------- */
.sv-ct.sv-ct .ct-card{ grid-area:card; background:#fff; border-radius:28px; box-shadow:0 1px 0 rgba(41,50,65,.04),0 24px 60px -28px rgba(41,50,65,.35); padding:22px 18px; min-width:0; }
@container svct (min-width:700px){ .sv-ct.sv-ct .ct-card{ padding:30px 34px 32px; } }
.sv-ct.sv-ct .ct-card-top{ margin:0 0 14px; padding:0 0 12px; border-bottom:1px solid var(--line); }
.sv-ct.sv-ct .ct-as{ font-size:14px; color:var(--txt); }
.sv-ct.sv-ct .ct-as b{ color:var(--navy); }

.sv-ct.sv-ct .ct-step{ border-top:1px solid var(--line); padding:16px 0; scroll-margin-top:96px; }
.sv-ct.sv-ct .ct-step:first-child,.sv-ct.sv-ct .ct-card-top + .ct-step{ border-top:0; padding-top:4px; }
.sv-ct.sv-ct .ct-step:last-child{ padding-bottom:0; }
.sv-ct.sv-ct .ct-q{ display:flex; gap:12px; align-items:baseline; }
.sv-ct.sv-ct .ct-n{ flex:none; width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center; font:900 13px/1 var(--f-head); background:var(--navy); color:#fff; transform:translateY(4px); }
.sv-ct.sv-ct .ct-n svg{ width:14px; height:14px; }
.sv-ct.sv-ct .ct-q h2{ font:800 21px/1.25 var(--f-head); color:var(--navy); text-wrap:balance; }
.sv-ct.sv-ct .ct-step[data-st="lock"] .ct-n{ background:#E9E8F2; color:var(--txt); }
.sv-ct.sv-ct .ct-step[data-st="lock"] h2{ color:#A9B3B5; font-size:17px; }
.sv-ct.sv-ct .ct-step[data-st="done"] .ct-q{ align-items:center; }
.sv-ct.sv-ct .ct-step[data-st="done"] .ct-n{ background:var(--g); transform:none; }
.sv-ct.sv-ct .ct-sum{ display:flex; align-items:center; gap:4px 10px; flex-wrap:wrap; min-width:0; flex:1; }
.sv-ct.sv-ct .ct-sum small{ font-size:13px; color:var(--txt); font-weight:600; }
.sv-ct.sv-ct .ct-sum b{ font:800 16px/1.2 var(--f-head); color:var(--navy); }
.sv-ct.sv-ct .ct-change{ margin-left:auto; font-size:14px; font-weight:700; color:var(--g); padding:6px 10px; border-radius:999px; }
.sv-ct.sv-ct .ct-change:hover{ background:var(--mint); }
.sv-ct.sv-ct .ct-body{ padding:14px 0 0 38px; animation:svctIn .35s ease both; }
@container svct (max-width:520px){ .sv-ct.sv-ct .ct-body{ padding-left:0; } }
@keyframes svctIn{ from{ opacity:.001; transform:translateY(6px); } to{ opacity:1; transform:none; } }

/* chi sei */
.sv-ct.sv-ct .ct-who{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
@container svct (min-width:1000px){ .sv-ct.sv-ct .ct-who{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
.sv-ct.sv-ct .ct-tile{ display:flex; flex-direction:column; gap:8px; padding:14px 14px 13px; border-radius:18px; box-shadow:inset 0 0 0 1.5px var(--line); transition:box-shadow .2s,background .2s,transform .15s; min-height:104px; }
.sv-ct.sv-ct .ct-tile:hover{ box-shadow:inset 0 0 0 1.5px var(--g2); background:#FBFFFA; }
.sv-ct.sv-ct .ct-tile:active{ transform:scale(.98); }
.sv-ct.sv-ct .ct-tile svg{ width:28px; height:28px; color:var(--g); }
.sv-ct.sv-ct .ct-tile b{ font:800 16px/1.15 var(--f-head); color:var(--navy); }
.sv-ct.sv-ct .ct-tile span{ font-size:13.5px; color:var(--txt); line-height:1.3; }
/* il produttore: largo due colonne, in fondo, con il tricolore */
.sv-ct.sv-ct .ct-tile[data-ct-who="producer"]{ order:2; grid-column:span 2; display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:12px; align-content:center; background:linear-gradient(100deg,#FFF7F8,#fff 60%); }
.sv-ct.sv-ct .ct-tile[data-ct-who="producer"] svg{ grid-row:span 2; align-self:center; color:var(--red); }
.sv-ct.sv-ct .ct-tile[data-ct-who="producer"] b::after{ content:""; display:inline-block; width:18px; height:6px; margin-left:6px; vertical-align:middle; border-radius:2px; background:linear-gradient(90deg,#087F23 33%,#fff 33% 66%,#EC1B30 66%); box-shadow:0 0 0 1px var(--line); }

/* di cosa hai bisogno */
.sv-ct.sv-ct .ct-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.sv-ct.sv-ct .ct-chip{ padding:10px 15px; border-radius:999px; box-shadow:inset 0 0 0 1.5px var(--line); font-weight:700; font-size:15px; line-height:1.25; color:var(--navy); transition:box-shadow .2s,background .2s; }
.sv-ct.sv-ct .ct-chip:hover{ box-shadow:inset 0 0 0 1.5px var(--g2); background:#FBFFFA; }

/* scorciatoia */
.sv-ct.sv-ct .ct-short{ display:flex; gap:14px; align-items:center; flex-wrap:wrap; padding:14px 16px; border-radius:18px; background:var(--mint); margin-bottom:16px; }
.sv-ct.sv-ct .ct-short p{ flex:1 1 220px; font-size:15px; color:var(--ink); }
.sv-ct.sv-ct .ct-short p b{ font-family:var(--f-head); font-weight:800; color:var(--g); }
.sv-ct.sv-ct a[data-ct="short"]{ flex:none; font:800 15px/1 var(--f-head); background:var(--g); color:#fff; padding:12px 16px; border-radius:999px; }
.sv-ct.sv-ct .ct-or{ display:block; font-size:13px; color:var(--txt); margin:-6px 0 12px; font-weight:600; }

/* ---------- form ---------- */
.sv-ct.sv-ct .ct-form{ display:grid; grid-template-columns:minmax(0,1fr); gap:14px; margin:0; }
@container svct (min-width:600px){ .sv-ct.sv-ct .ct-form{ grid-template-columns:repeat(2,minmax(0,1fr)); } .sv-ct.sv-ct .ct-wide{ grid-column:1/-1; } }
.sv-ct.sv-ct .ct-f{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.sv-ct.sv-ct .ct-f label,.sv-ct.sv-ct .ct-fl{ font-size:13.5px; font-weight:700; color:var(--navy); line-height:1.3; margin:0; }
.sv-ct.sv-ct .ct-f label i{ font-style:normal; font-weight:600; color:var(--txt); }
.sv-ct.sv-ct :is(input,select,textarea){
  font:inherit; font-size:16px; line-height:1.4; color:var(--navy); background:var(--field); border:0; border-radius:14px; box-shadow:inset 0 0 0 1.5px var(--line);
  padding:12px 14px; width:100%; min-width:0; height:auto; min-height:0; margin:0; outline:0; transition:box-shadow .15s,background .15s; -webkit-appearance:none; appearance:none;
}
.sv-ct.sv-ct select{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%236B8083' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; background-size:18px; padding-right:38px; }
.sv-ct.sv-ct textarea{ min-height:112px; resize:vertical; line-height:1.45; }
.sv-ct.sv-ct :is(input,textarea)::placeholder{ color:#A3AEB0; opacity:1; }
.sv-ct.sv-ct :is(input,select,textarea):focus{ box-shadow:inset 0 0 0 2px var(--g); background:#fff; }
.sv-ct.sv-ct [data-err] :is(input,select,textarea){ box-shadow:inset 0 0 0 2px var(--red); }
.sv-ct.sv-ct .ct-err{ display:block; font-size:13px; color:var(--red); font-weight:700; }
.sv-ct.sv-ct .ct-seg{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; padding:4px; border-radius:16px; background:#F3F2FA; }
.sv-ct.sv-ct .ct-seg button{ display:flex; align-items:center; justify-content:center; gap:6px; padding:10px 6px; border-radius:12px; font-weight:700; font-size:14.5px; color:var(--txt); text-align:center; }
.sv-ct.sv-ct .ct-seg button svg{ width:17px; height:17px; }
.sv-ct.sv-ct .ct-seg button[aria-pressed="true"]{ background:#fff; color:var(--g); box-shadow:0 2px 8px -3px rgba(41,50,65,.25); }
.sv-ct.sv-ct .ct-seg button[data-ct-reply="wa"][aria-pressed="true"]{ color:var(--wa-d); }
.sv-ct.sv-ct .ct-ok{ display:flex; gap:10px; align-items:flex-start; font-size:14px; line-height:1.4; color:var(--txt); cursor:pointer; font-weight:400; margin:0; }
.sv-ct.sv-ct .ct-ok input{ width:22px; height:22px; flex:none; padding:0; border-radius:7px; margin-top:-1px; cursor:pointer; }
.sv-ct.sv-ct .ct-ok input:checked{ background:var(--g) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; box-shadow:none; }
.sv-ct.sv-ct a[data-ct="doc"]{ color:var(--g); font-weight:700; }
.sv-ct.sv-ct .ct-ok[data-err] > span{ color:var(--red); }
.sv-ct.sv-ct .ct-trap{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.sv-ct.sv-ct .ct-ts{ min-height:0; }
.sv-ct.sv-ct .ct-gen{ padding:12px 14px; border-radius:14px; background:#FFF1F2; color:#B3121F; font-size:14.5px; font-weight:600; }
.sv-ct.sv-ct .ct-send{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; }
.sv-ct.sv-ct .ct-btn{ display:inline-flex; align-items:center; gap:10px; background:var(--g); color:#fff; font:800 17px/1 var(--f-head); padding:16px 24px; border-radius:999px; box-shadow:0 10px 24px -10px rgba(8,127,35,.7); transition:transform .15s,background .2s; }
.sv-ct.sv-ct .ct-btn:hover{ background:#066B1D; transform:translateY(-1px); }
.sv-ct.sv-ct .ct-btn[data-wa]{ background:var(--wa); box-shadow:0 10px 24px -10px rgba(31,175,85,.7); }
.sv-ct.sv-ct .ct-btn[data-wa]:hover{ background:var(--wa-d); }
.sv-ct.sv-ct .ct-btn:disabled{ opacity:.7; cursor:progress; transform:none; }
.sv-ct.sv-ct .ct-btn svg{ width:18px; height:18px; }
.sv-ct.sv-ct .ct-when{ font-size:13.5px; color:var(--txt); display:flex; gap:8px; align-items:center; }
.sv-ct.sv-ct .ct-when::before{ content:""; width:8px; height:8px; border-radius:50%; background:var(--g2); box-shadow:0 0 0 4px rgba(97,198,133,.25); flex:none; }
@container svct (max-width:599px){ .sv-ct.sv-ct .ct-btn{ width:100%; justify-content:center; } }

/* ---------- inviato ---------- */
.sv-ct.sv-ct .ct-done{ display:flex; flex-direction:column; gap:14px; align-items:flex-start; padding:8px 0 4px; animation:svctIn .4s ease both; outline:0; }
.sv-ct.sv-ct .ct-done-i{ width:60px; height:60px; border-radius:50%; background:var(--mint); display:flex; align-items:center; justify-content:center; color:var(--g); }
.sv-ct.sv-ct .ct-done-i svg{ width:30px; height:30px; stroke-dasharray:30; stroke-dashoffset:30; animation:svctTick .5s .15s ease forwards; }
.sv-ct.sv-ct .ct-done-i[data-wa]{ color:var(--wa-d); }
.sv-ct.sv-ct .ct-done-i[data-wa] svg{ stroke-dasharray:none; stroke-dashoffset:0; animation:none; }
@keyframes svctTick{ to{ stroke-dashoffset:0; } }
.sv-ct.sv-ct .ct-done h2{ font:900 28px/1.1 var(--f-head); color:var(--navy); text-wrap:balance; }
.sv-ct.sv-ct .ct-done p{ color:var(--txt); max-width:48ch; }
.sv-ct.sv-ct .ct-recap{ width:100%; display:grid; gap:8px; padding:14px 16px; border-radius:18px; background:var(--lilac); font-size:14.5px; }
.sv-ct.sv-ct .ct-recap div{ display:grid; grid-template-columns:110px minmax(0,1fr); gap:10px; }
.sv-ct.sv-ct .ct-recap dt{ color:var(--txt); font-weight:600; }
.sv-ct.sv-ct .ct-recap dd{ color:var(--navy); font-weight:700; overflow-wrap:anywhere; }
.sv-ct.sv-ct .ct-wa{ width:100%; padding:16px; border-radius:18px; background:#E9E3DA radial-gradient(rgba(0,0,0,.035) 1px,transparent 1px) 0 0/10px 10px; }
.sv-ct.sv-ct .ct-wa-h{ display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:700; color:#54656F; margin-bottom:10px; }
.sv-ct.sv-ct .ct-wa-h svg{ width:16px; height:16px; }
.sv-ct.sv-ct .ct-wa-b{ margin-left:auto; max-width:92%; width:fit-content; background:#D9FDD3; border-radius:12px 4px 12px 12px; padding:10px 12px; font-size:14.5px; line-height:1.4; color:#111B21; white-space:pre-wrap; overflow-wrap:anywhere; box-shadow:0 1px 1px rgba(0,0,0,.1); }
.sv-ct.sv-ct a[data-ct="wa-go"]{ display:inline-flex; align-items:center; gap:10px; background:var(--wa); color:#fff; font:800 16px/1 var(--f-head); padding:14px 20px; border-radius:999px; }
.sv-ct.sv-ct a[data-ct="wa-go"]:hover{ background:var(--wa-d); }
.sv-ct.sv-ct a[data-ct="wa-go"] svg{ width:18px; height:18px; }
.sv-ct.sv-ct .ct-again{ font-size:14px; color:var(--txt); text-decoration:underline; }

.sv-ct.sv-ct .ct-noscript{ margin-top:16px; font-size:16px; }

@media (prefers-reduced-motion:reduce){
  .sv-ct.sv-ct *{ animation:none; transition:none; }
  .sv-ct.sv-ct .ct-done-i svg{ stroke-dashoffset:0; }
}
