/* Fluxie · proposta di restyling v3 — linguaggio "editoriale"
   · titoli serif (Fraunces), numeri grandi e leggibili
   · fascia scura a tutta larghezza con flussi nella testata di ogni pagina
   · schede piatte, bordo sottile, raggi contenuti
   · home con mini-grafico per scheda; risultati del comparatore su righe a griglia
   Per tornare alla grafica precedente basta rimuovere il <link> a redesign.css. */

@font-face{font-family:"Fraunces";font-weight:600;font-style:normal;font-display:swap;src:url("/fonts/fraunces-latin-600-normal.woff2") format("woff2")}

:root{
  --display:"Fraunces","Iowan Old Style","Palatino Linotype",Georgia,serif;
  --r:14px;--r-sm:10px;
  --teal:#0e9f94;--teal-2:#32d4ca;--navy:#2d5eaa;--band:#07101d;
  --ink:#111a22;--muted:#5d6a73;--paper:#f6f4ef;--card:#fffefc;--white:#fffefc;--line:#e4e0d6;--soft:#eef4f3;--blue:#1c6fb8;--green:#0b7a6e;
  --shadow:none;
  --grad:linear-gradient(120deg,#2d5eaa 0%,#1a9fc4 52%,#32d4ca 100%);
  --grad-btn:linear-gradient(120deg,#215aa6 0%,#0f8fa6 100%);
  --grad-text:linear-gradient(110deg,#2d5eaa 0%,#0e9f94 100%);
  --seg-a:#1f4f96;--seg-b:#32d4ca;--seg-c:#c4c0b4;
  --flow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M-20 210C160 40 300 40 470 150s330 130 520-20 230-60 260-50' stroke='%2332d4ca' stroke-opacity='.3' stroke-width='2'/%3E%3Cpath d='M-20 245C170 85 320 85 480 185s340 120 530-30 220-60 250-50' stroke='%235b8fe0' stroke-opacity='.28' stroke-width='2'/%3E%3Cpath d='M-20 175C150 0 290 5 460 115s320 140 510-10 240-70 270-60' stroke='%2332d4ca' stroke-opacity='.16' stroke-width='1.5'/%3E%3C/g%3E%3C/svg%3E");
}
html[data-theme=dark]{
  --ink:#e9f1f4;--muted:#93a6b3;--paper:#050a12;--card:#0b1320;--white:#0b1320;--line:#18263a;--soft:#0d2a33;--blue:#52dccf;--green:#52dccf;--shadow:none;
  --grad-text:linear-gradient(110deg,#8fb8ff 0%,#52dccf 100%);
  --seg-a:#4d86e0;--seg-b:#32d4ca;--seg-c:#46586a;
}

html{overflow-x:clip}
body{background:var(--paper)!important}
html[data-theme=dark] body{background:var(--paper)!important}

/* titoli editoriali */
h1,.product h2,#wizardTitle,#resultsTitle,.results-head h2,.panel h2,.faq h2{font-family:var(--display);font-weight:600;letter-spacing:-.025em}
h1{letter-spacing:-.035em;line-height:1.02}

/* fascia scura con i flussi, a tutta larghezza */
.hero,.intro{position:relative;isolation:isolate;color:#fff}
.hero::before,.intro::before{content:"";position:absolute;z-index:-1;top:-78px;bottom:-40px;left:50%;width:100vw;transform:translateX(-50%);-webkit-mask-image:linear-gradient(180deg,#000 0%,#000 48%,transparent 100%);mask-image:linear-gradient(180deg,#000 0%,#000 48%,transparent 100%);
  background:var(--flow) center bottom/100% 80% no-repeat,radial-gradient(55% 130% at 88% -10%,#0f7a7266,transparent 62%),radial-gradient(50% 120% at 4% 110%,#2d5eaa77,transparent 62%),var(--band)}
.hero h1,.intro h1{color:#fff!important}
.hero p,.intro p,.intro .lead{color:#b4c4d6!important}
.hero .eyebrow,.intro .eyebrow{background:linear-gradient(110deg,#8fb8ff,#32d4ca);-webkit-background-clip:text;background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent}
.hero,.intro{padding-bottom:58px!important;margin-bottom:30px!important}
.eyebrow,.wizard-eyebrow{background:var(--grad-text);-webkit-background-clip:text;background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent;letter-spacing:.16em}

/* schede piatte, bordo sottile */
.panel,.results-panel,.faq,.summary-card,.product,.surface,.search-sidebar>*,.news-brief,.energy-monthly{border-radius:var(--r)!important;box-shadow:none!important;border:1px solid var(--line)!important;background:var(--card)!important}
html[data-theme=dark] .product,html[data-theme=dark] .summary-card{background:linear-gradient(170deg,#0e1828,#0a111d)!important}
.choice,.field input,.field select,.band input,.offer-actions button,.offer-actions a{border-radius:var(--r-sm)!important}

/* pulsanti */
.offer-meta .offer-actions .offer-activate,body[data-comparator-ux] .offer-meta .offer-actions .offer-activate,.wizard-next,.submit,.offer-detail a.offer-link-button,button.primary{background:var(--grad-btn)!important;border:0!important;color:#fff!important;box-shadow:none!important;border-radius:var(--r-sm)!important}
.offer-meta .offer-actions .offer-activate:hover,.wizard-next:hover,.submit:hover{filter:brightness(1.08)}
#wizardProgressTrack span{background:var(--grad)!important}
.choice.active,.choice[aria-pressed=true]{border-color:var(--teal)!important;background:var(--soft)!important}

/* home: quattro schede uguali, ognuna con il suo mini-grafico */
html.fluxie-home .products{gap:18px;padding-top:0}
html.fluxie-home .product{min-height:300px;padding:26px;display:flex;flex-direction:column;transition:transform .18s,border-color .18s}
html.fluxie-home .product:hover{transform:translateY(-3px);border-color:var(--teal)!important}
html.fluxie-home .product h2{font-size:26px;margin:16px 0 6px}
html.fluxie-home .product p{font-size:14px;max-width:none}
html.fluxie-home .product .icon{width:40px;height:40px;border-radius:11px;background:var(--grad-btn)!important;color:#fff!important}
html[data-theme=dark].fluxie-home .product .icon{background:#0d2a33!important;color:#52dccf!important}
html.fluxie-home .product .go{padding-top:16px}
.viz{margin-top:18px;padding:14px;border:1px dashed var(--line);border-radius:var(--r-sm);background:color-mix(in srgb,var(--paper) 70%,transparent)}
.viz svg{display:block;width:100%;height:64px}
.viz small{display:block;margin-bottom:9px;color:var(--muted);font-size:10px;font-weight:750;letter-spacing:.08em;text-transform:uppercase}
.viz .cost-split{margin:0}

/* barra di composizione */
.cost-split{margin-top:14px}
.cost-split-bar{display:flex;gap:2px;height:10px;border-radius:99px;overflow:hidden;background:var(--line)}
.cost-split-bar span{display:block;min-width:3px}
.cost-split .seg-seller,.cost-split-legend .seg-seller{background:var(--seg-a)}
.cost-split .seg-network,.cost-split-legend .seg-network{background:var(--seg-b)}
.cost-split .seg-tax,.cost-split-legend .seg-tax{background:var(--seg-c)}
.cost-split-legend{display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:9px;font-size:12px;color:var(--muted)}
.cost-split-legend span{display:inline-flex;align-items:center;gap:7px}
.cost-split-legend i{width:9px;height:9px;border-radius:50%;display:inline-block}
.cost-split-legend b{color:var(--ink);font-weight:750;font-variant-numeric:tabular-nums}

/* risultati: riga con nome e prezzo, composizione sotto il nome */
body[data-comparator-ux] .offer-list{display:flex;flex-direction:column;gap:14px;padding-top:6px}
body[data-comparator-ux] .offer{position:relative;padding:20px 24px!important;margin:0!important;border:1px solid var(--line)!important;border-radius:var(--r)!important;background:var(--card)!important;box-shadow:none!important;animation:none!important;transition:border-color .15s,transform .15s}
body[data-comparator-ux] .offer:hover{border-color:var(--teal)!important;transform:translateY(-1px)}
body[data-comparator-ux] .offer.offer-best{border:1.5px solid var(--teal)!important;background:linear-gradient(180deg,color-mix(in srgb,var(--teal-2) 9%,var(--card)),var(--card) 60%)!important}
body[data-comparator-ux] .offer h3{font-size:17px!important;letter-spacing:-.02em;margin:2px 0 0!important}
.offer .cost{border:0!important;background:transparent!important;padding:0!important;text-align:right}
.offer .cost strong{font-family:var(--display);font-weight:600;font-size:38px!important;line-height:1;letter-spacing:-.04em;color:var(--ink);font-variant-numeric:lining-nums}
.offer.offer-best .cost strong{background:var(--grad-text);-webkit-background-clip:text;background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent}
.offer .cost small{display:block;margin-top:6px;font-size:11px;color:var(--muted);font-weight:600;white-space:nowrap}
.rank-badge{background:var(--ink)!important;color:var(--card)!important;border:0!important;border-radius:9px!important;box-shadow:none!important}
.best-offer-label{background:transparent!important;border:1px solid var(--teal)!important;color:var(--teal)!important;font-weight:800}
html[data-theme=dark] .best-offer-label{color:#7fe9de!important;border-color:#2fc7bb!important}
@media(min-width:1000px){
  body[data-comparator-ux] .offer{display:grid!important;grid-template-columns:minmax(0,1fr) 170px;column-gap:28px;row-gap:12px;align-items:start}
  body[data-comparator-ux] .offer>.offer-top{display:contents!important}
  body[data-comparator-ux] .offer>.offer-top>div:first-child{display:block!important;grid-column:1;grid-row:1;min-width:0}
  body[data-comparator-ux] .offer>.offer-top .rank-line{margin-bottom:4px}
  body[data-comparator-ux] .offer>.offer-top .cost{grid-column:2;grid-row:1}
  body[data-comparator-ux] .offer>.cost-split{grid-column:1/-1;grid-row:2;margin:2px 0 0}
  body[data-comparator-ux] .offer>.cost-split .cost-split-bar{height:12px}
  body[data-comparator-ux] .offer>*:not(.offer-top):not(.cost-split){grid-column:1/-1}
  body[data-comparator-ux] .offer>.offer-meta{padding-top:14px;margin-top:2px;border-top:1px solid var(--line)}
}

/* tema scuro: un solo accento turchese */
html[data-theme=dark] .summary-icon{background:#0d2a33!important;color:#52dccf!important}
html[data-theme=dark] .card-cta,html[data-theme=dark] .nav-link[aria-current=page]{color:#52dccf}
.go{background:var(--grad-text);-webkit-background-clip:text;background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent}

@media(max-width:999px){
  body[data-comparator-ux] .offer .cost strong{font-size:32px!important}
  body[data-comparator-ux] .offer>.cost-split{margin-top:12px}
}
@media(max-width:650px){
  html.fluxie-home .product{min-height:0;padding:20px}
  html.fluxie-home .product h2{font-size:22px}
  body[data-comparator-ux] .offer{padding:18px!important}
  body[data-comparator-ux] .offer .cost strong{font-size:28px!important}
  .hero::before,.intro::before{top:-64px}
}

/* mobile: stessa cornice anche per le righe dei risultati */
@media(max-width:999px){
  html body[data-comparator-ux] .results-main .offer-list article.offer{padding:18px!important;margin:0!important;border:1px solid var(--line)!important;border-radius:var(--r)!important;background:var(--card)!important;box-shadow:none!important}
  html body[data-comparator-ux] .results-main .offer-list article.offer.offer-best{border:1.5px solid var(--teal)!important;background:linear-gradient(180deg,color-mix(in srgb,var(--teal-2) 9%,var(--card)),var(--card) 60%)!important}
  html body[data-comparator-ux] .results-main .offer-list{gap:12px}
}
@media(max-width:650px){.hero::before,.intro::before{top:-110px!important}header.top{position:relative;z-index:2}}

/* tema chiaro: fascia chiara che si fonde con la pagina */
html:not([data-theme=dark]){
  --flow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M-20 210C160 40 300 40 470 150s330 130 520-20 230-60 260-50' stroke='%230e9f94' stroke-opacity='.38' stroke-width='2'/%3E%3Cpath d='M-20 245C170 85 320 85 480 185s340 120 530-30 220-60 250-50' stroke='%232d5eaa' stroke-opacity='.3' stroke-width='2'/%3E%3Cpath d='M-20 175C150 0 290 5 460 115s320 140 510-10 240-70 270-60' stroke='%230e9f94' stroke-opacity='.2' stroke-width='1.5'/%3E%3C/g%3E%3C/svg%3E");
}
html:not([data-theme=dark]) .hero,html:not([data-theme=dark]) .intro{color:var(--ink)}
html:not([data-theme=dark]) .hero::before,html:not([data-theme=dark]) .intro::before{
  background:var(--flow) center bottom/100% 80% no-repeat,radial-gradient(55% 130% at 88% -10%,#bdece5b0,transparent 62%),radial-gradient(50% 120% at 4% 110%,#c9d9f6b0,transparent 62%),linear-gradient(180deg,#e8f1ef 0%,#eef2ef 100%)}
html:not([data-theme=dark]) .hero h1,html:not([data-theme=dark]) .intro h1{color:var(--ink)!important}
html:not([data-theme=dark]) .hero p,html:not([data-theme=dark]) .intro p,html:not([data-theme=dark]) .intro .lead{color:var(--muted)!important}
html:not([data-theme=dark]) .hero .eyebrow,html:not([data-theme=dark]) .intro .eyebrow{background:var(--grad-text);-webkit-background-clip:text;background-clip:text}

/* mobile: home più essenziale, schede compatte */
@media(max-width:650px){
  html.fluxie-home .hero{padding-top:30px!important;padding-bottom:34px!important;margin-bottom:18px!important}
  html.fluxie-home .hero p{font-size:15px}
  html.fluxie-home .hero h1{font-size:31px}
  html.fluxie-home .products{gap:10px}
  html.fluxie-home .product{display:grid;grid-template-columns:44px minmax(0,1fr) auto;column-gap:14px;row-gap:2px;align-items:center;min-height:0;padding:15px 16px}
  html.fluxie-home .product .icon{grid-column:1;grid-row:1/3;width:44px;height:44px}
  html.fluxie-home .product h2{grid-column:2;grid-row:1;font-size:19px;margin:0}
  html.fluxie-home .product p{grid-column:2;grid-row:2;font-size:12.5px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0}
  html.fluxie-home .product .viz{display:none}
  html.fluxie-home .product .go{grid-column:3;grid-row:1/3;padding:0;font-size:0}
  html.fluxie-home .product .go::after{content:"→";font-size:22px;font-weight:700}
}

/* testata: nessuno stacco netto, la fascia sfuma nello sfondo (tema scuro: fascia più vicina al colore pagina) */
html[data-theme=dark] .hero::before,html[data-theme=dark] .intro::before{background:var(--flow) center bottom/100% 80% no-repeat,radial-gradient(55% 130% at 88% -10%,#0f7a7255,transparent 62%),radial-gradient(50% 120% at 4% 110%,#2d5eaa55,transparent 62%),linear-gradient(180deg,#08121f 0%,#06101a 100%)}
.hero,.intro{margin-bottom:12px!important}
@media(max-width:650px){
  html.fluxie-home .hero{margin-bottom:6px!important}
  html.fluxie-home .product p{display:block;-webkit-line-clamp:unset;overflow:visible;font-size:13px;line-height:1.4}
  html.fluxie-home .product p .d-long{display:none}
}
.product p .d-short{display:none}
@media(max-width:650px){html.fluxie-home .product p .d-short{display:inline}}

/* Mercati: numeri protagonisti, grafico e dettaglio coerenti col resto */
.summary-card{padding:22px 22px 68px!important;min-height:0!important}
.summary-card>strong{font-family:var(--display);font-weight:600;font-size:19px;letter-spacing:-.02em}
.summary-metric-value{font-family:var(--display);font-weight:600;font-size:24px!important;letter-spacing:-.03em;line-height:1.1;font-variant-numeric:lining-nums}
.fx-metrics .summary-metric-value,.energy-metrics .summary-metric-value,.fuel-metrics .summary-metric-value{font-size:20px!important}
.summary-metric-unit{font-size:11px!important;font-weight:600;color:var(--muted);margin-left:4px}
.summary-metric-label{font-size:12px!important;font-weight:650;color:var(--muted)}
.summary-spark path{stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.summary-metric-change{font-size:12px!important;font-weight:750}
.card-cta{bottom:18px;border-radius:var(--r-sm)!important;background:transparent!important;border:1px solid var(--line)!important;color:var(--teal)!important;font-weight:750}
html[data-theme=dark] .card-cta{color:#52dccf!important}
.summary-card:hover{border-color:var(--teal)!important}
:root{--chart-line:#0e9f94}
html[data-theme=dark]{--chart-line:#52dccf}
.dialog{border-radius:var(--r)!important;border:1px solid var(--line);box-shadow:0 30px 80px #0006!important}
.dialog h2,#detailtitle{font-family:var(--display);font-weight:600;font-size:30px;letter-spacing:-.03em}
#detailvalue{font-family:var(--display);font-weight:600;font-size:46px;letter-spacing:-.04em;line-height:1.05;font-variant-numeric:lining-nums}
.chart{border-radius:var(--r-sm)!important;background:var(--card)!important;border:1px solid var(--line)!important}
#chartLine{stroke:var(--chart-line)!important;stroke-width:2.6!important;stroke-linecap:round;stroke-linejoin:round}
#fill{fill:var(--chart-line)!important;fill-opacity:.12!important}
@media(max-width:650px){.summary-grid{grid-template-columns:1fr!important}.summary-card{padding-bottom:64px!important}}
/* Risultati su mobile: posizione, etichetta migliore offerta, riepilogo ricerca */
@media(max-width:700px){
  html body[data-comparator-ux] .offer-top{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;column-gap:10px;row-gap:8px;align-items:center}
  html body[data-comparator-ux] .offer-top>div:first-child,html body[data-comparator-ux] .rank-line{display:contents!important}
  html body[data-comparator-ux] .rank-badge{grid-column:1;grid-row:1;display:grid!important;place-items:center;width:28px!important;height:28px!important;border-radius:8px!important;font-size:14px!important;font-weight:700!important;line-height:1;font-variant-numeric:tabular-nums}
  html body[data-comparator-ux] .offer-operators{grid-column:2;grid-row:1;min-width:0}
  html body[data-comparator-ux] .offer-top .cost{grid-column:3;grid-row:1/span 2;align-self:start}
  html body[data-comparator-ux] .offer-top h3{grid-column:1/3;grid-row:2}
  html body[data-comparator-ux] .best-offer-label{grid-column:1/-1;grid-row:3;justify-self:start;max-width:100%;margin:0!important;white-space:normal!important;line-height:1.35;border-radius:12px!important}
  html body[data-comparator-ux] #searchSummary,html body[data-comparator-ux] .search-summary{border:0!important;background:transparent!important;padding:0!important;box-shadow:none!important}
  html body[data-comparator-ux] .results-main .offer-list article.offer{margin:0 0 12px!important}
}
/* Mobile: onde senza schiacciamento, footer a elenco */
@media(max-width:700px){
  .hero::before,.intro::before{background-size:auto 62%,auto,auto,auto!important}
  .fluxie-footer-grid{grid-template-columns:1fr!important;gap:24px!important}
}
/* Mercati: rifinitura (intestazioni, schede, link) */
.intro{padding-bottom:30px!important}
.sectionhead{align-items:flex-end;margin-bottom:4px}
.sectionhead h2{font-family:var(--display);font-weight:600;font-size:28px;letter-spacing:-.03em;margin:0 0 4px}
.sectionhead p{color:var(--muted);font-size:14px;margin:0}
.live-badge{border:0!important;box-shadow:none!important;background:transparent!important;color:var(--muted)!important;font-weight:600!important;padding:0!important}
.live-indicator{width:8px!important;height:8px!important}
.summary-grid{gap:16px!important}
.summary-card{padding:22px 24px 62px!important;border-radius:var(--r)!important;column-gap:14px!important}
.summary-icon{width:40px!important;height:40px!important;border-radius:12px!important;background:var(--grad-btn)!important;color:#fff!important}
.summary-card>strong{font-size:21px!important;align-self:center!important}
.summary-card:hover .summary-icon{transform:none!important;background:var(--grad-btn)!important}
.summary-data{margin-top:16px!important;padding-top:6px;border-top:1px solid var(--line)}
.summary-metric{padding:10px 0!important}
html body .summary-card .card-cta{left:0!important;right:auto!important;bottom:20px!important;transform:none!important;padding:0!important;margin:0!important;width:auto!important;border:0!important;font-size:13px!important;font-weight:750!important;opacity:1!important;justify-self:start!important;text-align:left!important}
.summary-card:hover .card-cta{text-decoration:underline;text-underline-offset:3px}
.fuel-metrics .summary-metric:nth-child(odd){padding-right:18px!important}
.fuel-metrics .summary-metric:nth-child(even){padding-left:18px!important}
.news-brief{border-radius:var(--r)!important;box-shadow:none!important;padding:20px 22px!important;margin-top:20px!important}
@media(max-width:650px){.sectionhead h2{font-size:24px}.summary-card{padding:20px 20px 58px!important}}
html body .summary-card{grid-template-columns:40px minmax(0,1fr)!important}
@media(max-width:650px){.sectionhead{flex-wrap:wrap;gap:8px}.sectionhead .live-badge{flex:0 0 100%}}
.live-badge .live-indicator{margin-right:8px!important}
@media(max-width:650px){html.fluxie-home .products{grid-template-columns:1fr!important}}
/* Testo informativo in fondo alle pagine strumento (Home, Carburanti, Mercati). */
.page-info{max-width:900px;margin:32px auto 44px;padding:24px 26px;border:1px solid var(--line);border-radius:var(--r);background:var(--card);color:var(--ink,inherit)}
.page-info h2{font-family:var(--display);font-weight:600;letter-spacing:-.02em;font-size:21px;margin:0 0 8px}
.page-info h3{font-size:15px;margin:20px 0 4px}
.page-info p,.page-info li{color:var(--muted);font-size:14px;line-height:1.65}
.page-info ul{padding-left:20px;margin:6px 0}
.page-info a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.page-info details{border-top:1px solid var(--line);padding:12px 0}
.page-info details:first-of-type{margin-top:12px}
.page-info summary{font-size:14px;font-weight:700;cursor:pointer}
.page-info details p{margin:8px 0 0}
@media(max-width:650px){.page-info{margin:24px 0 36px;padding:18px}}
.app-store-badge{display:inline-block;margin-top:10px;line-height:0}
.app-store-badge img{height:50px;width:auto}
.page-info .app-store-badge{text-decoration:none}
