/* Per le aziende (kit aziende-8-10, CEO 8/10/2026). Solo sulla pagina /per-le-aziende/.
   Gettoni del sito (linguaggio/02_STILE.md): spazi 4-8-12-16-24-32-48, raggi 12-16-22-24,
   caratteri via var(--tbp-font) e var(--tbp-font-titoli). Niente bordi di accento, niente ombre. */

html body .tbp-az {
  --az-titolo: #084828;
  --az-testo: #123326;
  --az-nota: #35503F;
  --az-scheda: #F7F4ED;
  --az-sezione: #F4F7F5;
  --az-campo: #F1F4F2;
  --az-campo-testo: #123326;
  --az-linea: rgba(8, 72, 40, .14);
  --az-link: #084828;
  --az-tondo: #E4F1E8;
  --az-tondo-testo: #145E3F;
  --az-ok: #E4F1E8;
  --az-ok-testo: #145E3F;
  --az-err: #FBE3E1;
  --az-err-testo: #A3141A;
  --az-err-segno: #D0161A;
  --az-fuoco: #084828;
  box-sizing: border-box;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  color: var(--az-testo);
  font-family: var(--tbp-font, sans-serif);
  font-size: 1rem;
  line-height: 1.5;
}
html[data-tbp-theme="tobepolo"] body .tbp-az {
  --az-testo: #10261B;
  --az-scheda: #FFFFFF;
  --az-sezione: #FFFFFF;
  --az-campo: #FFFFFF;
  --az-nota: #35503F;
}
html[data-tbp-theme="dark"] body .tbp-az {
  --az-titolo: #EDEDED;
  --az-testo: #EDEDED;
  --az-nota: #B5B5B5;
  --az-scheda: #1E1E1E;
  --az-sezione: #1E1E1E;
  --az-campo: #262626;
  --az-campo-testo: #EDEDED;
  --az-linea: #333333;
  --az-link: #9BDBB5;
  --az-tondo: #1E3A2B;
  --az-tondo-testo: #9BDBB5;
  --az-ok: #1E3A2B;
  --az-ok-testo: #C8EBD5;
  --az-err: #3A1A1A;
  --az-err-testo: #FFB4AE;
  --az-err-segno: #FF8A80;
  --az-fuoco: #9BDBB5;
}
html body .tbp-az *,
html body .tbp-az *::before,
html body .tbp-az *::after { box-sizing: border-box; }

html body .tbp-az :is(h1, h2, h3) {
  margin: 0;
  color: var(--az-titolo);
  font-family: var(--tbp-font-titoli, var(--tbp-font, sans-serif));
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-transform: none;
}
/* Il foglio del rebrand ingrandisce ogni h1 al telefono con !important (fino a 3,25 rem): qui la scala della pagina. */
html body .tbp-az h1 { font-size: 2.5rem !important; line-height: 1.05 !important; font-weight: 800; letter-spacing: -0.02em; }
html body .tbp-az h2 { font-size: 1.5rem !important; line-height: 1.2 !important; margin-bottom: 16px; }
html body .tbp-az h3 { font-size: 1rem; }
html body .tbp-az p { margin: 0; color: var(--az-testo); }
html body .tbp-az :is(#proposte, #come-funziona, #richiesta) { scroll-margin-top: 96px; }

/* Link nel testo e fuoco da tastiera */
html body .tbp-az a:not(.tbp-btn) { color: var(--az-link); text-decoration: underline; text-underline-offset: 3px; }
html body .tbp-az :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--az-fuoco);
  outline-offset: 3px;
}

/* ---------- Apertura ---------- */
html body .tbp-az__apertura { display: grid; gap: 24px; align-items: center; }
html body .tbp-az .tbp-az__occhiello {
  margin: 0 0 8px;
  color: var(--az-nota);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
html body .tbp-az .tbp-az__lead { margin-top: 16px; max-width: 30em; font-size: 1.125rem; line-height: 1.5; }
html body .tbp-az__azioni {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 24px;
}
html body .tbp-az .tbp-az__cta,
html body .tbp-az .tbp-az__invia {
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 16px;
  font-family: var(--tbp-font, sans-serif);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
}
html body .tbp-az__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}
/* Tre icone Lava al posto della foto (CEO 8/10): ferme, intere, sovrapposte appena. */
html body .tbp-az__composizione {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  padding: 24px 16px 16px;
  border-radius: 24px;
  background: var(--az-scheda);
}
html body .tbp-az .tbp-az__comp { display: block; --tbp-icon: 96px; width: 96px; height: 96px; object-fit: contain; }
html body .tbp-az .tbp-az__comp--a { margin-right: -8px; transform: translateY(-8px); }
html body .tbp-az .tbp-az__comp--b { position: relative; z-index: 1; --tbp-icon: 128px; width: 128px; height: 128px; }
html body .tbp-az .tbp-az__comp--c { margin-left: -8px; transform: translateY(-8px); }

/* ---------- Sezioni ---------- */
html body .tbp-az__sezione { margin-top: 48px; }
html body .tbp-az .tbp-az__nota { margin-top: 12px; color: var(--az-nota); font-size: .875rem; }

/* Le tre proposte: tre cose vere, quindi tre riquadri pieni (niente bordi) */
html body .tbp-az__offerte {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
html body .tbp-az__offerta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 24px;
  border-radius: 22px;
  background: var(--az-scheda);
}
html body .tbp-az__offerta h3 { font-size: 1.25rem; }
html body .tbp-az .tbp-az__icona { display: block; --tbp-icon: 56px; width: 56px; height: 56px; object-fit: contain; margin-bottom: 4px; }
html body .tbp-az__prezzo {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-top: auto !important;
  padding-top: 8px;
}
html body .tbp-az__prezzo strong {
  color: var(--az-titolo);
  font-family: var(--tbp-font-titoli, var(--tbp-font, sans-serif));
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
html body .tbp-az__prezzo span { color: var(--az-nota); font-size: .875rem; }

/* Come funziona */
html body .tbp-az__passi {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
html body .tbp-az__passi li { display: flex; gap: 16px; align-items: flex-start; margin: 0; }
html body .tbp-az .tbp-az__passi h3 { font-size: 1rem; margin-bottom: 4px; }
html body .tbp-az__numero {
  display: inline-flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--az-tondo);
  color: var(--az-tondo-testo);
  font-family: var(--tbp-font-titoli, var(--tbp-font, sans-serif));
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Ci pensiamo noi */
html body .tbp-az__noi {
  margin-top: 48px;
  padding: 24px 16px;
  border-radius: 24px;
  background: var(--az-sezione);
}
html body .tbp-az .tbp-az__noi-intro { margin-bottom: 24px; max-width: 40em; }
html body .tbp-az__noi-lista { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
html body .tbp-az__noi-lista li { display: flex; gap: 16px; align-items: flex-start; margin: 0; }
html body .tbp-az .tbp-az__noi-lista .tbp-az__icona { flex: 0 0 48px; --tbp-icon: 48px; width: 48px; height: 48px; margin: 0; }
html body .tbp-az .tbp-az__noi-lista h3 { margin-bottom: 4px; }

/* Domande */
html body .tbp-az__faq { border-top: 1px solid var(--az-linea); }
html body .tbp-az__faq details { border-bottom: 1px solid var(--az-linea); }
html body .tbp-az__faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 40px 12px 0;
  color: var(--az-titolo);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
html body .tbp-az__faq summary::-webkit-details-marker { display: none; }
html body .tbp-az__faq summary::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--tbp-moto-breve, 160ms) var(--tbp-moto-curva, ease);
}
html body .tbp-az__faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
html body .tbp-az .tbp-az__faq details p { padding: 0 40px 16px 0; }

/* ---------- Modulo ---------- */
html body .tbp-az .tbp-az__intro { margin-bottom: 24px; max-width: 40em; }
/* Il foglio generale centra ogni form a 550 px e dà ai campi fondo bianco e bordo (!important):
   qui il modulo segue la regola dei campi del sito (#F1F4F2, senza bordo, anello al fuoco). */
html body .tbp-az form.tbp-az__modulo { max-width: none !important; margin: 0 !important; }
html body .tbp-az__griglia { display: grid; gap: 16px; }
html body .tbp-az__campo { display: flex; flex-direction: column; gap: 4px; margin: 0; }
html body .tbp-az__campo--note { margin-top: 16px; }
html body .tbp-az label,
html body .tbp-az legend {
  margin: 0;
  padding: 0;
  color: var(--az-titolo);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
}
html body .tbp-az__facoltativo { color: var(--az-nota); font-weight: 400; }
html body .tbp-az form.tbp-az__modulo:not(#tbp-az-nessuno) .tbp-az__campo :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
  width: 100% !important;
  max-width: none !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background-color: var(--az-campo) !important;
  color: var(--az-campo-testo) !important;
  -webkit-text-fill-color: var(--az-campo-testo) !important;
  font-family: var(--tbp-font, sans-serif) !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
}
html[data-tbp-theme="tobepolo"] body .tbp-az form.tbp-az__modulo:not(#tbp-az-nessuno) .tbp-az__campo :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
  box-shadow: inset 0 0 0 1px var(--az-linea) !important;
}
html body .tbp-az form.tbp-az__modulo:not(#tbp-az-nessuno) .tbp-az__campo select {
  padding-right: 40px !important;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%) !important;
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52% !important;
  background-size: 6px 6px, 6px 6px !important;
  background-repeat: no-repeat !important;
}
html body .tbp-az form.tbp-az__modulo:not(#tbp-az-nessuno) .tbp-az__campo textarea { min-height: 120px !important; resize: vertical; }
html body .tbp-az form.tbp-az__modulo:not(#tbp-az-nessuno) .tbp-az__campo :is(input, select, textarea):focus { outline: none !important; box-shadow: inset 0 0 0 2px var(--az-fuoco) !important; }
html body .tbp-az form.tbp-az__modulo:not(#tbp-az-nessuno) .tbp-az__campo.is-errore :is(input, select, textarea) { box-shadow: inset 0 0 0 2px var(--az-err-segno) !important; }
html body .tbp-az .tbp-az__aiuto { color: var(--az-nota); font-size: .875rem; line-height: 1.4; }
html body .tbp-az .tbp-az__errore { color: var(--az-err-testo); font-size: .875rem; font-weight: 700; line-height: 1.4; }

html body .tbp-az__interesse {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
html body .tbp-az .tbp-az__interesse legend { width: 100%; margin-bottom: 4px !important; padding: 0 !important; border: 0 !important; }
html body .tbp-az .tbp-az__scelta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 16px 8px 12px;
  border-radius: 12px;
  background: var(--az-campo);
  color: var(--az-campo-testo);
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
}
html[data-tbp-theme="tobepolo"] body .tbp-az .tbp-az__scelta { box-shadow: inset 0 0 0 1px var(--az-linea); }
/* La casella: il tema spegne il disegno nativo (tbp-ui-cleanup.css, «una spunta sola»); qui la nostra. */
html body .tbp-az .tbp-az__scelta input[type="checkbox"] {
  flex: 0 0 22px;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  border: 2px solid var(--az-titolo) !important;
  border-radius: 6px !important;
  background: transparent no-repeat center / 14px 14px !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  cursor: pointer;
}
html body .tbp-az .tbp-az__scelta input[type="checkbox"]:checked {
  border-color: #084828 !important;
  background-color: #084828 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
html[data-tbp-theme="dark"] body .tbp-az .tbp-az__scelta input[type="checkbox"]:checked { border-color: #9BDBB5 !important; background-color: #9BDBB5 !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%230F0F0F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important; }
html body .tbp-az__scelta:has(input:focus-visible) { outline: 3px solid var(--az-fuoco); outline-offset: 3px; }

html body .tbp-az .tbp-az__invia { width: 100%; margin-top: 24px; }
html body .tbp-az .tbp-az__invia[aria-busy="true"] { pointer-events: none; }
html body .tbp-az__privacy { margin-top: 12px !important; color: var(--az-nota) !important; font-size: .875rem; }

html body .tbp-az__esito { margin: 0 0 24px; padding: 16px; border-radius: 16px; }
html body .tbp-az__esito:focus { outline: none; }
html body .tbp-az__esito--ok { background: var(--az-ok); }
html body .tbp-az__esito--ok :is(h3, p) { color: var(--az-ok-testo); }
html body .tbp-az .tbp-az__esito--ok h3 { margin-bottom: 4px; font-size: 1.25rem; }
html body .tbp-az__esito--errore { background: var(--az-err); }
html body .tbp-az__esito--errore p { color: var(--az-err-testo); font-weight: 700; }

/* ---------- Computer ---------- */
@media (min-width: 850px) {
  html body .tbp-az { padding: 48px 32px 48px; }
  html body .tbp-az__apertura { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; }
  html body .tbp-az h1 { font-size: 3.5rem !important; }
  html body .tbp-az__sezione,
  html body .tbp-az__noi { margin-top: 48px; }
  html body .tbp-az__offerte { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  html body .tbp-az__passi { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  html body .tbp-az__noi { padding: 32px; }
  html body .tbp-az__noi-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  html body .tbp-az__composizione { padding: 48px 32px 40px; }
  html body .tbp-az .tbp-az__comp { --tbp-icon: 150px; width: 150px; height: 150px; }
  html body .tbp-az .tbp-az__comp--b { --tbp-icon: 200px; width: 200px; height: 200px; }
  html body .tbp-az .tbp-az__comp--a { margin-right: -16px; transform: translateY(-16px); }
  html body .tbp-az .tbp-az__comp--c { margin-left: -16px; transform: translateY(-16px); }
  html body .tbp-az__faq,
  html body .tbp-az__richiesta { max-width: 760px; }
  html body .tbp-az__griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
  html body .tbp-az .tbp-az__invia { width: auto; min-width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  html body .tbp-az__faq summary::after { transition: none; }
}

/* =====================================================================================================
 * Computer (kit desktop-pagine-8-10, CEO 8/10: «non mi sembrano ottimizzate per PC»).
 * Da 1100 px: contenuti larghi come /cerca/ (1160 px); domande e modulo non più in una colonna di 760 px
 * a sinistra con un terzo di pagina vuoto, ma titolo a sinistra e contenuto a destra (1/3 e 2/3);
 * più aria fra le sezioni; testi lunghi tenuti sotto i 70 caratteri.
 * ===================================================================================================== */
@media (hover: hover) and (pointer: fine) {
  html body .tbp-az__faq summary { transition: color var(--tbp-moto-breve, 160ms) var(--tbp-moto-curva, ease); }
  html body .tbp-az__faq summary:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
  html body .tbp-az__link:hover { text-decoration-thickness: 2px; }
}
@media (min-width: 1100px) {
  html body .tbp-az { max-width: 1224px; padding: 56px 32px 96px; }
  html body .tbp-az__apertura { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; }
  html body .tbp-az h1 { font-size: 4rem !important; }
  html body .tbp-az .tbp-az__lead { font-size: 1.25rem; max-width: 32em; }
  html body .tbp-az__sezione,
  html body .tbp-az__noi { margin-top: 80px; }
  html body .tbp-az h2 { font-size: 1.75rem !important; margin-bottom: 24px; }
  html body .tbp-az__offerte { gap: 24px; }
  html body .tbp-az__offerta { padding: 32px; }
  html body .tbp-az__noi { padding: 48px; }
  html body .tbp-az__noi-lista { gap: 40px 48px; }
  html body .tbp-az__noi-lista p,
  html body .tbp-az__passi p { max-width: 34em; }

  /* Domande e modulo: titolo a sinistra, contenuto a destra. */
  html body .tbp-az__sezione:has(> .tbp-az__faq),
  html body .tbp-az__richiesta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: 64px;
    align-items: start;
    max-width: none;
  }
  html body .tbp-az__sezione:has(> .tbp-az__faq) > h2 { grid-column: 1; }
  html body .tbp-az__sezione:has(> .tbp-az__faq) > .tbp-az__faq { grid-column: 2; grid-row: 1; max-width: none; }
  html body .tbp-az .tbp-az__faq details p { max-width: 62ch; }
  html body .tbp-az__richiesta > h2 { grid-column: 1; grid-row: 1; }
  html body .tbp-az__richiesta > .tbp-az__intro { grid-column: 1; grid-row: 2; margin-bottom: 0; }
  html body .tbp-az__richiesta > :not(h2):not(.tbp-az__intro) { grid-column: 2; grid-row: 1 / span 3; }
  html body .tbp-az__richiesta > .tbp-az__esito--errore { grid-row: 1; }
  html body .tbp-az__richiesta > .tbp-az__esito--errore ~ form { grid-row: 2 / span 2; }
  html body .tbp-az__griglia { gap: 20px 24px; }
}
