.grecaptcha-badge { visibility: hidden; }

/* DS [MOB] text styles: styleguide.css scales rem to 12px under 768px, so mobile sizes are set in px */
@media (max-width: 767.98px) {
    h1, .h1-regular, .h1-bold, .h1-extrabold { font-size: 38px; line-height: 44px; }
    .h1-big { font-size: 42px; line-height: 48px; }
    h2, .h2-regular, .h2-bold, .h2-extrabold { font-size: 32px; line-height: 38px; }
    h3, .h3-regular, .h3-bold, .h3-extrabold { font-size: 28px; line-height: 34px; }
    h4, .h4-regular, .h4-bold { font-size: 24px; line-height: 30px; }
    h5, .h5-regular, .h5-bold { font-size: 22px; line-height: 28px; }
    h6, .h6-regular, .h6-bold { font-size: 18px; line-height: 24px; }
    p, span, .text-regular { font-size: 16px; line-height: 22px; }
    .text-big { font-size: 18px; line-height: 26px; }
    .text-titoletto { font-size: 14px; line-height: 18px; }
    .text-small { font-size: 12px; line-height: 14px; }
}

/* Header */
#header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
}
#header-fixed .header-top-wrapper > div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
#header-fixed .header-bottom-wrapper > div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
#header-fixed .logo {
    width: auto;
    height: 40px;
}

/* Countdown */
.wrapper-countdown {
    display: flex;
    flex-direction: row;
    gap: 16px;
}
.wrapper-countdown .wrapper-num {
    background-color: var(--dim-black100);
    border: 1px solid var(--dim-navy100);
    width: 100px;
}
.wrapper-countdown.header-countdown {
    align-items: center;
}
.wrapper-countdown.header-countdown .wrapper-num {
    background-color: transparent;
    border: 0;
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    width: 70px;
}
#countdown-header {
    display: flex;
    gap: 16px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
@media(max-width: 767px){
    #countdown-header {
        gap: 4px;
    }
    #countdown-header .wrapper-countdown {
        gap: 4px;
    }
    #whyus-section .area-box > .row > .col-md-6:last-child {
      flex-direction: column-reverse;
      display: flex;
      gap: 16px;
    }
    #whyus-section .lista-icone .singolo-elemento-lista p {
        font-size: 16px;
        line-height: 22px;
    }

    #whyus-section .area-box > .row > .col-md-6 { width: 100%; }
}

/* Bottoni aggiuntivi */
.btn-gradient {
    background: linear-gradient(90deg, var(--dim-cele100), var(--dim-navy100)) border-box;
}
.btn-gradient:hover {
    background: var(--dim-white100);
    color: var(--dim-cele100);
}
.btn-icon-right::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 12px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(-45deg);
}

/* Text reveal-up: nascosti dal primo disegno (classe js-reveal sull'html, script inline in index.php),
   poi rivelati da js/customScript.js. Stessi elementi selezionati dal JS. */
.js-reveal main :is(h1, h2, h3, p, li):not(.is-revealed):not(.countdown *, .sp-slider *, .card-promo *, #splash-section .wrapper-bottom *, .dim-card-horizontal *),
.js-reveal :is(.card-promo, #splash-section .wrapper-bottom, .dim-card-horizontal):not(.is-revealed) {
    opacity: 0;
    transform: translateY(32px);
}
.reveal {
    transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}

/* Scie luminose decorative: ogni pseudo-elemento disegna 2 linee (layer di background),
   con riflesso che scorre in loop e leggera oscillazione */
#splash-section::before,
#splash-section::after,
#cta-finale-section::before,
#cta-finale-section::after {
    --streak: linear-gradient(90deg, rgba(27, 154, 214, 0), var(--dim-white100) 45%, var(--dim-cele100) 60%, rgba(27, 154, 214, 0));
    --streak-soft: linear-gradient(90deg, rgba(27, 154, 214, 0), rgba(255, 255, 255, .5) 45%, rgba(27, 154, 214, .5) 60%, rgba(27, 154, 214, 0));
    content: "";
    display: block;
    position: absolute;
    left: -2%;
    width: 105%;
    height: 40px;
    background: var(--streak) 0 0 / 200% 3px repeat-x, var(--streak-soft) 0 24px / 200% 1px repeat-x;
    filter: drop-shadow(0 0 6px var(--dim-cele100));
    opacity: .5;
    transform: rotate(var(--streak-rotate));
    animation: streak-shine 12s linear infinite, streak-float 7s ease-in-out infinite alternate;
    pointer-events: none;
}
#splash-section::after,
#cta-finale-section::after {
    background: var(--streak) 0 0 / 200% 2px repeat-x, var(--streak-soft) 0 24px / 200% 1px repeat-x;
    opacity: .3;
    animation-duration: 16s, 9s;
    animation-delay: -6s, -3s;
}
@keyframes streak-shine {
    from { background-position: 200% 0, 400% 24px; }
    to { background-position: 0 0, 0 24px; }
}
@keyframes streak-float {
    from { transform: rotate(var(--streak-rotate)) translateY(-10px); }
    to { transform: rotate(var(--streak-rotate)) translateY(10px); }
}
@media (prefers-reduced-motion: reduce) {
    #splash-section::before,
    #splash-section::after,
    #cta-finale-section::before,
    #cta-finale-section::after {
        animation: none;
    }
}

/* Sezione Splash */
#splash-section {
    position: relative;
    overflow: hidden;
    background-image: radial-gradient(circle at 92% 0, rgba(27, 154, 214, .35), transparent 30%), radial-gradient(ellipse at 0 45%, rgba(1, 99, 165, .35), transparent 25%);
}
#splash-section::before,
#splash-section::after {
    --streak-rotate: 12deg;
    top: 60%;
}
#splash-section::after {
    top: 70%;
}
#splash-section > .row {
    position: relative;
    z-index: 1;
}
#splash-section .splash-row {
    display: flex;
}
/* Bootstrap sets strong to 700: keep the hero title uniformly ExtraBold */
#splash-section .h1-big strong {
    font-weight: 800;
}
/* Titolo hero: H1 ExtraBold (64px) su desktop, 58px sui tablet per restare su due righe */
@media (min-width: 768px) {
    #splash-section .h1-big {
        font-size: 58px;
        line-height: 64px;
    }
    #splash-section .wrapper-top > p {
        max-width: 593px;
    }
}
@media (min-width: 1200px) {
    #splash-section .h1-big {
        font-size: 4rem;
        line-height: 4.375rem;
    }
}
#splash-section .wrapper-content-splash {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#splash-section .splash-countdown-row {
    display: flex;
    gap: 16px;
}
#splash-section .btn-countdown {
    flex-direction: column;
    min-width: 0;
    border-color: var(--dim-cele100);
    border-radius: 12px;
}

/* Card promo splash */
.card-promo {
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(27, 154, 214, .35);
    border-radius: 0 32px 0 32px;
    background: radial-gradient(circle at 90% -10%, rgba(27, 154, 214, .55), transparent 45%), linear-gradient(160deg, rgba(0, 31, 53, .9), rgba(0, 0, 0, .9));
}
.card-promo-heading {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}
.card-promo-tag {
    border-radius: 0 0 0 24px;
}
.card-promo-eyebrow {
    display: none;
}
.card-promo-content > .text-big em {
    font-style: normal;
}
.card-promo-value {
    display: block;
    margin-top: 12px;
    font-family: "Montserrat", Helvetica, sans-serif;
    font-size: 6.25rem;
    line-height: 4.5rem;
    font-weight: 800;
    text-transform: uppercase;
}
.card-promo-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    line-height: 1;
}
.card-promo-divider::before,
.card-promo-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--dim-grey10);
}

/* Bagliore blu che sale dal basso all'hover (o al focus da tastiera) su box offerta e countdown della CTA */
.card-promo,
#countdown-cta .wrapper-num {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.card-promo::after,
#countdown-cta .wrapper-num::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: -20%;
    bottom: -35%;
    width: 140%;
    height: 90%;
    background: radial-gradient(closest-side, rgba(27, 154, 214, .95), rgba(27, 154, 214, 0));
    filter: blur(20px);
    opacity: 0;
    transform: translateY(40%);
    transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
    pointer-events: none;
}
#countdown-cta .wrapper-num::after {
    bottom: -55%;
    height: 110%;
    filter: blur(8px);
    background: radial-gradient(closest-side, rgba(27, 154, 214, .6), rgba(27, 154, 214, 0));
}
/* Tutto il box offerta è cliccabile: l'area del link si estende alla card */
.card-promo {
    cursor: pointer;
}
.card-promo-link::before {
    content: "";
    position: absolute;
    inset: 0;
}
.card-promo:hover .card-promo-link {
    background: var(--dim-white100);
    color: var(--dim-cele100);
}
.card-promo:focus-within::after {
    opacity: 1;
    transform: none;
}
@media (hover: hover) {
    .card-promo:hover::after,
    #countdown-cta .wrapper-num:hover::after {
        opacity: 1;
        transform: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .card-promo::after,
    #countdown-cta .wrapper-num::after {
        transform: none;
        transition: opacity .2s ease;
    }
}

/* Sezione Offerta */
#offerta-section {
    background: linear-gradient(#000, #1B9AD6);
}


/* Titoli sopra la card: stessi margini laterali delle colonne Bootstrap */
.offerta-heading > * {
    padding-left: 15px;
    padding-right: 15px;
}

/* Componente Card Orizzontale */
.dim-card-horizontal {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: 0px 48px 0 48px;
}
.dim-card-horizontal .card-main-img {
    width: 33%;
    object-fit: cover;
    -o-object-fit: cover;
    object-position: center;
    -o-object-position: center;
    border-radius: 0px 24px 0 24px;
}
.dim-card-horizontal .card-content {
    width: 67%;
}
.dim-card-horizontal .card-content .card-body {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 16px;
}
.dim-card-horizontal .card-content .card-heading {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}
.dim-card-horizontal .card-content .card-body .card-subcard {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-radius: 12px 0 12px 0;
}
.dim-card-horizontal .card-content .card-body .card-subcard .card-subcard-body img {
    object-fit: contain;
    -o-object-fit: contain;
    object-position: center;
    -o-object-position: center;
    height: 150px;
    width: 100%;
}

/* Componente lista icone-benefit */
.lista-icone {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lista-icone .singolo-elemento-lista {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}
.lista-icone .singolo-elemento-lista img {
    width: 20px;
    height: 20px;
}
.lista-icone .singolo-elemento-lista p {
    color: var(--text-dim-black90);
}

/* Testo con gradiente primario (stile "Gradients/Primary" del design system) */
.text-gradient {
    background: linear-gradient(135deg, var(--dim-cele100), var(--dim-navy100));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Sezione SIM: traduzione di DimSimSection.vue + DimSimOfferCard.vue (layout "centered" sotto i 1024px).
   Valori in px: sotto i 768px l'html scala a 12px. */
#sim-section {
    padding: 40px 0;
}
#sim-section .sim-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
#sim-section .sim-only-desktop {
    display: none;
}
/* Il clearfix di Bootstrap (::before/::after) diventerebbe un elemento della colonna flex */
#sim-section .sim-container::before,
#sim-section .sim-container::after {
    display: none;
}
/* Lo styleguide forza Roboto su ogni span: qui gli span ereditano il font del titolo */
#sim-section .text-titoletto span,
#sim-section .sim-plan-giga span,
#sim-section .sim-plan-giga-mobile span,
#sim-section .sim-plan-saving .strike {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}
#sim-section .sim-grid {
    display: grid;
    align-items: start;
    gap: 16px;
}
#sim-section .sim-glow {
    position: absolute;
    top: -280px;
    left: -300px;
    width: 560px;
    height: 560px;
    max-width: none;
    pointer-events: none;
}
#sim-section .sim-check {
    flex-shrink: 0;
}

/* Box SIM */
#sim-section .sim-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#sim-section .sim-card-label {
    position: absolute;
    top: 32px;
    left: 24px;
    z-index: 2;
}
#sim-section .sim-card-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 259px;
    height: 315px;
    margin-bottom: -100px;
}
#sim-section .sim-card-img {
    width: 208px;
    height: 280px;
    max-width: none;
    object-fit: cover;
    rotate: 11.19deg;
}
#sim-section .sim-card-box {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--dim-cele100);
    border-radius: 0 24px 0 24px;
    background: var(--dim-white100);
}
#sim-section .sim-card-kicker {
    width: fit-content;
    font-family: "Montserrat", Helvetica, sans-serif;
    font-size: 24px;
    line-height: 28px;
    font-weight: 800;
}
#sim-section .sim-card-free {
    height: 59px;
    align-items: center;
    font-family: "Montserrat", Helvetica, sans-serif;
    font-size: 70px;
    line-height: 80px;
    font-weight: 800;
}
#sim-section .sim-card-free-mobile {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--dim-cele100);
}
#sim-section .sim-card-free-mobile span {
    font-size: 20px;
    line-height: 26px;
    font-weight: 700;
}
#sim-section .sim-benefits {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--dim-black80);
}
#sim-section .sim-benefits li {
    display: flex;
    align-items: center;
    gap: 4px;
}
#sim-section .sim-benefits span {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 4px;
    font-size: 16px;
    line-height: 22px;
}
#sim-section .sim-5g {
    width: 22px;
    height: 22px;
}
#sim-section .sim-card-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
#sim-section .sim-note {
    font-size: 12px;
    line-height: 14px;
    font-style: italic;
    color: var(--dim-black50);
}

/* Card piani */
#sim-section .sim-plans {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
#sim-section .sim-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    padding: 16px;
    border: 1px solid var(--dim-grey20);
    border-radius: 0 24px 0 24px;
    background: var(--dim-white100);
}
#sim-section .sim-plan > :not(.sim-glow) {
    position: relative;
    z-index: 1;
}
#sim-section .sim-plan-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}
#sim-section .sim-plan-giga-mobile {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    margin: 0 auto;
    font-family: "Montserrat", Helvetica, sans-serif;
    font-weight: 800;
    font-size: 28px;
    line-height: 32px;
}
#sim-section .sim-plan-giga-mobile span:first-child {
    font-size: 40px;
    line-height: 40px;
}
#sim-section .sim-plan-mobile .text-regular {
    font-size: 16px;
    line-height: 22px;
}
#sim-section .sim-plan-price-inline {
    font-family: "Montserrat", Helvetica, sans-serif;
    font-size: 20px;
    line-height: 24px;
}
#sim-section .sim-plan-head {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
#sim-section .sim-plan-giga {
    display: flex;
    flex-direction: column;
    font-family: "Montserrat", Helvetica, sans-serif;
}
#sim-section .sim-plan-giga span:first-child {
    font-size: 40px;
    line-height: 46px;
    font-weight: 800;
}
#sim-section .sim-plan-giga span:last-child {
    font-size: 28px;
    line-height: 32px;
    font-weight: 700;
}
#sim-section .sim-plan-price {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 53px;
}
#sim-section .sim-plan-int {
    display: flex;
    align-items: center;
    height: 100%;
    font-family: "Montserrat", Helvetica, sans-serif;
    font-size: 70px;
    line-height: 80px;
    font-weight: 800;
}
#sim-section .sim-plan-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    white-space: nowrap;
}
#sim-section .sim-plan-side strong {
    font-weight: 700;
}
#sim-section .sim-plan-dec {
    font-family: "Montserrat", Helvetica, sans-serif;
    font-size: 20px;
    line-height: 24px;
}
#sim-section .sim-plan-divider {
    border-top: 1px solid var(--dim-grey20);
}
#sim-section .sim-plan-saving {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}
#sim-section .sim-plan-saving-text {
    width: 100%;
    text-align: center;
}
#sim-section .sim-plan-saving .text-regular {
    font-size: 16px;
    line-height: 22px;
}
#sim-section .sim-plan-saving .text-big {
    font-size: 20px;
    line-height: 26px;
}
#sim-section .sim-plan-arrow {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--dim-cele100);
}
#sim-section .sim-plan-arrow::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border: solid var(--dim-white100);
    border-width: 0 2px 2px 0;
    rotate: -45deg;
}
#sim-section .sim-plan-arrow:focus-visible {
    outline: 2px solid var(--dim-cele100);
    outline-offset: 2px;
}
#sim-section .sim-mobile-btn {
    display: inline-flex;
}

#sim-section .sim-plans-title {
    display: none;
}
/* Smartphone verticali: one white card (SIM, benefits, plan carousel), plans scroll sideways */
@media (max-width: 767.98px) and (orientation: portrait) {
    #sim-section .sim-grid {
        gap: 24px;
        margin-top: 48px;
        padding: 0 16px;
        border: 1px solid var(--dim-grey20);
        border-radius: 0 24px 0 24px;
        background: var(--dim-white100);
    }
    #sim-section .sim-card-media {
        margin-top: -48px;
    }
    #sim-section .sim-plans-title {
        display: block;
        margin-bottom: -12px;
    }
    /* Carousel bleeds to the screen edge and hangs below the card */
    #sim-section .sim-plans {
        flex-direction: row;
        margin: 0 -31px -56px -32px;
        padding: 0 31px 0 32px;
        scroll-padding-left: 32px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    #sim-section .sim-plans::-webkit-scrollbar {
        display: none;
    }
    #sim-section .sim-plan {
        flex: 0 0 300px;
        scroll-snap-align: start;
    }
    #sim-section .sim-plan-mobile {
        display: none;
    }
    #sim-section .sim-plan-head,
    #sim-section .sim-plan-arrow {
        display: flex;
    }
    #sim-section .sim-plan-saving {
        align-items: center;
    }
    #sim-section .sim-plan-saving-text {
        width: auto;
        text-align: left;
    }
    #sim-section .sim-container > .sim-only-mobile {
        margin-top: 56px;
    }
}

/* Da 1024px (e iPad verticali da 768px): box SIM in versione desktop */
@media (min-width: 1024px), (min-width: 768px) and (orientation: portrait), (min-width: 768px) and (max-width: 991.98px) and (orientation: landscape) {
    #sim-section {
        padding: 80px 0;
    }
    #sim-section .sim-container {
        gap: 48px;
    }
    #sim-section .sim-only-mobile {
        display: none;
    }
    #sim-section span.sim-only-desktop {
        display: inline;
    }
    #sim-section .sim-only-desktop {
        display: block;
    }
    #sim-section .sim-grid {
        grid-template-columns: 592px minmax(0, 488px);
        justify-content: center;
        gap: 64px;
    }
    #sim-section .sim-card {
        align-items: flex-end;
        overflow: hidden;
        border: 1px solid var(--dim-grey20);
        border-radius: 0 24px 0 24px;
    }
    #sim-section .sim-card-media {
        display: contents;
    }
    #sim-section .sim-card-img {
        position: absolute;
        bottom: -72px;
        left: -56px;
        width: 260px;
        height: auto;
        rotate: 15deg;
    }
    #sim-section .sim-card-box {
        gap: 24px;
        width: 304px;
        padding: 32px 32px 32px 0;
        border: 0;
        background: transparent;
    }
    #sim-section .sim-card-free {
        display: flex;
    }
    #sim-section .sim-card-cta {
        display: flex;
        margin-top: 8px;
    }
    #sim-section .sim-plans {
        gap: 24px;
    }
    #sim-section .sim-plan {
        gap: 24px;
        padding: 16px 24px;
    }
    #sim-section .sim-plan-mobile {
        display: none;
    }
    #sim-section .sim-plan-head {
        display: flex;
    }
    #sim-section .sim-plan-saving-text {
        width: auto;
        text-align: left;
    }
    #sim-section .sim-plan-arrow {
        display: flex;
    }
}

/* iPad Pro 13" verticale, iPad Pro 11" orizzontale e verticale: heading inside the SIM box, narrower plan column */
@media (min-width: 1024px) and (max-width: 1199.98px), (min-width: 768px) and (max-width: 1023.98px) and (orientation: portrait), (min-width: 768px) and (max-width: 991.98px) and (orientation: landscape) {
    #sim-section .sim-container {
        display: grid;
    }
    #sim-section .sim-container > header,
    #sim-section .sim-grid {
        grid-area: 1 / 1;
    }
    #sim-section .sim-container > header {
        z-index: 3;
        align-self: start;
        width: calc(100% - 352px - 48px);
        padding: 32px 24px 0;
        text-align: left;
        pointer-events: none;
    }
    #sim-section .sim-container > header span.sim-only-mobile {
        display: inline;
    }
    #sim-section .sim-container > header span.sim-only-desktop,
    #sim-section .sim-card-label {
        display: none;
    }
    #sim-section .sim-container > header .h2-regular {
        font-size: 32px;
        line-height: 38px;
    }
    #sim-section .sim-grid {
        grid-template-columns: minmax(0, 1fr) 352px;
        gap: 48px;
    }
    #sim-section .sim-card-box {
        padding-top: 168px;
    }
    #sim-section .sim-card-kicker,
    #sim-section .sim-card-free {
        display: none;
    }
    #sim-section .sim-card-free-mobile {
        display: flex;
    }
    #sim-section .sim-card-free-mobile span {
        text-transform: uppercase;
    }
    #sim-section .sim-plan-saving {
        align-items: center;
    }
}

/* iPad Pro 11" verticale: SIM box full width, the two plans side by side below */
@media (min-width: 768px) and (max-width: 1023.98px) and (orientation: portrait), (min-width: 768px) and (max-width: 991.98px) and (orientation: landscape) {
    #sim-section .sim-container > header {
        width: 100%;
    }
    #sim-section .sim-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    #sim-section .sim-plans {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* iPad mini verticale e smartphone: no photo in the "cambiare operatore" card */
@media (min-width: 768px) and (max-width: 833.98px) and (orientation: portrait), (max-width: 767.98px), (min-width: 768px) and (max-width: 991.98px) and (orientation: landscape) {
    .dim-card-horizontal .card-main-img {
        display: none;
    }
}

/* Sezione Step: stessa struttura e comportamento del componente DimStepSection del sito Dimensione.
   Valori in px (non rem) perché sotto i 768px l'html scala a 12px. */
.steps {
    --gutter: 16px;
    --header-h: 132px; /* header fisso della pagina */
    --content-width: min(100% - 2 * var(--gutter), 1200px);
    --tall-shift: calc(50dvh - 400px - var(--header-h) / 2);
    position: relative;
    overflow: clip; /* clip e non hidden: hidden bloccherebbe il position: sticky del pin */
}
.steps-track {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}
.steps-item {
    position: relative;
    overflow: hidden;
    isolation: isolate; /* i numeri (z-index -1) restano sopra lo sfondo ma sotto le illustrazioni */
}
.steps-frame {
    width: 100%;
    margin-inline: auto;
    padding: 40px var(--gutter);
}
.steps-body {
    position: relative;
    display: flex;
    flex-direction: column;
}
.steps-item:nth-child(3) .steps-body {
    gap: 24px;
}
.steps-heading,
.steps-title,
.steps-text,
.steps-cta {
    position: relative;
}
.steps-item:nth-child(2) .steps-title {
    text-align: right;
}
.steps-media {
    position: relative;
    height: 149px;
}
.steps-cta {
    margin-top: 122px;
}
.steps-link {
    text-decoration: underline !important;
}
.steps-glow,
.steps-glow-mobile,
.steps-img {
    position: absolute;
    max-width: none;
    pointer-events: none;
}
.steps-glow {
    display: none;
}
.steps-glow-mobile {
    top: -342px;
    right: -283px;
    width: 567px;
}
.steps-glow {
    top: -349px;
    left: -192px;
    width: 928px;
}
.steps-num,
.steps-num-tablet {
    position: absolute;
    font-family: "Roboto", Helvetica, sans-serif;
    font-weight: 200;
    color: var(--dim-cele20);
    pointer-events: none;
    user-select: none;
}
.steps-num,
.steps-num-tablet {
    z-index: -1;
}
.steps-num {
    font-size: 92px;
    line-height: 101px;
}
.steps-num-tablet {
    display: none;
    right: 24px;
    bottom: -48px;
    font-size: 200px;
    line-height: 1;
}
.steps-item:nth-child(1) .steps-num { top: -86px; left: calc(100% - 71px); }
.steps-item:nth-child(2) .steps-num { top: -81px; left: 0; }
.steps-item:nth-child(3) .steps-num { top: -12px; left: calc(100% - 51px); }
.steps-item:nth-child(1) .steps-img { right: -7px; bottom: 18px; width: 150px; rotate: -11deg; }
.steps-item:nth-child(2) .steps-img { bottom: 18px; left: -9px; width: 171px; rotate: 9.18deg; }
.steps-item:nth-child(3) .steps-img { top: 233px; right: 9px; width: 190px; rotate: 6deg; }

@media (min-width: 640px) {
    .steps { --gutter: 24px; }
}
@media (max-width: 767.98px) {
    .steps-item:nth-child(1) .steps-img { rotate: 11deg; }
    .steps-item:nth-child(2) .steps-img { rotate: -10deg; }
}

/* Tablet verticale: testi e illustrazione affiancati in una colonna da 680px, numero grande in basso a destra */
@media (min-width: 768px) and (max-width: 1023.98px) and (orientation: portrait), (min-width: 768px) and (max-width: 991.98px) and (orientation: landscape) {
    .steps-num-tablet { display: block; }
    .steps-num { display: none; }
    .steps-frame {
        position: relative;
        max-width: 680px;
        padding-top: 96px;
        padding-bottom: 96px;
    }
    .steps-item:nth-child(2) .steps-frame {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    .steps-body { gap: 24px; }
    .steps-title { max-width: 356px; }
    .steps-text { max-width: 344px; }
    .steps-item:nth-child(2) .steps-title { text-align: left; }
    .steps-media {
        position: absolute;
        top: 50%;
        right: 0;
        width: 256px;
        height: 256px;
        translate: 0 -50%;
    }
    .steps-item:nth-child(2) .steps-media { right: var(--gutter); }
    .steps-item:nth-child(1) .steps-img { width: 256px; }
    .steps-item:nth-child(2) .steps-img { right: 0; left: auto; width: 256px; }
    .steps-item:nth-child(3) .steps-img { top: 50%; right: 16px; width: 256px; translate: 0 -50%; }
    .steps-cta { margin-top: 0; }
}

/* Da 1024px: ogni step è un riquadro 600x800 centrato sotto l'header, affiancato agli altri */
@media (min-width: 1024px) {
    .steps { --gutter: 32px; }
    .steps-scene { height: 100dvh; }
    .steps-viewport {
        height: 100%;
        overflow-x: auto;
    }
    .steps-track {
        height: 100%;
        width: max-content;
        flex-direction: row;
        padding-left: calc((100% - var(--content-width)) / 2);
    }
    .steps-item {
        height: 100%;
        width: 600px;
        flex-shrink: 0;
    }
    .steps-item:nth-child(1) { overflow: visible; }
    .steps-item:nth-child(3) {
        width: auto;
        min-width: 600px;
        flex-grow: 1;
    }
    .steps-frame {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(50% - 400px + var(--header-h) / 2);
        height: 800px;
        padding: 100px 124px 100px 48px;
    }
    .steps-item:nth-child(2) .steps-frame {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        gap: 48px;
    }
    .steps-item:nth-child(3) .steps-frame { width: 600px; }
    .steps-glow { display: block; }
    /* Bagliore in basso a sinistra del primo step (Figma): gradiente CSS, segue la fila */
    .steps-item:nth-child(1) .steps-frame::before {
        content: "";
        position: absolute;
        top: 229px;
        left: -637px;
        width: 900px;
        height: 900px;
        background: radial-gradient(closest-side, rgba(27, 154, 214, .14), rgba(27, 154, 214, .06) 45%, rgba(27, 154, 214, 0));
        pointer-events: none;
    }
    .steps-glow-mobile { display: none; }
    .steps-body {
        position: static;
        gap: 32px;
    }
    .steps-item:nth-child(3) .steps-body {
        width: 458px;
        gap: 48px;
    }
    .steps-media { display: contents; }
    .steps-item:nth-child(2) .steps-title { text-align: left; }
    .steps-cta { margin-top: 0; }
    .steps-item:nth-child(n) .steps-num {
        top: 626px;
        left: 419px;
        font-size: 240px;
        line-height: 262.5px;
    }
    .steps-item:nth-child(1) .steps-img { top: 470px; right: auto; bottom: auto; left: 23px; width: 365px; rotate: 8.9deg; }
    .steps-item:nth-child(2) .steps-img { top: -67px; bottom: auto; left: 62px; width: 447px; rotate: -11.2deg; }
    .steps-item:nth-child(3) .steps-img { top: 485px; right: auto; left: 66px; width: 390px; rotate: -8.8deg; }
}
/* Con prefers-reduced-motion niente movimento: la fila resta scorrevole a mano */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
    .steps-viewport { overflow: hidden; }
}
@media (min-width: 1024px) and (max-width: 1799.98px) and (prefers-reduced-motion: no-preference) {
    .steps-scene {
        position: sticky;
        top: 0;
    }
}
/* iPad Pro 13" verticale: riquadri da 520px */
@media (min-width: 1024px) and (max-width: 1279.98px) and (orientation: portrait) {
    .steps-item { width: 520px; }
    .steps-item:nth-child(3) { min-width: 520px; }
    .steps-frame { padding-right: 44px; }
    .steps-item:nth-child(3) .steps-frame { width: 520px; }
    .steps-item:nth-child(n) .steps-num {
        left: 339px;
        top: calc(50dvh + 400px - var(--header-h) / 2 - 174px);
    }
}
/* Finestre molto più alte del riquadro: le illustrazioni si spostano della differenza e vengono tagliate dai bordi */
@media (min-width: 1024px) and (max-width: 1279.98px) and (orientation: portrait),
       (min-width: 1280px) and (max-width: 1439.98px) and (min-height: 1000.02px) {
    .steps-shift-down { translate: 0 var(--tall-shift); }
    .steps-shift-up { translate: 0 calc(-1 * var(--tall-shift)); }
}
/* Notebook (fino a 1000px di altezza): illustrazioni all'80% */
@media (min-width: 1280px) and (max-width: 1799.98px) and (max-height: 1000px) {
    .steps-img { scale: .8; }
}
/* Notebook più bassi del riquadro (es. MacBook 13" 1440x790): illustrazioni in basso e numeri salgono
   di quanto il riquadro sporge sotto la finestra, così il taglio resta quello del mockup */
@media (min-width: 1280px) and (max-width: 1799.98px) and (min-height: 701px) and (max-height: 1000px) {
    .steps-item:nth-child(1) .steps-img,
    .steps-item:nth-child(3) .steps-img,
    .steps-num {
        translate: 0 min(0px, 50dvh - 400px - var(--header-h) / 2);
    }
}
/* Finestre fino a 700px di altezza: ogni riquadro parte sotto l'header e riempie il resto della finestra */
@media (min-width: 1024px) and (max-height: 700px) {
    .steps-frame {
        top: var(--header-h);
        height: calc(100dvh - var(--header-h));
        padding-top: 32px;
        padding-bottom: 32px;
    }
    .steps-item:nth-child(2) .steps-frame,
    .steps-item:nth-child(3) .steps-body { gap: 24px; }
    .steps-item:nth-child(n) .steps-num {
        top: calc(100% - 140px);
    }
    .steps-img { scale: 1; }
    .steps-item:nth-child(1) .steps-img { top: auto; bottom: -40px; width: 224px; }
    .steps-item:nth-child(2) .steps-img { top: -16px; width: 224px; }
    .steps-item:nth-child(3) .steps-img { top: auto; bottom: -40px; right: 24px; left: auto; width: 208px; translate: -160px 0; }
    /* Riquadri più stretti; l'illustrazione dello step 2 va a destra, lontana dal titolo */
    .steps-item,
    .steps-item:nth-child(3) .steps-frame { width: 500px; }
    .steps-item:nth-child(3) { min-width: 500px; }
    .steps-frame { padding-right: 40px; }
    .steps-item:nth-child(3) .steps-body { width: auto; }
    .steps-item:nth-child(n) .steps-num { left: 320px; }
    .steps-item:nth-child(2) .steps-img { top: -24px; right: 8px; left: auto; width: 230px; }
    .steps-item:nth-child(3) .steps-img { bottom: -80px; width: 190px; translate: -120px 0; }
}
/* Da 1800px i tre step stanno affiancati a tutta larghezza, senza movimento */
@media (min-width: 1800px) {
    .steps-scene { height: 800px; }
    .steps-track {
        width: 100%;
        padding-left: 0;
    }
    .steps-item,
    .steps-item:nth-child(3) {
        width: auto;
        flex: 1;
    }
    .steps-frame {
        top: 0;
        width: 600px;
    }
}

/* Sezione WhyUs */
#whyus-section > .row {
    display: flex;
}
#whyus-section .area-box > .row {
    display: flex;
    align-items: flex-end;
    height: 100%;
}
.singolo-box-testo {
    padding-top: 56px;
    position: relative;
}
.singolo-box-testo::before {
    position: absolute;
    content: "";
    left: 0;
    top: 24px;
    width: 32px;
    height: 8px;
    background-color: #fff;
}

/* Sezione Faq */
#faq-section .singolo-box-testo {
    width: 100%;
    max-width: 280px;
}
#faq-section #accordion-faq .panel {
    box-shadow: none;
}
#faq-section #accordion-faq .panel + .panel {
    margin-top: 8px;
}
#faq-section #accordion-faq .panel-heading {
    background-image: none;
}

#faq-section #accordion-faq .accordion-icon {
    width: 16px;
    height: auto;
}
#faq-section #accordion-faq .panel-heading .panel-title a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-image: none;
    transition: .3s;
}
#faq-section #accordion-faq .panel-heading .panel-title a .accordion-icon {
    transition: .3s;
}

/* Comportamento apertura-chiusura accordion */
#faq-section #accordion-faq .panel-heading .panel-title a[aria-expanded="true"]{
    border-radius: 12px 12px 0 0;
    background: #eaeaea !important;
}
#faq-section #accordion-faq .panel-heading .panel-title a[aria-expanded="true"] .accordion-icon {
    transform: rotate(-180deg);
}
/* Sfondo e padding sul contenitore interno: sull'elemento animato da Bootstrap farebbero saltare l'altezza */
#faq-section #accordion-faq .faq-answer {
    border-radius: 0 0 12px 12px;
}

/* Sezione CTA finale */
#cta-finale-section {
    position: relative;
    overflow: hidden;
    background-image: radial-gradient(ellipse 450px 250px at 50% 15%, rgba(27, 154, 214, .2), transparent);
}
#cta-finale-section::before,
#cta-finale-section::after {
    --streak-rotate: -2.4deg;
    top: 56%;
}
#cta-finale-section::after {
    top: 48%;
    background: var(--streak-soft) 0 0 / 200% 2px repeat-x;
}
#cta-finale-section > .row {
    position: relative;
    z-index: 1;
}
#cta-finale-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#countdown-cta .wrapper-num {
    background-color: var(--dim-dark-blu100);
    border-color: var(--dim-blu100);
}



/* Notebook (finestra desktop alta fino a 900px, es. MacBook 13" 1440x790): la hero sta tutta nella prima schermata */
@media (min-width: 1200px) and (max-height: 900px) {
    #splash-section > .row > .container {
        padding-top: 48px;
        padding-bottom: 40px;
    }
    .card-promo-content {
        padding-top: 32px;
    }
    .card-promo-value {
        font-size: 84px;
        line-height: 64px;
    }
    .card-promo-divider {
        margin: 16px 0;
    }
}



/* Laptop bassi (es. Windows 1280x590) e tablet orizzontali sotto i 1200px (es. iPad Air 11" 1180x820):
   testi della hero ridotti per farla stare tutta */
@media (min-width: 1200px) and (max-height: 700px),
       (min-width: 992px) and (max-width: 1199.98px) and (orientation: landscape) {
    #splash-section > .row > .container {
        padding-top: 32px;
        padding-bottom: 12px;
    }
    #splash-section .h1-big {
        font-size: 48px;
        line-height: 54px;
        padding-bottom: 20px;
    }
    #splash-section .wrapper-top .text-big {
        font-size: 16px;
        line-height: 22px;
        padding-bottom: 12px;
    }
    #splash-section .wrapper-top .h3-regular {
        font-size: 24px;
        line-height: 28px;
    }
    #splash-section .wrapper-bottom {
        margin-top: 20px;
    }
    #countdown-splash .wrapper-num {
        width: 84px;
        padding: 6px 12px;
    }
    #countdown-splash .countdown-value {
        font-size: 28px;
        line-height: 34px;
    }
    #countdown-splash .text-regular {
        font-size: 14px;
        line-height: 18px;
    }
    .card-promo-tag {
        padding: 12px 16px;
        font-size: 18px;
    }
    .card-promo-content {
        padding: 16px 32px 20px;
    }
    .card-promo-content .h2-extrabold,
    .card-promo-content .h2-bold {
        font-size: 28px;
        line-height: 32px;
    }
    .card-promo-value {
        margin-top: 8px;
        font-size: 60px;
        line-height: 48px;
    }
    .card-promo-divider {
        margin: 12px 0;
        font-size: 28px;
    }
    .card-promo .card-promo-link {
        margin-top: 20px;
    }
    .card-promo-link + .text-small {
        margin-top: 8px;
    }
}
/* Laptop bassi: the offer card sets the hero height, keep it within the first screen */
@media (min-width: 1200px) and (max-height: 700px) {
    .card-promo-content {
        padding-bottom: 12px;
    }
    .card-promo-content > .text-big {
        margin-top: 8px;
    }
}



/* iPad Pro 11" orizzontale: "Stavi pensando di / cambiare operatore?" */
.br-tablet-landscape {
    display: none;
}
@media (min-width: 992px) and (max-width: 1199.98px) and (orientation: landscape) {
    .br-tablet-landscape {
        display: inline;
    }
}
/* A capo prima di "doppio vantaggio" solo sotto i 1200px */
.br-tablet {
    display: none;
}
@media (max-width: 1199.98px) {
    .br-tablet {
        display: inline;
    }
}
/* A capo e testi solo su mobile */
.br-mobile {
    display: none;
}
@media (max-width: 767.98px) {
    .br-mobile {
        display: inline;
    }
    .hide-mobile {
        display: none;
    }
}

/* iPad verticali (Pro 13" e Air 11") e mobile: hero in colonna e centrata, box offerta tra titolo e testi */
@media (min-width: 768px) and (max-width: 1199.98px) and (orientation: portrait), (max-width: 767.98px), (min-width: 768px) and (max-width: 991.98px) and (orientation: landscape) {
    #splash-section > .row > .container {
        padding-top: 40px;
    }
    /* Colonne "sciolte" (display: contents) per mettere il box tra titolo e testi */
    #splash-section .splash-row {
        flex-direction: column;
        align-items: center;
    }
    #splash-section .wrapper-content-splash,
    #splash-section .wrapper-content-splash > .wrapper-top {
        display: contents;
    }
    /* Le colonne sciolte perdono il padding di Bootstrap: lo rimettono testi e countdown */
    #splash-section .wrapper-top > *,
    #splash-section .wrapper-bottom {
        max-width: 640px;
        padding-left: 15px;
        padding-right: 15px;
    }
    #splash-section .splash-row > .col-md-5 {
        order: 1;
        margin-bottom: 32px;
    }
    #splash-section .wrapper-top > .text-big,
    #splash-section .wrapper-top > .h3-regular {
        order: 2;
    }
    #splash-section .wrapper-bottom {
        order: 3;
    }
    #splash-section .h1-big {
        padding-bottom: 32px;
    }
    #splash-section .wrapper-bottom {
        margin-top: 32px;
    }
    .card-promo-content {
        padding-top: 32px;
    }
    #splash-section .splash-row > [class*="col-"] {
        width: 100%;
        max-width: 640px;
        margin-left: 0;
    }
    #splash-section .wrapper-content-splash {
        text-align: center;
    }
    #splash-section .splash-countdown-row {
        justify-content: center;
    }
}
/* iPad verticali: box offerta in orizzontale, le due promo affiancate, bottone e nota sotto */
@media (min-width: 768px) and (max-width: 1199.98px) and (orientation: portrait), (min-width: 768px) and (max-width: 991.98px) and (orientation: landscape) {
    #splash-section .splash-row > .col-md-5 {
        max-width: none;
    }
    .card-promo-content {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        column-gap: 32px;
    }
    .card-promo-content > .btn-custom,
    .card-promo-content > .text-small {
        grid-column: 1 / -1;
    }
    /* "anziché 49€" under the activation price; the divider spans both rows */
    .card-promo-content > .text-big {
        grid-column: 3;
    }
    .card-promo-content > .card-promo-divider {
        grid-row: span 2;
    }
    .card-promo-content > .btn-custom {
        justify-self: center;
        width: 420px !important;
        margin-top: 32px;
    }
    .card-promo-divider {
        flex-direction: column;
        margin: 0;
    }
    .card-promo-divider::before,
    .card-promo-divider::after {
        flex: none;
        width: 1px;
        height: 56px;
    }
}
/* iPad verticali e smartphone: eyebrow and "Entra gratis in Dimensione." under the offer box */
@media (min-width: 768px) and (max-width: 1199.98px) and (orientation: portrait), (max-width: 767.98px), (min-width: 768px) and (max-width: 991.98px) and (orientation: landscape) {
    #splash-section .wrapper-top > .h1-big {
        order: 2;
    }
    /* The box eyebrow and prices replace them */
    #splash-section .wrapper-top > .text-titoletto,
    #splash-section .wrapper-top > .h3-regular {
        display: none;
    }
    /* Box on top: eyebrow on the left of the date tag */
    .card-promo-heading {
        justify-content: space-between;
    }
    #splash-section .card-promo-eyebrow {
        display: block;
        padding-left: 24px;
        text-align: left;
    }
}
@media (max-width: 767.98px) {
    #splash-section .card-promo-eyebrow {
        padding-left: 12px;
        padding-right: 8px;
    }
}
/* iPad Air 11" verticale: box offerta più stretto, testi interni ridotti */
@media (min-width: 768px) and (max-width: 991.98px) and (orientation: portrait), (min-width: 768px) and (max-width: 991.98px) and (orientation: landscape) {
    /* Copre la linea di 1px che resta tra hero e sezione offerta */
    #offerta-section {
        position: relative;
        margin-top: -1px;
    }
    .card-promo-content {
        column-gap: 16px;
    }
    .card-promo-content .h2-extrabold,
    .card-promo-content .h2-bold {
        font-size: 32px;
        line-height: 36px;
    }
    .card-promo-value {
        font-size: 80px;
        line-height: 64px;
    }
}
/* Tablet tra 992 e 1199px (iPad Pro 13" verticale, iPad Air 11" orizzontale): colonna testi "perché sceglierci" più larga */
@media (min-width: 992px) and (max-width: 1199.98px) {
    #whyus-section .area-content {
        width: 41.66%;
    }
    #whyus-section .area-box {
        width: 58.33%;
        margin-left: 0;
    }
}
/* iPad Air 11" orizzontale: colonna testi della hero più larga (7/12), box offerta senza margine a sinistra */
@media (min-width: 992px) and (max-width: 1199.98px) and (orientation: landscape) {
    #splash-section > .row > .container {
        padding-top: 56px;
        padding-bottom: 48px;
    }
    /* Narrower offer box: 7/12 text, 5/12 box */
    #splash-section .wrapper-content-splash {
        width: 58.33%;
        margin-left: 0;
    }
    #splash-section .splash-row > .col-md-5 {
        width: 41.67%;
        margin-left: 0;
    }
    #splash-section .h1-big {
        font-size: 48px;
        line-height: 54px;
        padding-bottom: 24px;
    }
    .card-promo-content {
        padding-top: 24px;
    }
    .card-promo-value {
        font-size: 72px;
        line-height: 56px;
    }
    #splash-section .splash-countdown-row,
    #countdown-splash .wrapper-countdown {
        gap: 8px;
    }
    #countdown-splash .wrapper-num {
        width: 76px;
    }
    #splash-section .btn-countdown {
        flex: 1;
    }
}



@media(max-width: 991px){
    /* Splash: testi centrati (la vecchia immagine di sfondo 2025 è stata rimossa) */
    #splash-section * {
        text-align: center;
    }
    .wrapper-countdown {
        justify-content: center;
        align-items: center;
    }

    /* Offerta */
    .dim-card-horizontal {
        flex-direction: column;
        gap: 16px;
    }
    .dim-card-horizontal .card-main-img {
        width: 100%;
        height: 300px;
        object-position: center 10%; /* card in colonna: inquadra il viso, come nel mockup mobile */
    }
    .dim-card-horizontal .card-content {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    /* Area WhyUs */
    #whyus-section .area-content,
    #whyus-section .area-box {
        width: 50%;
    }
    #whyus-section .area-content .sticky-area-content {
        position: sticky;
        top: 150px;
    }
    #whyus-section .area-box > .row {
        flex-direction: column;
        gap: 1rem;
    }

    /* Area Faqs */
    #faq-section .wrapper-content {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        margin-bottom: 2rem;
    }
    #faq-section .wrapper-content > div{
        width: 50%;
    }
}



@media(max-width: 767px){

    /* Box copertura nelle FAQ a tutta larghezza */
    #faq-section .wrapper-content > .singolo-box-testo {
        text-align: left;
        align-self: stretch;
        max-width: none;
        width: auto;
        margin-left: 15px;
        margin-right: 15px;
    }

    /* Countdown hero e CTA: le 4 caselle si dividono sempre la larghezza disponibile */
    #countdown-splash,
    #countdown-cta,
    #splash-section .wrapper-bottom {
        width: 100%;
    }
    #countdown-splash .wrapper-countdown,
    #countdown-cta .wrapper-countdown {
        gap: 8px;
    }
    #countdown-splash .wrapper-num,
    #countdown-cta .wrapper-num {
        flex: 1;
        width: auto;
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
    }
    #splash-section .splash-countdown-row {
        flex-direction: column;
        gap: 12px;
    }
    #splash-section .btn-countdown {
        width: 100%;
        flex-direction: row;
        border-radius: 200px;
    }
    #splash-section .btn-countdown br {
        display: none;
    }
    #cta-finale-section .btn-custom {
        margin-top: 32px;
    }

    /* Header */
    #header-fixed .header-top-wrapper > div {
        padding: 0;
    }
    #header-fixed .logo {
        width: auto;
        height: 35px;
    }

    /* Area Offerta */
    #offerta-section > .row > .container {
        padding-top: 0;
    }
    .dim-card-horizontal .card-main-img {
        height: 180px;
    }
    .dim-card-horizontal .card-content .card-heading {
        flex-direction: column;
        gap: 8px;
    }
    .dim-card-horizontal .card-content .card-body {
        flex-wrap: wrap;
    }
    .dim-card-horizontal .card-content .card-body .card-subcard {
        width: calc(50% - 8px);
    }
    .dim-card-horizontal .card-content .card-body .card-subcard:last-child {
        width: 100%;
    }
    .dim-card-horizontal .card-content .card-body .card-subcard .card-subcard-body img {
        height: 100px;
    }

    #whyus-section > .row {
        flex-direction: column;
    }
    #whyus-section .area-content,
    #whyus-section .area-box {
        width: 100%;
    }
    #whyus-section .area-content .sticky-area-content {
        position: initial;
    }
    #whyus-section .area-box {
        margin-top: 2rem;
    }


    /* Faq section: testi introduttivi, poi le FAQ, poi il box copertura */
    #faq-section > .row {
        display: flex;
        flex-direction: column;
    }
    #faq-section .col-md-5.wrapper-content {
        display: contents;
    }
    /* padding e non margin: la vecchia regola width: 100% lo farebbe sbordare */
    #faq-section .wrapper-inner-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    #faq-section .col-md-7 {
        order: 1;
    }
    #faq-section .singolo-box-testo {
        order: 2;
        align-self: center;
        margin-top: 32px;
    }
    #faq-section .wrapper-content {
        flex-direction: column;
        align-items: center;
    }
    #faq-section .wrapper-content > div {
        width: 100%;
    }
    #faq-section .wrapper-content > * {
        text-align: center;
    }
}

/* iPad mini orizzontale: smaller countdown CTA, slightly narrower offer box */
@media (min-width: 992px) and (max-width: 1099.98px) and (orientation: landscape) {
    #splash-section .wrapper-content-splash {
        width: 62%;
    }
    #splash-section .splash-row > .col-md-5 {
        width: 38%;
    }
    #splash-section .btn-countdown {
        flex: none;
    }
}

/* Duo aperto verticale (smartphone larghi): SIM plans side by side, "perché sceglierci" boxes in a 2x2 grid */
@media (min-width: 600px) and (max-width: 767.98px) and (orientation: portrait) {
    #sim-section .sim-plans {
        margin-right: 0;
        padding-right: 0;
        overflow: visible;
    }
    #sim-section .sim-plan {
        flex: 1 1 0;
    }
    /* Columns are unwrapped, so the row drops Bootstrap's negative margins */
    #whyus-section .area-box > .row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
        gap: 16px;
        margin: 0;
    }
    #whyus-section .area-box > .row::before,
    #whyus-section .area-box > .row::after {
        content: none;
    }
    #whyus-section .area-box > .row > .col-md-6,
    #whyus-section .area-box > .row > .col-md-6:last-child {
        display: contents;
    }
    #whyus-section .singolo-box-testo {
        margin-bottom: 0;
    }
}

/* iPhone SE e schermi fino a 380px */
@media (max-width: 380px) {
    .card-promo-value {
        font-size: 48px;
        line-height: 40px;
    }
    .card-promo-content {
        padding-top: 20px;
    }
    .card-promo-divider {
        margin: 12px 0;
    }
    #splash-section .card-promo .card-promo-link {
        margin-top: 24px;
    }
    .offerta-heading .h3-regular {
        font-size: 18px;
        line-height: 24px;
    }
}

/* Reviews section: port of DimSocialProofSection.vue + DimVideoReviewCard.vue (standalone layout).
   px values: below 768px the html font-size drops to 12px. */
.sp-section {
    --gutter: 16px;
    position: relative;
    overflow: hidden;
    padding: 40px 0;
    background-color: var(--dim-cele10);
}
.sp-glow {
    position: absolute;
    max-width: none;
    pointer-events: none;
}
.sp-glow-right {
    top: -300px;
    right: -477px;
    width: 924px;
    height: 924px;
}
.sp-glow-left {
    top: 85px;
    left: -562px;
    width: 1010px;
    height: 1010px;
}
.sp-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 48px;
}
.sp-container {
    width: 100%;
    max-width: calc(1200px + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.sp-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.sp-heading {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    text-align: center;
}
.sp-only-desktop,
.sp-br-desktop {
    display: none;
}
.sp-trustpilot {
    flex-direction: column;
    flex-shrink: 0;
    gap: 8px;
    width: 280px;
    padding: 16px;
    border-radius: 0 24px 0 24px;
    background-color: var(--dim-white100);
}
.sp-slider {
    position: relative;
    width: 100%;
    height: 450px;
}
.sp-viewport {
    height: 100%;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}
.sp-viewport.is-dragging,
.sp-viewport.is-dragging .sp-card {
    cursor: grabbing;
}
.sp-track {
    display: flex;
    align-items: center;
    gap: 16px;
    width: max-content;
    height: 100%;
    padding: 0 calc(50vw - 155.5px);
}
.sp-card {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    width: 320px;
    height: 450px;
    border-radius: 16px;
    background-color: var(--dim-black90);
    opacity: 0.4;
    cursor: pointer;
    transition: width 0.3s, height 0.3s, opacity 0.3s;
}
.sp-card.is-active {
    width: 311px;
    opacity: 1;
    cursor: inherit;
}
.sp-card video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sp-progress {
    display: none;
    position: absolute;
    top: 12px;
    right: 16px;
    left: 16px;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.4);
}
.sp-card.is-active .sp-progress {
    display: block;
}
.sp-progress-bar {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background-color: var(--dim-white100);
}
/* Hidden with visibility so inactive buttons leave the tab order */
.sp-card-cta {
    position: absolute;
    right: 16px;
    bottom: 60px;
    left: 16px;
    display: flex;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.sp-card.is-active .sp-card-cta {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0.15s;
}
/* Same markup and hover as DimButton variant white: fill slides in, label rolls up */
.sp-open {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    overflow: hidden;
    padding: 12px 20px;
    border: 1px solid var(--dim-cele100);
    border-radius: 100px;
    background-color: var(--dim-white100);
    white-space: nowrap;
    transition: color 0.5s;
}
.sp-open::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--dim-cele100);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
.sp-open:hover::before {
    transform: scaleX(1);
}
.sp-open:focus-visible {
    outline: 2px solid var(--dim-cele100);
    outline-offset: 2px;
}
.sp-open-clip {
    position: relative;
    z-index: 10;
    display: block;
    height: 18px;
    overflow: hidden;
}
.sp-open-roll {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.sp-open:hover .sp-open-roll {
    transform: translateY(-50%);
    transition-delay: 75ms;
}
.sp-open-row {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 18px;
    color: var(--dim-cele100);
    font-family: "Montserrat", Helvetica, sans-serif;
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.sp-open-row-hover {
    color: var(--dim-white100);
}
/* WCAG 2.2.2 play/pause control, same as the si-hub video toggle */
/* Negative margin: 24px below the slider instead of the content gap */
.sp-toggle {
    align-self: center;
    margin-top: -24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px 0 10px;
    border: 0;
    border-radius: 100px;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--dim-white100);
    font-family: "Roboto", Helvetica, sans-serif;
    font-size: 12px;
    line-height: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s;
}
.sp-toggle:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
.sp-toggle:focus-visible {
    outline: 2px solid var(--dim-cele100);
    outline-offset: 2px;
}
/* Typography of the website DimText types (px: the landing html scales to 12px below 768px) */
.sp-section .text-titoletto {
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 1px;
}
.sp-section h2 {
    font-size: 32px;
    line-height: 38px;
}
.sp-section .text-big {
    font-size: 18px;
    line-height: 26px;
}
.sp-name {
    position: absolute;
    bottom: 0;
    left: 50%;
    margin: 0;
    padding: 8px 16px;
    border-radius: 16px 16px 0 0;
    background-color: var(--dim-cele100);
    color: var(--dim-white100);
    font-family: "Montserrat", Helvetica, sans-serif;
    font-size: 22px;
    line-height: 28px;
    font-weight: 700;
    white-space: nowrap;
    transform: translateX(-50%);
}
.sp-fade {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 10;
    width: 160px;
    pointer-events: none;
}
.sp-fade-left {
    left: 0;
    background: linear-gradient(to right, var(--dim-cele10), rgba(232, 239, 249, 0));
}
.sp-fade-right {
    right: 0;
    background: linear-gradient(to left, var(--dim-cele10), rgba(232, 239, 249, 0));
}
/* Capped at 2000px so on ultrawide screens the arrows stay close to the cards */
.sp-arrows {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 2000px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    pointer-events: none;
}
.sp-arrow,
.sp-dialog-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--dim-cele100);
    border-radius: 50%;
    background-color: var(--dim-white100);
    color: var(--dim-cele100);
    pointer-events: auto;
}
.sp-arrow:focus-visible {
    outline: 2px solid var(--dim-cele100);
    outline-offset: 2px;
}
.sp-dialog {
    width: calc(100% - 2 * var(--gutter));
    max-width: 960px;
    margin: auto;
    padding: 0;
    border: 0;
    overflow: visible;
    background: transparent;
}
.sp-dialog::backdrop {
    background-color: rgba(65, 64, 66, 0.8);
}
.sp-dialog-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.sp-dialog-close {
    border-color: var(--dim-white100);
}
.sp-dialog-close:focus-visible {
    outline: 2px solid var(--dim-white100);
    outline-offset: 2px;
}
.sp-dialog-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    background-color: var(--dim-black90);
}
.sp-dialog-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
@media (prefers-reduced-motion: reduce) {
    .sp-card-cta {
        transition: none;
    }
    .sp-open::before,
    .sp-open-roll {
        transition-duration: 0s;
    }
}
@media (min-width: 1025px) {
    .sp-section .text-titoletto {
        font-size: 16px;
        line-height: 20px;
        letter-spacing: 1.5px;
    }
    .sp-section h2 {
        font-size: 40px;
        line-height: 46px;
    }
    .sp-section .text-big {
        font-size: 20px;
        line-height: 26px;
    }
}
@media (min-width: 640px) {
    .sp-section {
        --gutter: 24px;
    }
}
@media (min-width: 768px) {
    .sp-fade {
        display: block;
    }
}
@media (min-width: 1024px) {
    .sp-section {
        --gutter: 32px;
        padding: 100px 0;
    }
    .sp-glow {
        display: none;
    }
    .sp-content {
        gap: 96px;
    }
    .sp-heading {
        width: auto;
        text-align: left;
    }
    .sp-toggle {
        margin-top: -72px;
    }
    .sp-only-desktop {
        display: block;
    }
    .sp-trustpilot.sp-only-desktop {
        display: flex;
    }
    .sp-br-desktop {
        display: inline;
    }
    .sp-slider {
        height: 600px;
    }
    .sp-track {
        gap: 32px;
        padding: 0 calc(50vw - 192px);
    }
    .sp-card.is-active {
        width: 384px;
        height: 600px;
    }
}
/* Laptop bassi (es. Windows 1280x590): shorter, narrower cards so about 5 fit in the preview */
@media (min-width: 1200px) and (max-height: 700px) {
    .sp-slider {
        height: 400px;
    }
    .sp-track {
        gap: 24px;
        padding: 0 calc(50vw - 128px);
    }
    .sp-card {
        width: 224px;
        height: 320px;
    }
    .sp-card.is-active {
        width: 256px;
        height: 400px;
    }
    .sp-card-cta {
        bottom: 52px;
    }
    .sp-name {
        padding: 6px 12px;
        font-size: 18px;
        line-height: 24px;
    }
}
/* Smartphone */
@media (max-width: 767.98px) {
    .card-promo-content > .text-big em {
        font-style: italic;
    }
    .card-promo-content {
        padding-left: 16px;
        padding-right: 16px;
    }
    /* Figma mobile uses [MOB] H3 for these headings */
    #offerta-section .offerta-heading h2,
    #cta-finale-section h2 {
        font-size: 28px;
        line-height: 34px;
    }
    #splash-section h1 {
        font-size: 38px;
        line-height: 44px;
    }
    .card-promo-tag {
        font-size: 14px;
        line-height: 18px;
    }
    /* Desktop H1 ExtraBold size on purpose, bigger than [MOB] */
    #splash-section .card-promo-value {
        margin-top: 0;
        font-size: 64px;
        line-height: 70px;
    }
    /* Box spacing from the Figma mobile auto layout */
    #splash-section .card-promo-content {
        padding: 16px;
    }
    #splash-section .card-promo-divider {
        margin: 16px 0;
        line-height: 17px;
    }
    #splash-section .card-promo-content > .text-big {
        margin-top: 0;
    }
    #splash-section .card-promo-content > .btn-custom {
        margin-top: 24px;
    }
    #splash-section .card-promo-content > .text-small {
        margin-top: 8px;
    }
    .card-promo-content > .text-big,
    .dim-card-horizontal .card-heading p {
        font-size: 16px;
        line-height: 22px;
    }
    /* Text ExtraSmall size */
    .card-promo-content > .text-small,
    #offerta-section .text-dim-dark-blu100 {
        font-size: 10px;
        line-height: 11px;
    }
    #countdown-splash .countdown-value {
        font-size: 28px;
        line-height: 34px;
    }
    #countdown-splash .text-regular {
        font-size: 12px;
        line-height: 14px;
    }
    .steps-item:first-child .steps-title {
        max-width: 295px;
    }
    .dim-card-horizontal .card-heading h3 {
        font-size: 22px;
        line-height: 28px;
        font-weight: 700;
    }
    .dim-card-horizontal {
        border-radius: 0 24px 0 24px;
    }
}
