/* Fluxie · design "Aurora", lo stesso dell'app iOS
   · fondo con quattro macchie di colore (turchese, blu, viola, corallo) e onde sottili, fermo
   · schede di vetro con bordo sottile, pillole turchesi
   · titoli Fraunces in grassetto con l'ottica che segue la dimensione
   · testi lunghi su fondo quasi pieno, per leggere comodi
   Si appoggia a redesign.css: per tornare indietro basta togliere il <link> ad aurora.css. */

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

:root{
  --display:"Fraunces Aurora","Fraunces","Iowan Old Style",Georgia,serif;
  --r:22px;--r-sm:14px;
  --paper:#f3f1ec;--ink:#13202b;--muted:#566370;--card:#fbfaf7;--white:#fbfaf7;--line:rgba(19,32,43,.10);--soft:rgba(63,216,200,.16);--blue:#0b8a7e;--green:#0b8a7e;
  --teal:#0b8a7e;--teal-2:#3fd8c8;--pill-fg:#04221f;
  --glass:rgba(255,255,255,.7);--glass-line:rgba(255,255,255,.95);--solid:rgba(255,255,255,.86);
  --g1:rgba(18,170,156,.44);--g2:rgba(45,94,220,.36);--g3:rgba(112,80,224,.28);--g4:rgba(226,112,88,.36);--wave:rgba(45,94,170,.14);
  --grad-btn:linear-gradient(120deg,#1f8f9a 0%,#2d5eaa 100%);
  --grad-text:linear-gradient(90deg,#2d5eaa,#0b8a7e);
  --seg-a:#4a7fe0;--seg-b:#3fd8c8;--seg-c:#8a95a6;
}
html[data-theme=dark]{
  /* «Notte blu»: fondo blu notte, macchie tenui solo blu e turchese (niente viola né corallo) */
  --paper:#0a1222;--ink:#eef3fa;--muted:#9fb0c8;--card:#121c33;--white:#121c33;--line:rgba(160,190,230,.12);--soft:rgba(79,214,201,.14);--blue:#5fe3d5;--green:#5fe3d5;
  --teal:#4fd6c9;--teal-2:#4fd6c9;
  --glass:rgba(22,34,60,.66);--glass-line:rgba(160,190,230,.14);--solid:rgba(16,26,46,.86);
  --g1:rgba(30,150,150,.42);--g2:rgba(50,90,190,.45);--g3:rgba(70,90,180,.25);--g4:transparent;--wave:rgba(120,170,255,.14);
  --grad-text:linear-gradient(90deg,#7fb4ff,#4fd6c9);
  --seg-a:#4a7fe0;--seg-b:#4fd6c9;--seg-c:#46586a;
}

/* fondo: macchie e onde fisse dietro la pagina, nessuna animazione */
body{background:var(--paper)!important}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;transform:translateZ(0);will-change:transform;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 900' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%237aa0d8' stroke-opacity='.22' stroke-width='1.4'%3E%3Cpath d='M0 240C220 190 420 300 640 250S1060 170 1280 230'/%3E%3Cpath d='M0 520C260 470 480 560 700 520S1080 450 1280 500'/%3E%3Cpath d='M0 760C240 720 500 800 760 760S1100 700 1280 740'/%3E%3C/g%3E%3C/svg%3E") center/100% 100% no-repeat,
    radial-gradient(42% 46% at 88% 2%,var(--g1),transparent 70%),
    radial-gradient(40% 50% at 6% 78%,var(--g2),transparent 70%),
    radial-gradient(34% 36% at 52% 46%,var(--g3),transparent 70%),
    radial-gradient(34% 40% at 96% 96%,var(--g4),transparent 70%)}

/* titoli */
h1,h2,.product h2,#wizardTitle,#resultsTitle,.results-head h2,.panel h2,.faq h2,.page-info h2,.page-info h3,.sectionhead h2,.summary-card>strong{font-family:var(--display)!important;font-weight:650!important;letter-spacing:-.02em}
h1{line-height:1!important;letter-spacing:-.025em!important}
.eyebrow,.wizard-eyebrow{font-weight:800!important;letter-spacing:.24em!important;background:var(--grad-text)!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;-webkit-text-fill-color:transparent}

/* testata: niente fascia, il titolo sta sullo sfondo come nell'app, allineato a sinistra */
.hero::before,.intro::before{display:none!important}
.hero:not(#_),.intro:not(#_){color:var(--ink)!important;text-align:left!important;margin-left:0!important;margin-right:auto!important;max-width:880px!important;padding-bottom:30px!important}
.hero:not(#_) p,.intro:not(#_) p,.intro:not(#_) .lead{margin-left:0!important;margin-right:0!important}
.hero h1,.intro h1{color:var(--ink)!important;font-size:clamp(44px,6.2vw,80px)!important;margin-left:0!important;margin-right:0!important}
.hero p,.intro p,.intro .lead{color:var(--muted)!important;margin-left:0!important;margin-right:0!important;font-size:18px;max-width:640px}
.hero .eyebrow,.intro .eyebrow{background:var(--grad-text)!important;-webkit-background-clip:text!important;background-clip:text!important}

/* vetro */
.panel,.results-panel,.faq,.summary-card,.product,.surface,.search-sidebar>*,.news-brief,.energy-monthly,.mapbox,.resultsbox,
body[data-comparator-ux] .offer,html body[data-comparator-ux] .results-main .offer-list article.offer{
  background:var(--glass)!important;border:1px solid var(--glass-line)!important;border-radius:var(--r)!important;box-shadow:none!important;
  }
html[data-theme=dark] .product,html[data-theme=dark] .summary-card{background:var(--glass)!important}
body[data-comparator-ux] .offer.offer-best,html body[data-comparator-ux] .results-main .offer-list article.offer.offer-best{border:1.5px solid var(--teal-2)!important;background:linear-gradient(180deg,rgba(63,216,200,.14),transparent 60%),var(--glass)!important}
.product:hover,.summary-card:hover{border-color:var(--teal-2)!important}

/* testi lunghi: fondo quasi pieno, righe comode */
.page-info{max-width:none!important;margin-left:0!important;margin-right:0!important;padding:40px 48px!important;border-radius:26px!important;background:var(--solid)!important;border:1px solid var(--glass-line)!important;}
.page-info h2{font-size:36px!important;line-height:1.1;margin:0 0 16px!important}
.page-info h3{font-size:22px!important;margin:28px 0 6px!important}
.page-info p{font-size:17px;line-height:1.7;max-width:70ch}
.page-info a{color:var(--teal)!important;font-weight:600}
.page-info details{border-top:1px solid var(--line);padding:14px 0}
.page-info summary{cursor:pointer;font-weight:700;font-size:17px}

/* pulsanti e campi */
.wizard-next,.submit,button.primary,.search,.offer-detail a.offer-link-button,.offer-meta .offer-actions .offer-activate,body[data-comparator-ux] .offer-meta .offer-actions .offer-activate{
  background:var(--teal-2)!important;color:var(--pill-fg)!important;border:0!important;border-radius:var(--r-sm)!important;font-weight:800!important;box-shadow:none!important}
.field input,.field select,.band input,.choice{border-radius:var(--r-sm)!important;border:1px solid var(--glass-line)!important;background:rgba(255,255,255,.7)!important;color:var(--ink)!important}
html[data-theme=dark] .field input,html[data-theme=dark] .field select,html[data-theme=dark] .band input,html[data-theme=dark] .choice{background:rgba(255,255,255,.06)!important}
.choice.active,.choice[aria-pressed=true]{border-color:var(--teal-2)!important;background:var(--soft)!important}
.go{background:none!important;color:var(--teal)!important;-webkit-text-fill-color:currentColor}

/* icone delle sezioni come nell'app */
html.fluxie-home .product .icon,html[data-theme=dark].fluxie-home .product .icon,.summary-icon,html[data-theme=dark] .summary-icon{width:48px!important;height:48px!important;border-radius:15px!important;background:linear-gradient(145deg,#1f8f9a,#2d5eaa)!important;color:#fff!important}

/* barra di navigazione (computer): vetro, voci a pillola, quella attiva turchese */
.fluxie-sidebar{background:color-mix(in srgb,var(--paper) 55%,transparent)!important;border:0!important;border-bottom:1px solid var(--glass-line)!important;box-shadow:none!important;-webkit-backdrop-filter:blur(22px) saturate(1.3);backdrop-filter:blur(22px) saturate(1.3)}
.fluxie-sidebar-links>a,.fluxie-sidebar-links .fluxie-info-trigger{border-radius:999px!important;border:0!important;background:transparent!important;color:var(--ink)!important;font-weight:600!important}
.fluxie-theme-toggle:not(.fluxie-sidebar-theme),.fluxie-menu-toggle{background:var(--glass)!important;border:1px solid var(--glass-line)!important;border-radius:999px!important;color:var(--ink)!important;}
.fluxie-info-submenu,.fluxie-menu-panel{background:var(--card)!important;border:1px solid var(--line)!important;border-radius:18px!important}
.fluxie-menu-links a{background:transparent!important;border-color:var(--line)!important;border-radius:14px!important}
.fluxie-menu-links a[aria-current=page]{background:var(--teal-2)!important;color:var(--pill-fg)!important;border-color:transparent!important}

/* Home: anteprima della mappa nella scheda dei carburanti */
.viz{border:1px solid var(--glass-line)!important;border-style:solid!important;border-radius:16px!important;background:rgba(255,255,255,.05)!important}
html:not([data-theme=dark]) .viz{background:rgba(255,255,255,.55)!important}
.viz small{letter-spacing:.12em!important}
.viz.minimap{position:relative;height:120px;padding:0!important;overflow:hidden}
.viz.minimap svg{position:absolute;inset:0;width:100%;height:100%}
.minimap .mp{position:absolute;transform:translate(-50%,-50%);font:800 11px/1.3 Inter,system-ui,sans-serif;padding:2px 7px;border-radius:8px;background:#fff;color:#13202b;border:2px solid var(--teal-2);box-shadow:0 3px 10px rgba(0,0,0,.2)}
.minimap .mp.best{background:var(--teal-2);color:var(--pill-fg);border-color:#fff}
.minimap .mhere{position:absolute;left:50%;top:52%;width:16px;height:16px;transform:translate(-50%,-50%);border-radius:50%;background:#fff;border:4px solid #1a8fd0;box-shadow:0 0 0 7px rgba(63,216,200,.25)}
.minimap{--map:#16202c;--map-line:#24324a;--map-river:#1d3550}
html:not([data-theme=dark]) .minimap{--map:#e7ece9;--map-line:#fff;--map-river:#bcd3e6}

/* Home: riquadro dell'app */
.app-band{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 22px;padding:28px 34px;border-radius:var(--r);background:var(--glass);border:1px solid var(--glass-line);}
.app-band h2{font-size:32px;margin:8px 0 6px;line-height:1.1}
.app-band p{margin:0;color:var(--muted);max-width:560px}
.app-band .app-store-badge{flex:none}

/* Carburanti */
.content .boxhead{font-weight:700;border-bottom:1px solid var(--glass-line)!important;background:transparent!important}
.mapbox{overflow:hidden}
#map{background:#16202c}
html:not([data-theme=dark]) #map{background:#e7ece9}
html:not([data-theme=dark]) #map .leaflet-tile-pane{filter:grayscale(.75) saturate(.7) brightness(1.04) contrast(.92)}
html[data-theme=dark] #map .leaflet-tile-pane{filter:invert(1) hue-rotate(185deg) brightness(.82) contrast(.88) saturate(.35)}
.fuel-pills{display:flex;gap:8px;flex-wrap:wrap}
.fuel-pills button{padding:10px 18px;border-radius:999px;font:700 15px/1.2 inherit;font-family:inherit;color:var(--ink);background:var(--glass);border:1px solid var(--glass-line);cursor:pointer;}
.fuel-pills button[aria-pressed=true]{background:var(--teal-2);color:var(--pill-fg);border-color:transparent}
.fuel-pills+select,.has-fuel-pills select#fuel{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none}

@media(max-width:650px){
  .hero h1,.intro h1{font-size:44px!important}
  .hero p,.intro p{font-size:16px}
  .page-info{padding:24px 20px!important;border-radius:22px!important}
  .page-info h2{font-size:28px!important}
  .page-info h3{font-size:20px!important}
  .page-info p{font-size:16px}
  .app-band{flex-direction:column;align-items:flex-start;padding:22px}
  .app-band h2{font-size:26px}
  .fuel-pills{flex-wrap:nowrap}
  .fuel-pills button{flex:1;padding:9px 4px;font-size:14px}
}
@media (prefers-reduced-transparency:reduce){
  .panel,.product,.summary-card,.mapbox,.resultsbox,.page-info,.app-band{background:var(--card)!important;}
}

/* Carburanti: ricerca, mappa e lista sulla stessa larghezza del titolo; carburanti a pillole su una riga */
.intro:not(#_) p{text-align:left!important}
main:has(#map) .panel,main:has(#map) .content,main:has(#map) .source{width:100%!important;max-width:none!important}
main:has(#map) .panel{padding:16px!important}
main:has(#map) .controls:first-child{grid-template-columns:minmax(0,1fr) auto!important}
main:has(#map) .controls .has-fuel-pills{grid-column:1/-1;order:3}
main:has(#map) .controls .search{min-height:46px;padding:0 26px}
main:has(#map) .content{gap:16px}
main:has(#map) #map{min-height:520px}

/* segnaposto solo prezzo come nell'app: il più basso turchese, i più cari col bordo corallo */
.price-pin{height:100%;justify-content:flex-end;filter:drop-shadow(0 3px 6px rgba(0,0,0,.28))!important}
.price-pin .brand-mark{display:none!important}
.station-tag{min-width:0!important;padding:3px 8px!important;border:2px solid var(--teal-2)!important;border-radius:10px!important;background:#fff!important;color:#13202b!important}
.station-tag:after{display:none!important}
.station-tag .price-label{color:#13202b!important;font-weight:800!important;font-size:12px!important;white-space:nowrap}
.station-tag.tier-good{background:var(--teal-2)!important;border-color:#fff!important}
.station-tag.tier-good .price-label{color:#04221f!important}
.station-tag.tier-high{border-color:#f0937c!important}
.fuel-cluster{background:rgba(22,34,60,.85)!important;border:1.5px solid var(--teal-2)!important;color:#fff!important;box-shadow:0 3px 10px rgba(0,0,0,.3)!important}
html:not([data-theme=dark]) .fuel-cluster{background:rgba(255,255,255,.92)!important;color:#13202b!important}
.fuel-cluster span{border:0!important}

/* lista: nome e dettagli a sinistra, prezzo grande a destra */
#results .row{grid-template-columns:minmax(0,1fr) auto!important;gap:2px 16px!important;padding:14px 18px!important;border-bottom:1px solid var(--glass-line)!important}
#results .row b{grid-column:1;grid-row:1;font-size:16px!important;font-weight:700}
#results .row small{grid-column:1;grid-row:2;font-size:12.5px!important;line-height:1.45}
#results .row strong{grid-column:2;grid-row:1/3;align-self:center;text-align:right;font-family:var(--display);font-weight:650;font-size:28px!important;line-height:1;color:var(--ink)!important;white-space:nowrap}
#results .row:first-child strong{color:var(--teal)!important}
#results .row a{grid-column:1;grid-row:3;justify-self:start;margin-top:6px;padding:4px 10px;border-radius:999px;background:var(--soft);color:var(--teal)!important;font-size:12px!important}

/* larghezze intermedie: il logo resta dentro il suo spazio e non finisce sotto la barra di vetro */
@media(max-width:1100px){.fluxie-sidebar-brand .fluxie-wordmark{width:100%!important;max-width:100%!important}}
@media(max-width:900px){.fluxie-sidebar-links>a:not([aria-current=page]) span{display:none}.fluxie-sidebar-links{justify-content:flex-start!important;justify-self:center}}


/* barra in alto: voci di testo, senza pillole; la pagina aperta in turchese con una lineetta sotto */
.fluxie-sidebar{border-bottom:1px solid var(--glass-line)!important}
.fluxie-sidebar-links{background:none!important;border:0!important;padding:0!important;gap:6px!important}
.fluxie-sidebar-links>a,.fluxie-sidebar-links .fluxie-info-trigger{position:relative;background:none!important;border:0!important;border-radius:0!important;color:var(--muted)!important;font-weight:600!important}
.fluxie-sidebar-links>a:hover,.fluxie-sidebar-links .fluxie-info-trigger:hover{color:var(--ink)!important}
.fluxie-sidebar-links>a[aria-current=page]{color:var(--teal)!important;font-weight:700!important}
.fluxie-sidebar-links>a[aria-current=page]::after{content:"";position:absolute;left:12px;right:12px;bottom:2px;height:2px;border-radius:2px;background:var(--teal-2)}
.fluxie-sidebar-theme{background:none!important;border:0!important;box-shadow:none!important;color:var(--muted)!important}
.fluxie-sidebar-theme:hover{color:var(--ink)!important}

/* comparatore bollette: il modulo parte allineato al titolo, non centrato */
.shell>form.panel:not(#_){margin-left:0!important;margin-right:auto!important}

/* comparatore su computer: il modulo usa tutta la larghezza e le tre partenze stanno affiancate, come le schede dell'app su iPad */
@media(min-width:1000px){
  .shell>form.panel:not(#_){max-width:none!important;width:100%!important;padding:36px 40px!important}
  .shell .choices.service-choices{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;margin-top:8px}
  .service-choices .choice{display:flex!important;flex-direction:column;align-items:flex-start!important;justify-content:flex-start!important;text-align:left!important;gap:8px;min-height:210px;max-width:none!important;width:auto!important;padding:24px!important;border-radius:20px!important}
  .service-choices .choice .choice-icon{display:flex;align-items:center;justify-content:center;gap:3px;white-space:nowrap;min-width:48px;width:auto;padding:0 12px;height:48px;border-radius:15px;background:linear-gradient(145deg,#1f8f9a,#2d5eaa);color:#fff!important;font-size:22px;margin-bottom:10px}
  .service-choices .choice .choice-icon svg{width:22px;height:22px;flex:none;color:#fff;stroke:#fff}
  .service-choices .choice strong{font-family:var(--display);font-weight:650;font-size:24px;line-height:1.15;letter-spacing:-.01em}
  .service-choices .choice small{text-align:left!important;font-size:14px;line-height:1.5;color:var(--muted)}
  .shell>form.panel .wizard-step>*:not(.choices):not(.entry-note){max-width:640px;margin-left:auto!important;margin-right:auto!important}
  .service-choices:has(#entryManual) .choice::after{content:"→  Inizia";margin-top:auto;padding-top:12px;font-weight:700;font-size:14px;color:var(--teal)}
}
