@charset "UTF-8";
body {
  /*font-family: 'Open Sans', sans-serif;*/
  font-family: "Cabin", sans-serif;
  margin-top: 10%;
  background-color: #f8fcfd;
}
body p {
  font-size: 1.2rem;
}
body .flow-text {
  margin-left: 1%;
}

body {
  text-shadow: none !important;
  color: #333;
}

#header {
  background: #f8fcfd;
  padding-top: 20px;
  padding-bottom: 20px;
  height: 100%;
  width: 100%;
  justify-content: center;
  vertical-align: middle;
  text-align: center;
}

#title {
  color: #333;
  height: 100%;
  padding-top: 0%;
  padding-bottom: 2%;
}

#sottotitolo {
  opacity: 0;
  animation: fade-in 1s ease;
  animation-delay: 0.5s;
  animation-fill-mode: forwards;
  font-size: 1.5rem;
}

.brand-logo {
  margin-left: 5%;
  align-self: left;
  font-family: "Cabin", sans-serif;
  color: #333 !important;
  height: 100%;
}
@media screen and (max-width: 992px) {
  .brand-logo {
    left: 75% !important;
    transform: translateX(0%) !important;
  }
}

#logo-img {
  width: 60px;
  height: 60px;
  margin: auto;
}

.nav-wrapper {
  background-color: #f8fcfd;
}
.nav-wrapper .nav-bottoni {
  min-width: 100px !important;
  text-align: center;
  font-size: 1.2rem;
  color: #333;
}
.nav-wrapper .dropdown-content li {
  background-color: #f4c400;
}
.nav-wrapper .dropdown-content a {
  color: #333;
}
@media screen and (max-width: 992px) {
  .nav-wrapper {
    padding-bottom: 5rem;
  }
}
.nav-wrapper .sidenav-trigger i {
  color: #333;
  font-size: 30px !important;
  margin-top: 6px;
}

#titolo {
  animation: fade-in 1.5s ease;
  font-family: "Cabin", sans-serif;
  font-size: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media screen and (max-width: 800px) {
  #titolo {
    font-size: 5rem !important;
  }
}

.main-yellow-text {
  color: #f4c400;
}

.yellow-underline {
  border-bottom: 3px solid #f4c400;
}

.dark-underline {
  border-bottom: 3px solid #333;
}

.yellow-bg {
  background-color: #f4c400;
}

.black-bg {
  background-color: #333;
  color: #f8fcfd;
}

.black-font {
  color: #333;
}

.paragraph {
  max-width: 800px;
  text-align: justify;
  margin: auto;
  padding-top: 1rem;
  padding-bottom: 1rem;
  width: 80%;
}

.card {
  color: #333 !important;
  border-radius: 25px !important;
}
.card .card-content {
  border-radius: 25px !important;
  background-color: #f8fcfd;
  border: 2px solid #f4c400;
  transition: all 0.2s ease;
  text-shadow: none !important;
}
.card .card-content p {
  color: #333 !important;
}
.card .card-title {
  color: #333 !important;
  text-shadow: none !important;
}

[type=checkbox].filled-in:checked + span:not(.lever):before {
  border-bottom: 2px solid #333 !important;
  border-right: 2px solid #333 !important;
}

[type=checkbox].filled-in:checked + span:not(.lever):after {
  color: #333 !important;
  background-color: #f4c400 !important;
  border: 2px solid #333 !important;
}

[type=checkbox].filled-in:disabled:checked + span:not(.lever):before {
  border-bottom: 2px solid #949494 !important;
  border-right: 2px solid #949494 !important;
}

[type=checkbox].filled-in:disabled:checked + span:not(.lever):after {
  border: 2px solid #949494 !important;
}

[type=radio]:checked + span:after {
  background-color: #333 !important;
  border: none !important;
}

.fixed-btn {
  position: fixed;
  right: 23px;
  bottom: 23px;
  z-index: 1000 !important;
}

.btn-floating {
  background-color: #f4c400 !important;
  border-radius: 25px !important;
  color: #333 !important;
  width: 100% !important;
  font-weight: 500;
  font-size: 1.5rem !important;
}
.btn-floating span {
  padding: 0.5rem 1rem 0.5rem 1rem;
}

.tabella-costi {
  background: #333 !important;
  color: #f8fcfd;
}

.tabella-patrimonio {
  background: #f4c400 !important;
  color: #333;
}

.border-table table {
  border-top: 1px solid black !important;
}
.border-table table tfoot {
  border-bottom: 1px solid black !important;
}

.results-card {
  border-radius: 25px !important;
  font-size: 1.2rem;
  display: none;
}

.page-footer {
  background-color: #f4c400 !important;
}
.page-footer .footer-copyright {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly !important;
  row-gap: 1rem;
}
.page-footer .footer-copyright .kofitext {
  color: #333 !important;
}
.page-footer .footer-copyright div {
  color: #333 !important;
}
.page-footer .footer-copyright div a {
  color: #333 !important;
}

.input-field {
  background-color: rgba(244, 195, 0, 0.2745098039);
  border-radius: 10px;
  margin: 20px;
  box-shadow: 5px 0 0 10px 10px black;
}

.input-field label {
  color: darkslategray !important;
}

#cookie-law {
  display: flex;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 5%;
  background-color: #ccc;
  z-index: 999;
}

#cookie-law > div {
  padding: 0;
}

#cookie-law > div:first-child {
  padding-right: 40px;
}

#cookie-law > div:first-child > a {
  color: inherit;
}

#cookie-law > div:last-child {
  vertical-align: middle;
}

#cookie-law > div:last-child > a {
  padding: 10px 20px;
  background: rgb(100, 149, 237);
  border-radius: 5px;
  color: white;
  text-decoration: none;
}

.fade-in {
  animation: fade-in-bottom 1s ease;
  animation-delay: 0.5s;
  animation-fill-mode: forwards;
}

.hidden {
  opacity: 0;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-30%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fade-in-bottom {
  from {
    opacity: 0;
    transform: translateY(30%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#p-bottone {
  margin: auto;
}

#row-calcolo {
  margin: 5%;
}

#calcolo {
  border-radius: 10px;
  min-width: 130px;
}

#switch-risparmi {
  background-color: transparent !important;
  padding-bottom: 5px;
  vertical-align: middle;
}

.risultati {
  margin: 20px;
}

#anni-affitto-acquisto, #div-anni-affitto-acquisto {
  padding-left: 10px;
  width: 220px;
  min-width: 220px;
}

#div-anni-affitto-acquisto {
  min-width: 240px;
}

.divider {
  margin-bottom: 10px;
}

.left-margin {
  margin-left: 2%;
}

.user-hidden {
  opacity: 0% !important;
  display: none !important;
  visibility: hidden !important;
}

.results-card {
  border-radius: 25px !important;
  font-size: 1.2rem;
  display: none;
}

.round-border {
  border-radius: 10px;
  margin-bottom: 1em;
}

.button-container {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.btn-floating {
  border-radius: 25px !important;
  width: 130px !important;
  font-size: 1.3rem !important;
  font-weight: 600 !important;
}

.tabella-pac {
  background-color: #f4c400 !important;
  color: #333;
}

.readonly {
  background-color: rgba(240, 240, 240, 0.5) !important;
}

.come-funziona {
  cursor: pointer !important;
}

.come-funziona, #strategia {
  font-size: 1rem;
  margin-top: 2rem;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  height: auto;
}

p.lead {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 24px rgba(16, 24, 40, 0.06);
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}

.wizard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 800px;
  height: auto !important;
}

/* left: form */
.form-area {
  padding-right: 6px;
}

#kwp {
  display: none !important;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.question {
  margin-bottom: 14px;
}

.q-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.controls input[type=number], .controls select {
  padding: 8px 10px;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  min-width: 140px;
}

.controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: #f8fafc;
  color: #333 !important;
  font-family: "Cabin", sans-serif !important;
  font-size: 1rem !important;
}

.controls input[type=radio], .controls input[type=checkbox] {
  accent-color: #f4c400;
}

.select-wrapper span {
  color: #333 !important;
  font-family: "Cabin", sans-serif !important;
}

.controls input[type=radio] {
  position: relative !important;
  opacity: 100;
}

.select-wrapper {
  width: 100%;
  max-width: 250px;
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pager .steps {
  font-size: 13px;
  color: var(--muted);
}

.buttons {
  display: flex;
  gap: 8px;
}

button {
  background: var(--accent);
  color: white;
  border: 0;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}

button.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(14, 165, 164, 0.12);
}

/* right: summary */
.progress {
  height: 8px;
  background: #e6eef0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #333, #b8b9b9);
  width: 0%;
}

.result {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(16, 24, 40, 0.04);
}

.result h3 {
  margin: 0;
}

.big {
  font-size: 20px;
  font-weight: 700;
  color: #0b7285;
}

@media (max-width: 900px) {
  .wizard {
    grid-template-columns: 1fr;
  }
  .form-area {
    order: 1;
  }
}
/* --- Invested savings (Chart.js) --- */
#invested-savings {
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 10px;
  padding: 12px;
}

.is-summary {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

#invested-savings {
  max-width: 800px; /* Limite massimo */
  margin: 14px auto; /* Centra la sezione */
}

#wealthChart {
  width: 100%; /* Occupa tutta la larghezza del contenitore */
  height: auto; /* Mantiene proporzioni */
}

.chart-wrapper {
  max-width: 800px;
  aspect-ratio: 16/9; /* Mantiene proporzioni  aspect-ratio: 16 / 9; /* Mantiene proporzioni */
}

/* =========================================
   TEMA "Sossoldi-like" con primario GIALLO
   Palette: giallo vivo su sfondo chiaro, grigi neutri
   ========================================= */
:root {
  --ss-primary: #f59e0b; /* giallo (≈ amber-500) */
  --ss-primary-600: #d97706; /* giallo scuro per hover/bordi */
  --ss-primary-200: #fde68a; /* giallo chiaro per slider/riempimenti */
  --ss-ink: #0f172a; /* testo principale */
  --ss-muted: #64748b; /* testo secondario */
  --ss-border: #e5e7eb; /* bordi chiari */
  --ss-bg: #f8fafc; /* sfondo pagina */
  --ss-card: #ffffff; /* sfondo card */
  --ss-focus: #fde68a; /* outline focus morbido */
}

/* Card & Aside */
.card {
  background: var(--ss-card);
  border: 1px solid var(--ss-border);
  box-shadow: 0 4px 18px rgba(2, 6, 23, 0.04);
  border-radius: 12px;
}

/* Progress bar in giallo */
.progress {
  background: #fff7ed;
}

.progress > i {
  background: linear-gradient(90deg, #f4c400, #f4c400);
}

/* Controlli form */
.controls input[type=number],
.controls select {
  border: 1px solid var(--ss-border);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.controls input[type=number]:focus,
.controls select:focus {
  outline: none;
  border-color: var(--ss-primary-600);
  box-shadow: 0 0 0 3px var(--ss-focus);
}

.controls label {
  background: #f1f5f9;
  border: 1px solid transparent;
}

.controls input[type=radio],
.controls input[type=checkbox] {
  accent-color: #f4c400;
}

/* Pulsanti */
button {
  background: #f4c400;
  color: #333;
  border-radius: 10px;
  transition: transform 0.06s ease, box-shadow 0.2s ease, background-color 0.15s ease;
}

button:hover {
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.28);
}

button:active {
  transform: translateY(1px);
}

button.ghost {
  background: transparent;
  color: #333;
}

button.ghost:hover {
  background: #fff7ed;
}

/* Risultati */
.big {
  color: var(--ss-primary-600);
}

/* Sezione Invested Savings */
#invested-savings {
  background: var(--ss-card);
  border: 1px solid var(--ss-border);
  border-radius: 12px;
  padding: 14px;
  max-width: 800px;
  margin: 14px auto;
}

#invested-savings h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
}

.yield-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

/* Slider giallo */
#yieldSlider2 {
  min-width: 75px;
  height: 6px;
  border-radius: 999px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: linear-gradient(90deg, var(--ss-primary-200), #e2e8f0);
  outline: none;
}

#yieldSlider2::-webkit-slider-thumb {
  -webkit-appearance: none;
          appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ss-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--ss-primary);
  cursor: pointer;
}

#yieldSlider2::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ss-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--ss-primary);
  cursor: pointer;
}

/* Sommario investimenti */
.is-summary {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  color: var(--ss-ink);
}

.is-summary > div:last-child {
  color: var(--ss-muted);
}

/* Limite larghezza grafico */
#wealthChart {
  width: 100%;
  height: auto;
}

/* Mobile */
@media (max-width: 900px) {
  .wizard {
    grid-template-columns: 1fr;
  }
  #invested-savings {
    margin: 16px 0 0;
  }
}
#prevBtn:focus {
  background: transparent !important;
}

#nextBtn:focus {
  background: #f4c400 !important;
}

.intro {
  max-width: 800px;
  margin: auto;
}

.controls input[type=checkbox] {
  position: relative !important;
  opacity: 100;
}

.cta-container {
  background: linear-gradient(135deg, #f9f9f9 0%, #eef2f3 100%);
  border-radius: 16px;
  padding: 25px;
  max-width: 550px;
  margin: 20px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cta-title {
  color: #333;
  font-size: 1.5rem;
  margin-top: 0;
}

.cta-title span {
  color: #28a745; /* Verde per il risparmio */
  font-weight: bold;
}

.cta-description {
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Box con la Gift Card */
.promo-box {
  background: #fff;
  border: 1px dashed #ff9900; /* Arancione Amazon */
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 15px;
  margin-bottom: 25px;
}

.gift-card-wrapper {
  flex: 0 0 80px;
  margin-right: 15px;
}

.gift-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.promo-text {
  font-size: 0.95rem;
  color: #333;
}

.promo-text span {
  color: #ff9900;
  font-weight: bold;
}

/* Bottone */
.cta-button {
  display: block;
  background-color: #ff9900;
  color: white;
  text-align: center;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #e78b00;
}

.cta-footer {
  font-size: 0.75rem;
  color: #888;
  margin-top: 15px;
  text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
  .promo-box {
    flex-direction: column;
    text-align: center;
  }
  .gift-card-wrapper {
    margin-right: 0;
    margin-bottom: 10px;
    width: 60px;
  }
}
#results h3 {
  color: #d97706;
}

/* Container delle card */
.results-grid {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

/* Stile della singola Card */
.utility-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 20px;
  flex: 1;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Ombra leggera e moderna */
  transition: transform 0.2s ease;
}

/* Effetto hover opzionale per feedback */
.utility-card:hover {
  transform: translateY(-2px);
}

/* Etichetta (Luce/Gas) */
.utility-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* Valore principale (kWh/Smc) */
.big {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

/* Valore costo (€) */
.cost-value {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Icone negli angoli */
.card-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  opacity: 0.6; /* Effetto watermark discreto */
}

.icon-bolt {
  color: #f1c40f;
} /* Giallo per la luce */
.icon-flame {
  color: #e67e22;
} /* Arancio per il gas */
/* Responsive per mobile */
@media (max-width: 480px) {
  .results-grid {
    flex-direction: column;
  }
}
/* Card Risparmio Specifica */
.savings-card {
  border: 2px solid #28a745; /* Verde deciso ma pulito */
  background: #f0fff4; /* Sfondo leggerissimo verde */
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.12);
}

.icon-savings {
  color: #28a745;
  opacity: 0.6 !important;
}

/* Il Badge */
.badge-custom {
  position: absolute;
  top: -10px;
  left: 15px;
  background: #28a745;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: none;
}

#resRisparmio {
  display: inline-block;
}

/* Card neutre per i costi attuali */
.utility-card:not(.savings-card) {
  border-top: 4px solid #ccc; /* Un colore neutro o grigio blu */
  background: #fdfdfd;
}

/* Rimuovi il badge dalle prime due e usalo solo per evidenziare il risparmio */
.utility-card:not(.savings-card) .badge-custom {
  background: #e67e22; /* Arancione per indicare "attenzione" */
  display: block;
}

.utility-card.alert {
  border-top: 4px solid #e67e22;
}

.badge-savings {
  position: absolute;
  top: -10px;
  left: 15px;
  background: #28a745;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: block;
}

.utility-savings {
  font-size: 0.95rem;
  color: #28a745;
  font-weight: normal;
}

/* Container per l'icona info */
.tooltip-container {
  position: relative;
  display: inline-block;
  cursor: help;
}

/* L'iconcina tonda */
.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  background-color: #28a745;
  color: white;
  font-size: 10px;
  font-weight: bold;
  border-radius: 50%;
  opacity: 0.7;
}

/* Il testo del tooltip (nascosto di base) */
.tooltip-text {
  visibility: hidden;
  width: 220px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 10;
  bottom: 125%; /* Appare sopra l'icona */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.75rem;
  font-weight: normal;
  line-height: 1.4;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  pointer-events: none; /* Evita che il tooltip disturbi il mouse */
  text-transform: none;
}

/* Triangolino sotto il tooltip */
.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

/* Mostra il tooltip al passaggio del mouse */
.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}/*# sourceMappingURL=bollette.css.map */