/* smart ways - the box pages (box/): only what site.css does not have.
   The variant of the price is shown by the script in the head of the page:
   the [data-se-prezzo] of the other prices hidden by a stylesheet it builds
   (no element added to the page: the text editor counts them as in the file). */

/* the colour of each product, from its logo's symbol */
html[data-box="otpbox"] { --prodotto: #c1ffa6; }
html[data-box="enerbox"] { --prodotto: #fff26b; }

/* the product's menu, not the site's: the smart ways logo, the sections,
   smartways.it, the button, also on the phone */
.nav-box .voce-sito { color: var(--testo-scuro); }
.nav-box .voce-sito svg { width: 11px; height: 11px; }
@media (max-width: 760px) {
  .nav-box .wrap { gap: 14px; }
  .nav.nav-box .bottone { display: inline-flex; min-height: 34px; padding: 0 11px; font-size: 13px; }
}

/* the header: the product's logo (white, for the dark header) and a tag, the product is new */
.testata .logo-prodotto { display: block; width: clamp(220px, 26vw, 340px); height: auto; margin-top: 8px; }
.testata .novita { display: inline-block; margin-top: 8px; padding: 6px 10px; border: 1px solid var(--prodotto, var(--accento)); font-family: var(--titles-upper); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--prodotto, var(--accento)); }
.testata .logo-prodotto + .novita { margin-top: 30px; }
.testata .novita + .titolo-1 { margin-top: 22px; }

/* the box on the right of the header (box/_tools/mockup.py), as the scenes of
   Telelettura and Portali: under the text below 1080 px */
.box-mockup { width: 100%; max-width: 580px; aspect-ratio: 640 / 460; }
.box-mockup svg { display: block; width: 100%; height: auto; overflow: visible; }
@media (min-width: 1081px) { .testata.has-scene .box-mockup { justify-self: end; } }
@media (max-width: 1080px) { .box-mockup { margin: 44px auto 0; } }
@media (max-width: 760px) { .box-mockup { max-width: 360px; margin-top: 36px; } }

/* the price, big, on dark */
.cifra { margin-top: 26px; font-family: var(--titoli); font-size: clamp(48px, 6vw, 84px); line-height: 1; color: #fff; }
.cifra small { font-family: var(--titles-upper); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--testo-scuro); }
.cifra-nota { margin-top: 16px; font-size: 17px; }
.testo-scuro { font-size: 17px; line-height: 1.65; }
/* the options of the price (licence, OTPbox module): apart, dashed, marked
   optional, softer than the price, so they do not read as costs due */
.opzioni { margin-top: 26px; padding: 8px 22px; border: 1px dashed rgba(255, 255, 255, .35); }
.opzioni-lista { margin: 0; }
.opzioni-lista div { padding: 12px 0; }
.opzioni-lista div + div { border-top: 1px solid var(--riga-scura); }
.opzioni-lista dt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--titles-upper); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.tag-opz { padding: 2px 7px; border: 1px solid #fff26b; font-size: 11px; letter-spacing: .08em; color: #fff26b; }
.opzioni-lista dd { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .6); }
.opzioni + .collegamenti { margin-top: 30px; }
.scuro .sheet { border-top-color: rgba(255, 255, 255, .5); }
.scuro .sheet div { border-bottom-color: var(--riga-scura); }
.scuro .sheet dt { color: #fff; }
.scuro .sheet dd { color: var(--testo-scuro); }
.scuro .sheet + .collegamenti { margin-top: 30px; }

/* the problems: today and with the box */
@media (min-width: 761px) { .problemi td { width: 50%; vertical-align: top; } }
.problemi td:first-child { color: var(--inchiostro); }

/* the comparison with a cloud solution: the name of the row, enerbox, the cloud */
.confronto td:nth-child(2) { color: var(--inchiostro); }
@media (min-width: 761px) {
  .confronto th:first-child, .confronto td:first-child { width: 16%; }
  .confronto th:nth-child(2), .confronto td:nth-child(2) { width: 46%; }
}
/* on the phone one row under the other: whose line it is */
@media (max-width: 760px) {
  .confronto td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--inchiostro); }
}

/* what happens after the form */
.steps.dopo { margin-top: 0; }

/* the form: a note, groups of choices, a single checkbox */
.modulo-sotto { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--riga); font-size: 14px; color: var(--grigio); }
.scelte { margin: 0; padding: 0; border: 0; min-width: 0; }
.scelte legend { margin-bottom: 10px; padding: 0; font-family: var(--titles-upper); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--grigio); }
.scelte label { display: inline-flex; align-items: center; gap: 8px; margin: 0 22px 10px 0; font-size: 15px; color: var(--inchiostro); cursor: pointer; }
.scelte input, .scelta-sola input { accent-color: var(--inchiostro); }
.scelta-sola { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--inchiostro); cursor: pointer; }

/* --- movement (2026-10-30) ------------------------------------------------
   the scene of the header (box/_tools/mockup.py), the blocks coming in when
   they reach the screen (box.js: .rv, then .in), the modules' small
   animations, running from then. Nothing moves for whoever asks for less
   motion */
.scena text { font-family: var(--titoli); }
.scena .t { font-size: 14px; fill: #fff; }
.scena .t-s { font-size: 11.5px; fill: rgba(255, 255, 255, .62); }
.scena .t-k { font-family: var(--titles-upper); font-size: 10.5px; letter-spacing: .1em; fill: rgba(255, 255, 255, .62); }
.scena .t-otp { font-size: 12px; fill: #c1ffa6; }
.scena .t-sms { font-size: 13px; letter-spacing: .04em; fill: #fff; }
@media (max-width: 760px) { .scena .t-s { display: none; } }

.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease var(--d, 0s), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* the problems: today struck through as its row comes in */
.problemi td:first-child b { background: linear-gradient(currentColor, currentColor) no-repeat 0 58% / 0 1.5px; transition: background-size .6s ease calc(var(--d, 0s) + .45s); }
.problemi tr.in td:first-child b { background-size: 100% 1.5px; }

/* the comparison: the enerbox column marked */
@media (min-width: 761px) {
  .confronto th:nth-child(2), .confronto td:nth-child(2) { box-shadow: inset 3px 0 0 #e0c200; padding-left: 18px; }
}

/* what it includes: the modules, each with its small animation */
.moduli { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mod { display: flex; flex-direction: column; padding-bottom: 26px; background: #fff; border: 1px solid var(--riga); }
.mod.rv { transition: opacity .7s ease var(--d, 0s), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), border-color .25s, box-shadow .25s; }
.mod:hover { border-color: var(--inchiostro); box-shadow: 0 26px 44px -32px rgba(15, 35, 80, .5); }
.mod-largo { grid-column: span 2; }
.mod-vis { position: relative; height: 116px; margin-bottom: 22px; background: #f3f6fa; border-bottom: 1px solid var(--riga); overflow: hidden; }
.mod h3 { padding: 0 26px; font-family: var(--titles-upper); font-size: 17px; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; color: var(--inchiostro); }
.mod > p, .mod dl { margin: 10px 0 0; padding: 0 26px; color: var(--grigio); font-size: 15.5px; line-height: 1.55; }
.mod dl div + div { margin-top: 6px; }
.mod dt { display: inline; font-weight: 600; color: var(--inchiostro); }
.mod dt::after { content: ": "; }
.mod dd { display: inline; margin: 0; }
@media (max-width: 1080px) { .moduli { grid-template-columns: 1fr 1fr; } .mod-largo { grid-column: 1 / -1; } }
@media (max-width: 760px) { .moduli { grid-template-columns: 1fr; } }

.mod-vis *, .mod-vis *::before, .mod-vis *::after { animation-play-state: paused; }
.mod.in .mod-vis *, .mod.in .mod-vis *::before, .mod.in .mod-vis *::after { animation-play-state: running; }

.vis-portali { display: grid; align-content: center; gap: 12px; padding: 0 26px; }
.vis-portali p { display: grid; grid-template-columns: 130px minmax(0, 1fr) 14px; align-items: center; gap: 14px; margin: 0; font-family: var(--titoli); font-size: 13.5px; color: var(--inchiostro); }
.vis-portali span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; background: var(--c); }
.vis-portali i { position: relative; height: 4px; overflow: hidden; background: #dde3ec; }
.vis-portali i::after { content: ""; position: absolute; inset: 0; background: var(--c); transform: scaleX(0); transform-origin: left; animation: box-carica 3.6s ease-in-out infinite calc(var(--i) * .45s); }
.vis-portali b { width: 6px; height: 11px; border: solid var(--c); border-width: 0 2px 2px 0; opacity: 0; animation: box-spunta 3.6s infinite calc(var(--i) * .45s); }
@keyframes box-carica { 0% { transform: scaleX(0); opacity: 1; } 55%, 88% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes box-spunta { 0%, 52% { opacity: 0; transform: rotate(45deg) scale(.3); } 62%, 88% { opacity: 1; transform: rotate(45deg) scale(1); } 100% { opacity: 0; transform: rotate(45deg); } }

.vis-otp { display: flex; align-items: center; justify-content: center; padding: 0 20px; }
.vis-otp p { margin: 0; padding: 8px 12px; background: #fff; border: 1px solid var(--riga); font-family: var(--titoli); }
.vis-otp small { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--grigio-2); }
.vis-otp b { font-size: 17px; font-weight: 500; letter-spacing: .05em; color: var(--inchiostro); }
.vis-otp .sms { border-color: #8fd16a; animation: box-arriva 4s infinite; }
.vis-otp i { position: relative; flex: 1; max-width: 64px; height: 1px; background: #c9d1dc; }
.vis-otp i::after { content: ""; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; background: #69db7c; opacity: 0; animation: box-corre 4s infinite; }
.vis-otp .mail { animation: box-riceve 4s infinite; }
@keyframes box-arriva { 0% { opacity: 0; transform: translateY(12px); } 12%, 86% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes box-corre { 0%, 24% { left: 0; opacity: 0; } 30% { opacity: 1; } 50% { left: calc(100% - 7px); opacity: 1; } 56%, 100% { left: calc(100% - 7px); opacity: 0; } }
@keyframes box-riceve { 0%, 50% { opacity: .35; } 56%, 86% { opacity: 1; border-color: #69db7c; } 100% { opacity: .35; } }

.vis-archivio { display: flex; align-items: center; justify-content: center; }
.vis-archivio span { position: absolute; width: 88px; height: 58px; padding: 8px 10px; background: #fff; border: 1px solid var(--riga); font-family: var(--titoli); font-size: 13px; color: var(--inchiostro); box-shadow: 0 10px 18px -14px rgba(15, 35, 80, .5); }
.vis-archivio span:nth-child(1) { transform: translate(-24px, 16px); color: var(--grigio-2); }
.vis-archivio span:nth-child(2) { transform: translate(-7px, 5px); color: var(--grigio-2); }
.vis-archivio span:nth-child(3) { transform: translate(10px, -6px); border-color: #e0c200; animation: box-versione 4.5s infinite; }
@keyframes box-versione { 0% { opacity: 0; transform: translate(10px, -44px); } 16%, 86% { opacity: 1; transform: translate(10px, -6px); } 100% { opacity: 0; transform: translate(10px, -6px); } }

.vis-avvisi { display: flex; align-items: center; justify-content: center; }
.vis-avvisi p { display: grid; grid-template-columns: 10px auto; column-gap: 12px; margin: 0; padding: 10px 16px; background: #fff; border: 1px solid var(--riga); box-shadow: 0 12px 22px -16px rgba(15, 35, 80, .5); animation: box-notifica 4.2s infinite; }
.vis-avvisi i { grid-row: span 2; align-self: center; width: 10px; height: 10px; background: #fa5252; animation: box-lampeggia 1s infinite; }
.vis-avvisi b { font-family: var(--titoli); font-size: 15px; font-weight: 500; color: var(--inchiostro); }
.vis-avvisi small { font-size: 12px; color: var(--grigio); }
@keyframes box-notifica { 0% { opacity: 0; transform: translateX(46px); } 14%, 86% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(-24px); } }
@keyframes box-lampeggia { 50% { opacity: .25; } }

.vis-account { display: grid; align-content: center; gap: 9px; padding: 0 26px; }
.vis-account p { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--titoli); font-size: 13.5px; color: var(--inchiostro); }
.vis-account i { width: 10px; height: 10px; background: #cfd6e0; animation: box-stato 3.6s infinite calc(var(--i) * .4s); }
.vis-account p.ko i { animation-name: box-stato-ko; }
@keyframes box-stato { 0%, 18% { background: #cfd6e0; } 28%, 100% { background: #40c057; } }
@keyframes box-stato-ko { 0%, 18% { background: #cfd6e0; } 28%, 100% { background: #fd7e14; } }

.vis-export { display: flex; align-items: center; justify-content: center; gap: 14px; }
.vis-export .celle { display: grid; grid-template-columns: repeat(6, 14px); gap: 4px; }
.vis-export .celle i { height: 10px; background: #dde3ec; animation: box-cella 4s infinite calc(var(--i) * .07s); }
.vis-export span { padding: 4px 8px; border: 1px solid var(--inchiostro); font-family: var(--titles-upper); font-size: 11.5px; letter-spacing: .08em; color: var(--inchiostro); opacity: 0; animation: box-tag 4s infinite; }
.vis-export span + span { animation-delay: .25s; }
@keyframes box-cella { 0%, 8% { background: #dde3ec; } 18%, 86% { background: #69db7c; } 100% { background: #dde3ec; } }
@keyframes box-tag { 0%, 52% { opacity: 0; transform: translateY(8px); } 62%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.mod-zero { flex-direction: row; align-items: center; gap: 30px; padding: 30px 26px; background: var(--scuro); border-color: var(--scuro); }
.mod-zero .zero { flex: none; font-family: var(--titoli); font-size: clamp(64px, 7vw, 104px); line-height: 1; color: #fff26b; }
.mod-zero h3, .mod-zero > div > p { padding: 0; }
.mod-zero h3 { color: #fff; }
.mod-zero > div > p { margin-top: 8px; color: var(--testo-scuro); font-size: 15.5px; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .mod-vis *, .mod-vis *::before, .mod-vis *::after { animation: none !important; opacity: 1 !important; }
}
