/* ============================================================
   SISAS TECHTRONIC
   PAGINE WORDPRESS STANDARD — assets/css/pages.css

   DESIGN SYSTEM UNICO

   Componenti visivi:
     .tt-card                → card bianca (info)
     .tt-feature             → card soft + barretta arancione (highlight)
     .tt-cta                 → blocco CTA (soft, 860px, titolo grande)
     .tt-material-icon(-lg)  → icona SVG (utility)
     .tt-container           → contenitore standard riutilizzabile
     .tt-section(-light/-dark)
     .tt-media
     .tt-text-justify

   Pagine speciali:
     Servizi, Assistenza, Catalogo

   Le classi storiche (.tt-contact-box, .tt-sales-card,
   .tt-soluzione-card, .tt-divisione-cta, .tt-contact-cta,
   .tt-hermes-demo, .tt-divisione-punti > col, .tt-divisione-cta-title,
   ...) NON ridefiniscono nulla: sono nella STESSA lista di selettori
   della regola base. Una proprietà = una sola scrittura.
   ============================================================ */


/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */

body.page {

    --tt-page-max:  1200px;
    --tt-page-wide: 1400px;
    --tt-page-side: clamp(20px, 4vw, 64px);

    --tt-page-navy:   var(--tt-navy,   #071f33);
    --tt-page-blue:   var(--tt-blue,   #0c4da2);
    --tt-page-orange: var(--tt-orange, #ff7a18);

    --tt-page-text:   #263746;
    --tt-page-muted:  #667480;

    --tt-page-border: #dce3e8;
    --tt-page-soft:   #f5f7f8;
    --tt-page-white:  #ffffff;

    --tt-radius:    8px;
    --tt-radius-sm: 5px;

    --tt-shadow:       0 8px 28px rgba(7, 31, 51, .06);
    --tt-shadow-hover: 0 14px 34px rgba(7, 31, 51, .10);

    --tt-card-pad:    clamp(22px, 3vw, 32px);
    --tt-section-pad: clamp(45px, 6vw, 80px);
    --tt-gap-section: clamp(36px, 5vw, 64px);

    --tt-h1-size: clamp(2rem, 3.2vw, 3.15rem);
    --tt-h2-size: clamp(1.45rem, 2vw, 1.9rem);
    --tt-h3-size: clamp(1.15rem, 1.5vw, 1.35rem);

    --tt-icon-size:    55px;
    --tt-icon-size-lg: 70px;

    --tt-transition: .22s ease;
}


/* ============================================================
   2. MAIN
   ============================================================ */

body.page main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}


/* ============================================================
   3. H1 PAGINA
   ============================================================ */

body.page main .wp-block-post-title {
    position: relative;
    width: min(
        calc(100% - (var(--tt-page-side) * 2)),
        var(--tt-page-max)
    );
    margin: 68px auto 36px;
    padding-top: 14px;
    color: var(--tt-page-navy);
    font-size: var(--tt-h1-size);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.025em;
}

body.page main .wp-block-post-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 46px;
    height: 3px;
    background: var(--tt-page-orange);
}


/* ============================================================
   4. CONTENUTO
   ============================================================ */

body.page .wp-block-post-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 clamp(55px, 6vw, 90px);
    color: var(--tt-page-text);
    font-size: clamp(1rem, 1.05vw, 1.075rem);
    line-height: 1.72;
}


/* ============================================================
   5. LARGHEZZE STANDARD
   ============================================================ */

body.page .wp-block-post-content > p,
body.page .wp-block-post-content > h1,
body.page .wp-block-post-content > h2,
body.page .wp-block-post-content > h3,
body.page .wp-block-post-content > h4,
body.page .wp-block-post-content > h5,
body.page .wp-block-post-content > h6,
body.page .wp-block-post-content > ul,
body.page .wp-block-post-content > ol,
body.page .wp-block-post-content > blockquote,
body.page .wp-block-post-content > table,
body.page .wp-block-post-content > .wp-block-table,
body.page .wp-block-post-content > .wp-block-buttons,
body.page .wp-block-post-content > .wp-block-image:not(.alignwide):not(.alignfull),
body.page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull),
body.page .wp-block-post-content > .wp-block-group:not(.alignwide):not(.alignfull),
body.page .wp-block-post-content > .wp-block-media-text:not(.alignwide):not(.alignfull),
body.page .wp-block-post-content > .wp-block-gallery:not(.alignwide):not(.alignfull),
body.page .wp-block-post-content > .wp-block-video:not(.alignwide):not(.alignfull),
body.page .wp-block-post-content > .wp-block-cover:not(.alignwide):not(.alignfull),
body.page .wp-block-post-content > hr {
    width: min(
        calc(100% - (var(--tt-page-side) * 2)),
        var(--tt-page-max)
    );
    margin-left: auto;
    margin-right: auto;
}

body.page .wp-block-post-content > .alignwide {
    width: min(
        calc(100% - (var(--tt-page-side) * 2)),
        var(--tt-page-wide)
    );
    max-width: var(--tt-page-wide);
    margin-left: auto;
    margin-right: auto;
}

body.page .wp-block-post-content > .alignfull {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* ------------------------------------------------------------
   CONTENITORE STANDARD RIUTILIZZABILE
   ------------------------------------------------------------ */

body.page .tt-container {
    box-sizing: border-box;
    width: min(
        calc(100% - (var(--tt-page-side) * 2)),
        var(--tt-page-max)
    ) !important;
    max-width: var(--tt-page-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.page .tt-section.tt-container {
    padding-left: 0;
    padding-right: 0;
}


/* ============================================================
   6. TIPOGRAFIA BASE
   ============================================================ */

body.page .wp-block-post-content p {
    margin-top: 0;
    margin-bottom: 1.35em;
}

body.page .wp-block-post-content .tt-text-justify,
.tt-text-justify {
    text-align: justify !important;
    text-justify: inter-word;
    hyphens: none;
    -webkit-hyphens: none;
}

body.page .wp-block-post-content h2 {
    position: relative;
    margin-top: clamp(44px, 5vw, 68px);
    margin-bottom: 19px;
    padding-top: 13px;
    color: var(--tt-page-navy);
    font-size: var(--tt-h2-size);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.015em;
}

body.page .wp-block-post-content h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--tt-page-orange);
}

body.page .wp-block-post-content h3 {
    margin-top: 34px;
    margin-bottom: 14px;
    color: var(--tt-page-navy);
    font-size: var(--tt-h3-size);
    line-height: 1.3;
    font-weight: 700;
}

body.page .wp-block-post-content h4,
body.page .wp-block-post-content h5,
body.page .wp-block-post-content h6 {
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--tt-page-navy);
    line-height: 1.35;
    font-weight: 700;
}

body.page .wp-block-post-content h4 { font-size: 1.08rem; }
body.page .wp-block-post-content h5,
body.page .wp-block-post-content h6 { font-size: 1rem; }

body.page .wp-block-post-content strong {
    color: var(--tt-page-navy);
    font-weight: 700;
}

body.page .wp-block-post-content a:not(.wp-element-button) {
    color: var(--tt-page-blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .2s ease;
}

body.page .wp-block-post-content a:not(.wp-element-button):hover {
    color: var(--tt-page-orange);
}


/* ============================================================
   7. LISTE
   ============================================================ */

body.page .wp-block-post-content ul,
body.page .wp-block-post-content ol {
    margin-top: 20px;
    margin-bottom: 30px;
    padding-left: 0;
    list-style: none;
}

body.page .wp-block-post-content li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 25px;
}

body.page .wp-block-post-content ul > li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tt-page-orange);
    transform: translateY(-50%);
}

body.page .wp-block-post-content ol { counter-reset: tt-page-list; }
body.page .wp-block-post-content ol > li { counter-increment: tt-page-list; }
body.page .wp-block-post-content ol > li::before {
    content: counter(tt-page-list);
    position: absolute;
    left: 0;
    top: .03em;
    color: var(--tt-page-orange);
    font-size: .85em;
    font-weight: 700;
}

body.page .wp-block-post-content li ul,
body.page .wp-block-post-content li ol {
    width: auto;
    margin: 10px 0 5px;
}


/* ============================================================
   8. COLONNE / MEDIA-TEXT / GROUP / COVER
   ============================================================ */

body.page .wp-block-post-content .wp-block-columns {
    gap: clamp(28px, 4vw, 64px);
    margin-top: 36px;
    margin-bottom: 36px;
}

body.page .wp-block-post-content .wp-block-column { min-width: 0; }
body.page .wp-block-post-content .wp-block-column > :first-child { margin-top: 0; }
body.page .wp-block-post-content .wp-block-column > :last-child  { margin-bottom: 0; }

body.page .wp-block-post-content .wp-block-media-text {
    gap: clamp(30px, 5vw, 72px);
    margin-top: 45px;
    margin-bottom: 45px;
}
body.page .wp-block-post-content
.wp-block-media-text .wp-block-media-text__content {
    padding: clamp(20px, 4vw, 52px);
}

body.page .wp-block-post-content .wp-block-group { box-sizing: border-box; }

body.page .wp-block-post-content .wp-block-group.has-background {
    padding: var(--tt-section-pad) var(--tt-page-side);
}

body.page .wp-block-post-content
.alignfull.wp-block-group > .wp-block-group__inner-container {
    width: min(
        calc(100% - (var(--tt-page-side) * 2)),
        var(--tt-page-max)
    );
    margin-inline: auto;
}

body.page .wp-block-post-content .wp-block-cover { min-height: 360px; }

body.page .wp-block-post-content .wp-block-cover__inner-container {
    width: min(
        calc(100% - (var(--tt-page-side) * 2)),
        var(--tt-page-max)
    );
    margin-inline: auto;
}


/* ============================================================
   9. IMMAGINI / GALLERY / CITAZIONI / TABELLE / HR
   ============================================================ */

body.page .wp-block-post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--tt-radius);
}

body.page .wp-block-post-content figure {
    margin-top: 30px;
    margin-bottom: 30px;
}

body.page .wp-block-post-content figcaption {
    margin-top: 9px;
    color: var(--tt-page-muted);
    font-size: .82rem;
    line-height: 1.45;
}

body.page .wp-block-post-content .wp-block-gallery {
    gap: clamp(12px, 2vw, 22px);
}

body.page .wp-block-post-content blockquote {
    margin-top: 34px;
    margin-bottom: 34px;
    padding: 9px 0 9px 24px;
    border-left: 3px solid var(--tt-page-orange);
    color: #435361;
}
body.page .wp-block-post-content blockquote p:last-child { margin-bottom: 0; }

body.page .wp-block-post-content .wp-block-table { overflow-x: auto; }

body.page .wp-block-post-content table {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
    border-collapse: collapse;
    font-size: .94rem;
}
body.page .wp-block-post-content th,
body.page .wp-block-post-content td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--tt-page-border);
    text-align: left;
    vertical-align: top;
}
body.page .wp-block-post-content th {
    color: var(--tt-page-navy);
    background: var(--tt-page-soft);
    font-weight: 700;
}

body.page .wp-block-post-content hr {
    margin-top: 48px;
    margin-bottom: 48px;
    border: 0;
    border-top: 1px solid var(--tt-page-border);
}


/* ============================================================
   10. BOTTONI
   ============================================================ */

body.page .wp-block-post-content .wp-block-buttons {
    gap: 10px;
    margin-top: 26px;
    margin-bottom: 30px;
}

body.page .wp-block-post-content .wp-element-button,
body.page .wp-block-post-content .wp-block-button__link {
    padding: 11px 19px;
    border: 0;
    border-radius: var(--tt-radius-sm);
    background: var(--tt-page-blue);
    color: #fff;
    font-size: .88rem;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color var(--tt-transition),
        transform var(--tt-transition);
}

body.page .wp-block-post-content .wp-element-button:hover,
body.page .wp-block-post-content .wp-block-button__link:hover {
    background: var(--tt-page-orange);
    color: #fff;
    transform: translateY(-1px);
}

body.page .wp-block-post-content
.wp-block-button.is-style-outline .wp-block-button__link {
    border: 1px solid var(--tt-page-blue);
    background: transparent;
    color: var(--tt-page-blue);
}
body.page .wp-block-post-content
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    border-color: var(--tt-page-orange);
    background: transparent;
    color: var(--tt-page-orange);
}


/* ============================================================
   11. SPAZIATURA TRA SEZIONI
   ============================================================ */

body.page .wp-block-post-content > .wp-block-group,
body.page .wp-block-post-content > .wp-block-columns,
body.page .wp-block-post-content > .wp-block-media-text,
body.page .wp-block-post-content > .wp-block-cover,
body.page .wp-block-post-content > .wp-block-gallery {
    margin-top: var(--tt-gap-section);
    margin-bottom: var(--tt-gap-section);
}

body.page .wp-block-post-content > :first-child { margin-top: 0; }
body.page .wp-block-post-content > :last-child  { margin-bottom: 0; }


/* ============================================================
   12. SEZIONI
   ============================================================ */

body.page .wp-block-post-content .tt-section,
body.page .wp-block-post-content .tt-section-light,
body.page .wp-block-post-content .tt-section-dark {
    padding: var(--tt-section-pad) var(--tt-page-side);
}
body.page .wp-block-post-content .tt-section-light { background: var(--tt-page-soft); }
body.page .wp-block-post-content .tt-section-dark {
    background: var(--tt-page-navy);
    color: #fff;
}
body.page .wp-block-post-content .tt-section-dark h2,
body.page .wp-block-post-content .tt-section-dark h3,
body.page .wp-block-post-content .tt-section-dark strong {
    color: #fff;
}


/* ============================================================
   13. COMPONENTE .tt-card  (card bianca)
   ============================================================ */

body.page .tt-card,
body.page .tt-contact-box,
body.page .tt-italy-map {
    box-sizing: border-box;
    height: 100%;
    padding: var(--tt-card-pad);
    background: var(--tt-page-white);
    border: 1px solid var(--tt-page-border);
    border-radius: var(--tt-radius);
    box-shadow: var(--tt-shadow);
    transition:
        transform var(--tt-transition),
        box-shadow var(--tt-transition),
        border-color var(--tt-transition);
}

body.page .tt-card:hover,
body.page .tt-contact-box:hover {
    transform: translateY(-3px);
    border-color: rgba(12, 77, 162, .25);
    box-shadow: var(--tt-shadow-hover);
}

body.page .tt-card h3,
body.page .tt-contact-box h3,
body.page .tt-italy-map h3 {
    margin: 0 0 12px;
    color: var(--tt-page-navy);
    font-size: 1.05rem;
    line-height: 1.3;
}

body.page .tt-card p,
body.page .tt-contact-box p {
    margin: 0 0 10px;
    color: var(--tt-page-text);
    font-size: .9rem;
    line-height: 1.6;
}

body.page .tt-card p:last-child,
body.page .tt-contact-box p:last-child {
    margin-bottom: 0;
}

body.page .tt-italy-map {
    min-height: 520px;
    padding: 25px;
}


/* ============================================================
   14. COMPONENTE .tt-feature
   ============================================================ */

body.page .tt-feature,
body.page .tt-soluzione-card,
body.page .tt-sales-card,
body.page .tt-divisione-punti > .wp-block-column {
    position: relative;
    box-sizing: border-box;
    padding: 24px 22px 22px;
    background: var(--tt-page-soft);
    border: 1px solid var(--tt-page-border);
    border-radius: var(--tt-radius);
    transition:
        transform var(--tt-transition),
        box-shadow var(--tt-transition),
        border-color var(--tt-transition);
}

body.page .tt-feature::before,
body.page .tt-soluzione-card::before,
body.page .tt-sales-card::before,
body.page .tt-divisione-punti > .wp-block-column::before {
    content: "";
    display: block;
    width: 30px;
    height: 3px;
    margin-bottom: 14px;
    background: var(--tt-page-orange);
}

body.page .tt-feature h3,
body.page .tt-soluzione-card h3,
body.page .tt-sales-card h3,
body.page .tt-divisione-punti h3 {
    margin: 0 0 7px;
    color: var(--tt-page-navy);
    font-size: 1rem;
    line-height: 1.28;
}

body.page .tt-feature p,
body.page .tt-soluzione-card p,
body.page .tt-sales-card p,
body.page .tt-divisione-punti p {
    margin: 0;
    color: var(--tt-page-muted);
    font-size: .88rem;
    line-height: 1.6;
}

body.page .tt-feature p + p,
body.page .tt-soluzione-card p + p,
body.page .tt-sales-card p + p {
    margin-top: 8px;
}

@media (hover: hover) {

    body.page .tt-feature:hover,
    body.page .tt-soluzione-card:hover,
    body.page .tt-sales-card:hover {
        transform: translateY(-3px);
        border-color: #cbd7df;
        box-shadow: var(--tt-shadow-hover);
    }
}


/* ------------------------------------------------------------
   CARD A PARI ALTEZZA
   ------------------------------------------------------------ */

body.page .tt-feature-equal {
    height: 100%;
}


/* ------------------------------------------------------------
   FEATURE CON ICONA
   ------------------------------------------------------------ */

body.page .tt-feature:has(.tt-material-icon)::before,
body.page .tt-soluzione-card:has(.tt-material-icon)::before,
body.page .tt-sales-card:has(.tt-material-icon)::before,
body.page .tt-divisione-punti > .wp-block-column:has(.tt-material-icon)::before {
    content: none;
}

body.page .tt-feature:has(.tt-material-icon) h3,
body.page .tt-soluzione-card:has(.tt-material-icon) h3,
body.page .tt-sales-card:has(.tt-material-icon) h3,
body.page .tt-divisione-punti > .wp-block-column:has(.tt-material-icon) h3 {
    text-align: center;
}


/* ------------------------------------------------------------
   VARIAZIONI COMMERCIALI
   ------------------------------------------------------------ */

body.page .tt-sales-luca::before { background: var(--tt-page-blue); }
body.page .tt-sales-francesco::before { background: var(--tt-page-navy); }

body.page .tt-sales-role {
    margin-top: 0 !important;
    color: var(--tt-page-muted);
    font-size: .75rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

body.page .tt-sales-note {
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--tt-page-border);
    color: var(--tt-page-muted);
    font-size: .76rem;
    line-height: 1.55;
}

body.page .tt-sales-section .tt-sales-card {
    background: var(--tt-page-white);
}


/* ============================================================
   15. COMPONENTE .tt-cta
   ============================================================ */

body.page .tt-cta,
body.page .tt-contact-cta,
body.page .tt-divisione-cta,
body.page .tt-hermes-demo {
    box-sizing: border-box;
    width: min(
        calc(100% - (var(--tt-page-side) * 2)),
        860px
    );
    margin: var(--tt-gap-section) auto;
    padding: clamp(30px, 5vw, 48px);
    background: var(--tt-page-soft);
    border: 1px solid var(--tt-page-border);
    border-radius: var(--tt-radius);
    box-shadow: var(--tt-shadow);
}

body.page .tt-cta.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.page .tt-contact-cta.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.page .tt-divisione-cta.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.page .tt-hermes-demo.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.page .tt-cta::before,
body.page .tt-contact-cta::before,
body.page .tt-divisione-cta::before,
body.page .tt-hermes-demo::before {
    content: "";
    display: block;
    width: 38px;
    height: 3px;
    margin-bottom: 18px;
    background: var(--tt-page-orange);
}

body.page .tt-cta > h2,
body.page .tt-cta > h3,
body.page .tt-contact-cta > h2,
body.page .tt-divisione-cta > h2,
body.page .tt-hermes-demo > h2,
body.page .wp-block-post-content h2.tt-divisione-cta-title,
body.page .wp-block-post-content h3.tt-divisione-cta-title,
body.page .tt-divisione-cta-title,
body.page .tt-servizi-cta-title {
    margin: 0 0 12px;
    padding-top: 0 !important;
    text-align: left !important;
    color: var(--tt-page-navy);
    font-size: clamp(1.65rem, 2.6vw, 2.35rem);
    line-height: 1.15;
    font-weight: 700;
}

body.page .tt-cta > h2::before,
body.page .tt-cta > h3::before,
body.page .tt-contact-cta > h2::before,
body.page .tt-divisione-cta > h2::before,
body.page .tt-hermes-demo > h2::before,
body.page .wp-block-post-content h2.tt-divisione-cta-title::before,
body.page .wp-block-post-content h3.tt-divisione-cta-title::before {
    content: none;
}

body.page .tt-cta p,
body.page .tt-contact-cta p,
body.page .tt-divisione-cta p,
body.page .tt-hermes-demo p {
    margin: 0 0 12px;
    color: var(--tt-page-muted);
    font-size: .92rem;
    line-height: 1.55;
}

body.page .tt-cta p:last-child,
body.page .tt-contact-cta p:last-child,
body.page .tt-divisione-cta p:last-child,
body.page .tt-hermes-demo p:last-child {
    margin-bottom: 0;
}

body.page .tt-cta .wp-block-buttons,
body.page .tt-contact-cta .wp-block-buttons,
body.page .tt-divisione-cta .wp-block-buttons,
body.page .tt-hermes-demo .wp-block-buttons {
    margin-top: 18px;
    margin-bottom: 0;
}

body.page .tt-contact-cta .wpcf7,
body.page .tt-hermes-demo .wpcf7 {
    margin-top: 22px;
}


/* ============================================================
   16. COMPONENTE .tt-material-icon
   ============================================================ */

.tt-material-icon {
    display: block;
    width: var(--tt-icon-size, 55px);
    height: var(--tt-icon-size, 55px);
    margin: 0 auto 12px;
    color: var(--tt-page-orange, #ff7a18) !important;
}

.tt-material-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit !important;
}

.tt-material-icon svg path {
    fill: currentColor !important;
}

.tt-material-icon-lg {
    width: var(--tt-icon-size-lg, 70px);
    height: var(--tt-icon-size-lg, 70px);
    margin-bottom: 16px;
}


/* ============================================================
   17. MEDIA UNIVERSALE
   ============================================================ */

body.page .wp-block-post-content .tt-media {
    align-items: center;
    gap: clamp(30px, 5vw, 72px);
}

body.page .wp-block-post-content .tt-media .wp-block-image {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
}

body.page .wp-block-post-content .tt-media .wp-block-image img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    border-radius: var(--tt-radius);
    box-shadow: var(--tt-shadow);
}


/* ============================================================
   18. CONTACT FORM 7
   ============================================================ */

body.page .wpcf7 {
    width: 100%;
    max-width: 760px;
    margin: 32px auto 0;
}

body.page .wpcf7 form { width: 100%; }

body.page .wpcf7 input[type="text"],
body.page .wpcf7 input[type="email"],
body.page .wpcf7 input[type="tel"],
body.page .wpcf7 input[type="url"],
body.page .wpcf7 input[type="number"],
body.page .wpcf7 input[type="date"],
body.page .wpcf7 select,
body.page .wpcf7 textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--tt-page-border);
    border-radius: var(--tt-radius-sm);
    background: #fff;
    color: var(--tt-page-text);
    font: inherit;
    font-size: .94rem;
    line-height: 1.4;
    outline: none;
    transition:
        border-color var(--tt-transition),
        box-shadow var(--tt-transition),
        background-color var(--tt-transition);
}

body.page .wpcf7 textarea { min-height: 145px; resize: vertical; }

body.page .wpcf7 input::placeholder,
body.page .wpcf7 textarea::placeholder { color: #89949d; opacity: 1; }

body.page .wpcf7 input:focus,
body.page .wpcf7 select:focus,
body.page .wpcf7 textarea:focus {
    border-color: var(--tt-page-blue);
    box-shadow: 0 0 0 3px rgba(12, 77, 162, .08);
}

body.page .wpcf7 label {
    display: block;
    margin-bottom: 7px;
    color: var(--tt-page-navy);
    font-size: .88rem;
    line-height: 1.35;
    font-weight: 700;
}

body.page .wpcf7 form > p { width: 100%; margin: 0 0 18px; }

body.page .wpcf7 .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    margin-top: 7px;
}

body.page .wpcf7 .wpcf7-checkbox,
body.page .wpcf7 .wpcf7-radio {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
body.page .wpcf7 .wpcf7-list-item { margin: 0; }
body.page .wpcf7 .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    color: var(--tt-page-text);
    font-size: .88rem;
    font-weight: 400;
    cursor: pointer;
}
body.page .wpcf7 input[type="checkbox"],
body.page .wpcf7 input[type="radio"] {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: var(--tt-page-blue);
}

body.page .wpcf7 .wpcf7-acceptance {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--tt-page-border);
    border-radius: var(--tt-radius-sm);
    background: var(--tt-page-soft);
}
body.page .wpcf7 .wpcf7-acceptance .wpcf7-list-item { width: 100%; }
body.page .wpcf7 .wpcf7-acceptance label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--tt-page-text);
    font-size: .82rem;
    line-height: 1.5;
    font-weight: 400;
}

body.page .wpcf7 input[type="submit"],
body.page .wpcf7 button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 22px;
    border: 0;
    border-radius: var(--tt-radius-sm);
    background: var(--tt-page-blue);
    color: #fff;
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color var(--tt-transition),
        transform var(--tt-transition),
        opacity var(--tt-transition);
}
body.page .wpcf7 input[type="submit"]:hover,
body.page .wpcf7 button[type="submit"]:hover {
    background: var(--tt-page-orange);
    transform: translateY(-1px);
}
body.page .wpcf7 input[type="submit"]:disabled,
body.page .wpcf7 button[type="submit"]:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

body.page .wpcf7 .wpcf7-spinner {
    margin: 0 0 0 12px;
    vertical-align: middle;
}

body.page .wpcf7 .wpcf7-not-valid { border-color: #b42318; }
body.page .wpcf7 .wpcf7-not-valid:focus {
    border-color: #b42318;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, .08);
}
body.page .wpcf7 .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: #b42318;
    font-size: .78rem;
    line-height: 1.4;
}

body.page .wpcf7 .wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 13px 15px !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-radius: var(--tt-radius-sm);
    font-size: .84rem;
    line-height: 1.5;
}
body.page .wpcf7 form.sent .wpcf7-response-output {
    border-color: #2f7d32 !important;
    background: #f2f8f2;
    color: #285f2b;
}
body.page .wpcf7 form.invalid .wpcf7-response-output,
body.page .wpcf7 form.unaccepted .wpcf7-response-output,
body.page .wpcf7 form.payment-required .wpcf7-response-output {
    border-color: var(--tt-page-orange) !important;
    background: #fff8f1;
    color: #7a431b;
}
body.page .wpcf7 form.failed .wpcf7-response-output,
body.page .wpcf7 form.aborted .wpcf7-response-output {
    border-color: #b42318 !important;
    background: #fff5f4;
    color: #8e1f17;
}


/* ============================================================
   19. SOLO LAYOUT — GRIGLIE E DIPENDENZE DI PAGINA
   ============================================================ */


body.page .tt-card-grid,
body.page .tt-feature-grid,
body.page .tt-feature-grid-equal,
body.page .tt-servizi-grid {
    gap: 18px !important;
}

body.page .wp-block-post-content .tt-feature-grid-equal {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px !important;
}

body.page .wp-block-post-content
.tt-feature-grid-equal > .wp-block-column {
    width: auto !important;
    min-width: 0;
    height: 100%;
    margin: 0 !important;
    flex-basis: auto !important;
}


/* PAGINA SERVIZI — LISTE */

body.page .wp-block-post-content
.tt-servizi-grid .tt-feature ul {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

body.page .wp-block-post-content
.tt-servizi-grid .tt-feature li {
    position: relative;
    margin: 0;
    padding: 0 0 16px 30px;
    line-height: 1.55;
}

body.page .wp-block-post-content
.tt-servizi-grid .tt-feature li:last-child {
    padding-bottom: 0;
}

body.page .wp-block-post-content
.tt-servizi-grid .tt-feature ul > li::before {
    content: "›";
    position: absolute;
    left: 0;
    top: -.03em;

    width: auto;
    height: auto;

    border: 0;
    border-radius: 0;
    background: none;

    color: var(--tt-page-orange);

    font-size: 1.45em;
    font-weight: 700;
    line-height: 1;

    transform: none;
}


/* ------------------------------------------------------------
   PAGINA SERVIZI — INTRO
   ------------------------------------------------------------ */

body.page .wp-block-post-content > .tt-servizi-intro {
    display: grid !important;
    grid-template-columns: minmax(0, 36fr) minmax(0, 64fr);
    align-items: center;
    gap: clamp(30px, 5vw, 72px) !important;

    margin-top: 0;
    margin-bottom: 42px;
}

body.page .wp-block-post-content
.tt-servizi-intro > .wp-block-column {
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    flex-basis: auto !important;
}

body.page .wp-block-post-content
.tt-servizi-intro .wp-block-image {
    width: 100%;
    margin: 0 !important;
}

body.page .wp-block-post-content
.tt-servizi-intro .wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

body.page .wp-block-post-content
.tt-servizi-intro .wp-block-column:last-child h2 {
    margin-top: 0;
}


/* ============================================================
   PAGINA SERVIZI
   ============================================================ */

body.page .wp-block-post-content > .tt-servizi-intro,
body.page .wp-block-post-content > .tt-servizi-main,
body.page .wp-block-post-content > .tt-servizi-cta {
    box-sizing: border-box;

    width: min(
        calc(100% - (var(--tt-page-side) * 2)),
        var(--tt-page-max)
    );

    max-width: var(--tt-page-max);

    margin-left: auto !important;
    margin-right: auto !important;
}

body.page .wp-block-post-content > .tt-servizi-intro {
    display: grid;

    grid-template-columns:
        minmax(320px, 36fr)
        minmax(0, 64fr);

    align-items: center;

    gap: clamp(48px, 5vw, 72px);

    margin-top: 0 !important;
    margin-bottom: 28px !important;

    padding: 0 !important;
}

body.page .tt-servizi-intro__image {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}

body.page .tt-servizi-intro__image img {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    margin: 0;
    padding: 0;

    border-radius: 10px;
}

body.page .tt-servizi-intro__content {
    min-width: 0;
    max-width: none;

    margin: 0;
    padding: 0;
}

body.page .tt-servizi-intro__line { display: none !important; }

body.page .tt-servizi-intro__content h2 {
    margin: 0 0 22px !important;

    color: var(--tt-page-navy);

    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1.08;
    font-weight: 700;
}

body.page .tt-servizi-intro__content p {
    margin: 0 0 16px !important;

    color: var(--tt-page-navy);

    font-size: 1rem;
    line-height: 1.7;

    text-align: justify;
    text-justify: inter-word;
}

body.page .tt-servizi-intro__content p:last-child {
    margin-bottom: 0 !important;
}

body.page .wp-block-post-content > .tt-servizi-main {
    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding: 0 !important;
}

body.page .tt-servizi-main__header {
    margin: 0 0 32px !important;
    padding: 0;
}

body.page .tt-servizi-main__line { display: none !important; }

body.page .tt-servizi-main__header h2 {
    margin-top: 0 !important;
    margin-bottom: 12px !important;

    color: var(--tt-page-navy);

    font-size: clamp(2rem, 3vw, 2.65rem);
    line-height: 1.1;
    font-weight: 700;
}

body.page .tt-servizi-main__header p {
    margin: 0 !important;

    color: var(--tt-page-navy);

    font-size: 1rem;
    line-height: 1.6;
}

body.page .tt-servizi-grid {
    display: grid !important;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 32px;

    width: 100%;

    margin: 0 !important;
    padding: 0 !important;
}

body.page .tt-servizio-card {
    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    min-width: 0;

    margin: 0 !important;

    padding: 36px 38px;

    background: var(--tt-page-soft);

    border: 1px solid var(--tt-page-border);
    border-radius: 12px;

    box-shadow: 0 4px 16px rgba(7, 31, 51, .04);

    transition:
        transform var(--tt-transition),
        box-shadow var(--tt-transition),
        border-color var(--tt-transition);
}

@media (hover: hover) {
    body.page .tt-servizio-card:hover {
        transform: translateY(-3px);
        border-color: #cbd7df;
        box-shadow: var(--tt-shadow-hover);
    }
}

body.page .tt-servizio-card .tt-material-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    margin: 0 auto 18px !important;

    color: var(--tt-page-orange);
}

body.page .tt-servizio-card .tt-material-icon svg {
    display: block;

    width: 54px;
    height: 54px;

    fill: currentColor;
}

body.page .tt-servizio-card h3 {
    margin: 0 0 22px !important;

    color: var(--tt-page-navy);

    text-align: center;

    font-size: 1.08rem;
    line-height: 1.35;
    font-weight: 700;
}

body.page .tt-servizio-card ul {
    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

body.page .tt-servizio-card ul > li {
    position: relative;

    margin: 0 0 14px !important;

    padding: 0 0 0 28px !important;

    list-style: none !important;

    color: var(--tt-page-navy);

    font-size: 1rem;
    line-height: 1.55;
}

body.page .tt-servizio-card ul > li:last-child {
    margin-bottom: 0 !important;
}

body.page .tt-servizio-card ul > li::marker {
    content: "" !important;
    font-size: 0 !important;
}

body.page .tt-servizio-card ul > li::before {
    content: "›" !important;

    position: absolute;

    left: 2px;
    top: 0;

    display: block;

    color: var(--tt-page-orange) !important;

    font-size: 1.5rem;
    line-height: 1.35;
    font-weight: 700;
}

body.page .wp-block-post-content > .tt-servizi-cta {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 48px;

    margin-top: 42px !important;
    margin-bottom: 30px !important;

    padding: 32px 46px !important;

    background: var(--tt-page-soft);

    border: 1px solid var(--tt-page-border);
    border-radius: 12px;

    box-shadow: 0 4px 16px rgba(7, 31, 51, .04);
}

body.page .tt-servizi-cta__content {
    min-width: 0;
    max-width: 850px;

    margin: 0;
    padding: 0;
}

body.page .tt-servizi-cta__line { display: none !important; }

body.page .tt-servizi-cta__content h2 {
    margin: 0 0 8px !important;

    color: var(--tt-page-navy);

    font-size: clamp(1.3rem, 1.7vw, 1.6rem);
    line-height: 1.2;
    font-weight: 700;
}

body.page .tt-servizi-cta__content p {
    margin: 0 !important;

    color: var(--tt-page-navy);

    font-size: 1rem;
    line-height: 1.55;
}

body.page .tt-servizi-cta__action {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    margin: 0;
    padding: 0;
}

body.page .tt-servizi-cta__button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 48px;

    padding: 0 22px;

    background: var(--tt-page-blue);

    border-radius: 6px;

    color: #fff !important;

    font-size: 0.95rem;
    line-height: 1;
    font-weight: 700;

    text-decoration: none !important;

    white-space: nowrap;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

body.page .tt-servizi-cta__button:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

body.page .wp-block-post-content > .tt-servizi-cta:last-child {
    margin-bottom: 30px !important;
}


/* ============================================================
   SEZIONE RETE COMMERCIALE
   ============================================================ */

body.page .tt-sales-section {
    box-sizing: border-box;
    margin-top: 55px;
    margin-bottom: var(--tt-gap-section);
    padding: var(--tt-section-pad) var(--tt-page-side);
    background: var(--tt-page-soft);
}

body.page .tt-sales-section > .wp-block-group {
    width: min(100%, var(--tt-page-max));
    margin-inline: auto;
}

body.page .tt-sales-section h2 { margin-top: 0; }

body.page .tt-sales-layout {
    align-items: center;
    gap: clamp(40px, 6vw, 85px);
    margin-top: 40px;
}

body.page .tt-map-placeholder {
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #9ba7af;
    border: 1px dashed var(--tt-page-border);
    border-radius: var(--tt-radius-sm);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
}

body.page .tt-map-legend { margin-top: 20px; }

body.page .tt-map-legend p {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 7px 0;
    font-size: .8rem;
}

body.page .tt-sales-dot {
    display: inline-block;
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

body.page .tt-sales-dot-andrea    { background: var(--tt-page-orange); }
body.page .tt-sales-dot-luca      { background: var(--tt-page-blue); }
body.page .tt-sales-dot-francesco { background: var(--tt-page-navy); }

body.page .tt-page-intro {
    max-width: 900px;
    color: var(--tt-page-muted);
    font-size: 1.08rem;
    line-height: 1.65;
}

body.page .tt-contact-main {
    align-items: stretch;
    gap: 18px;
    margin-top: 38px;
    margin-bottom: var(--tt-gap-section);
}

body.page .wp-block-embed-youtube {
    width: min(
        calc(100% - (var(--tt-page-side) * 2)),
        1000px
    );
    margin: 20px auto clamp(45px, 6vw, 70px);
}

body.page .wp-block-embed-youtube .wp-block-embed__wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--tt-radius);
    background: #000;
    box-shadow: var(--tt-shadow);
}

body.page .wp-block-embed-youtube iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

body.page .tt-hermes-section { align-items: center; }
body.page .tt-hermes-section .wp-block-image { margin: 0; }
body.page .tt-hermes-section .wp-block-image img {
    width: 100%;
    height: auto;
    border-radius: var(--tt-radius);
    box-shadow: var(--tt-shadow);
}
body.page .tt-hermes-section h3 { margin-top: 0; }
body.page .tt-hermes-section h3 + p { margin-top: 0; }

body.page .tt-hermes-statistics {
    margin-top: var(--tt-gap-section);
    margin-bottom: var(--tt-gap-section);
}
body.page .tt-hermes-statistics .wp-block-gallery { margin-top: 28px; }
body.page .tt-hermes-statistics .wp-block-gallery .wp-block-image {
    overflow: hidden;
    border: 1px solid var(--tt-page-border);
    border-radius: var(--tt-radius);
    background: #fff;
    box-shadow: var(--tt-shadow);
}
body.page .tt-hermes-statistics .wp-block-gallery .wp-block-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.page .tt-divisione-intro { margin-top: 10px; }
body.page .tt-divisione-intro .wp-block-image {
    margin: 0;
    text-align: center;
}
body.page .tt-divisione-intro .wp-block-image img {
    display: block;
    width: 100%;
    max-width: 440px;
    height: auto;
    margin: 0 auto;
}
body.page .tt-divisione-intro .tt-text-justify {
    margin-top: 0;
    margin-bottom: 26px;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--tt-page-navy);
}

body.page .tt-divisione-punti {
    gap: 18px !important;
    margin-top: 28px;
    margin-bottom: 0;
}

body.page .tt-soluzioni-divisione { margin-top: 54px; }

body.page .tt-soluzioni-grid {
    gap: 18px !important;
    margin-top: 28px;
    margin-bottom: 0;
}


/* ============================================================
   PAGINA ASSISTENZA
   ============================================================ */

body.page .wp-block-post-content > .tt-assistenza-hero,
body.page .wp-block-post-content > .tt-assistenza-contatti,
body.page .wp-block-post-content > .tt-customer-care {
    box-sizing: border-box;

    width: min(
        calc(100% - (var(--tt-page-side) * 2)),
        var(--tt-page-max)
    );

    max-width: var(--tt-page-max);

    margin-left: auto !important;
    margin-right: auto !important;
}

body.page .wp-block-post-content > .tt-assistenza-hero {
    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, .95fr);

    align-items: center;

    gap: clamp(42px, 5vw, 68px);

    margin-top: 0 !important;
    margin-bottom: 72px !important;

    padding: 0 !important;
}

body.page .tt-assistenza-hero__image {
    position: relative;

    width: 100%;
    height: 460px;

    margin: 0;
    padding: 0;

    overflow: hidden;

    border-radius: 12px;
}

body.page .tt-assistenza-hero__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    margin: 0;

    border-radius: inherit;

    box-shadow: none;
}

body.page .tt-assistenza-hero__content {
    min-width: 0;

    margin: 0;
    padding: 0;
}

body.page .tt-assistenza-hero__content h2 {
    margin: 0 0 22px !important;

    max-width: 520px;

    color: var(--tt-page-navy);

    font-size: clamp(2rem, 2.8vw, 2.65rem);
    line-height: 1.08;
    font-weight: 700;
}

body.page .tt-assistenza-hero__content p {
    max-width: 560px;

    margin: 0 0 16px !important;

    color: var(--tt-page-navy);

    font-size: 1rem;
    line-height: 1.7;

    text-align: justify;
    text-justify: inter-word;
}

body.page .tt-assistenza-hero__content p:last-child {
    margin-bottom: 0 !important;
}

body.page .wp-block-post-content > .tt-assistenza-contatti {
    margin-top: 0 !important;
    margin-bottom: 72px !important;

    padding: 0 !important;
}

body.page .tt-assistenza-contatti__header {
    max-width: 850px;

    margin: 0 0 40px !important;
    padding: 0;
}

body.page .tt-assistenza-contatti__header h2 {
    margin: 0 0 12px !important;

    color: var(--tt-page-navy);

    font-size: clamp(1.8rem, 2.5vw, 2.3rem);
    line-height: 1.1;
}

body.page .tt-assistenza-contatti__header p {
    margin: 0 !important;

    color: var(--tt-page-navy);

    font-size: 1rem;
    line-height: 1.6;
}

body.page .tt-assistenza-cards {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    align-items: stretch;

    gap: 40px;

    width: 100%;

    margin: 0;
    padding: 0;
}

body.page .tt-assistenza-card {
    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    min-width: 0;

    margin: 0;

    padding: 38px 40px;

    background: var(--tt-page-soft);

    border: 1px solid var(--tt-page-border);
    border-radius: 12px;

    box-shadow: 0 4px 16px rgba(7, 31, 51, .04);

    transition:
        transform var(--tt-transition),
        box-shadow var(--tt-transition),
        border-color var(--tt-transition);
}

@media (hover: hover) {
    body.page .tt-assistenza-card:hover {
        transform: translateY(-3px);
        border-color: #cbd7df;
        box-shadow: var(--tt-shadow-hover);
    }
}

body.page .tt-assistenza-card .tt-material-icon-lg {
    width: var(--tt-icon-size-lg);
    height: var(--tt-icon-size-lg);

    margin: 0 auto 20px !important;

    color: var(--tt-page-orange);
}

body.page .tt-assistenza-card .tt-material-icon-lg svg {
    display: block;
    width: 100%;
    height: 100%;
}

body.page .tt-assistenza-card h3 {
    margin: 0 0 28px !important;

    color: var(--tt-page-navy);

    text-align: center;

    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 700;
}

body.page .tt-assistenza-info {
    margin: 0 0 20px;
}

body.page .tt-assistenza-info strong {
    display: block;

    margin: 0 0 3px;

    color: var(--tt-page-navy);

    font-size: .95rem;
    line-height: 1.4;
}

body.page .tt-assistenza-info span {
    display: block;

    color: var(--tt-page-muted);

    font-size: .9rem;
    line-height: 1.5;
}

body.page .tt-assistenza-links {
    display: flex;
    flex-direction: column;

    gap: 10px;

    margin-top: auto;
    padding-top: 20px;

    border-top: 1px solid var(--tt-page-border);
}

body.page .tt-assistenza-links a {
    color: var(--tt-page-blue) !important;

    font-size: .92rem;
    line-height: 1.45;
    font-weight: 600;

    text-decoration: none !important;
}

body.page .tt-assistenza-links a:hover {
    color: var(--tt-page-orange) !important;
}

body.page .tt-assistenza-links small {
    margin-left: 5px;

    color: var(--tt-page-muted);

    font-size: .78rem;
    font-weight: 400;
}

body.page .wp-block-post-content > .tt-customer-care {
    margin-top: 0 !important;
    margin-bottom: 40px !important;

    padding: 40px 46px !important;

    background: var(--tt-page-soft);

    border: 1px solid var(--tt-page-border);
    border-radius: 12px;

    box-shadow: 0 4px 16px rgba(7, 31, 51, .04);
}

body.page .tt-customer-care__intro { margin: 0 0 22px; }
body.page .tt-customer-care__intro h2 { margin: 0 0 8px !important; }

body.page .tt-customer-care__claim {
    margin: 0 !important;

    color: var(--tt-page-blue);

    font-size: 1.05rem;
    line-height: 1.5;
    font-style: italic;
    font-weight: 700;
}

body.page .tt-customer-care__content p {
    margin: 0 0 15px !important;

    color: var(--tt-page-navy);

    font-size: 1rem;
    line-height: 1.7;

    text-align: justify;
    text-justify: inter-word;
}

body.page .tt-customer-care__content p:last-child {
    margin-bottom: 0 !important;
}


/* ============================================================
   PAGINA CATALOGO
   ============================================================ */

body.page .wp-block-post-content > .tt-catalogo-intro,
body.page .wp-block-post-content > .tt-catalogo-main,
body.page .wp-block-post-content > .tt-catalogo-cta {
    box-sizing: border-box;

    width: min(
        calc(100% - (var(--tt-page-side) * 2)),
        var(--tt-page-max)
    );

    max-width: var(--tt-page-max);

    margin-left: auto !important;
    margin-right: auto !important;
}


/* ------------------------------------------------------------
   INTRO
   Immagine verticale + testo
   ------------------------------------------------------------ */

body.page .wp-block-post-content > .tt-catalogo-intro {
    display: grid;

    grid-template-columns:
        minmax(0, 340px)
        minmax(0, 1fr);

    align-items: center;

    gap: clamp(42px, 5vw, 68px);

    margin-top: 0 !important;
    margin-bottom: 72px !important;

    padding: 0 !important;
}

body.page .tt-catalogo-intro__image {
    width: 100%;

    display: flex;
    justify-content: center;

    margin: 0;
    padding: 0;
}

body.page .tt-catalogo-intro__image img {
    display: block;

    width: 100%;
    max-width: 340px;
    height: auto;

    margin: 0;

    border-radius: 12px;
    box-shadow: var(--tt-shadow);
}

body.page .tt-catalogo-intro__content {
    min-width: 0;

    margin: 0;
    padding: 0;
}

body.page .tt-catalogo-intro__content h2 {
    margin: 0 0 22px !important;

    color: var(--tt-page-navy);

    font-size: clamp(2rem, 2.8vw, 2.65rem);
    line-height: 1.08;
    font-weight: 700;
}

body.page .tt-catalogo-intro__content p {
    margin: 0 0 16px !important;

    color: var(--tt-page-navy);

    font-size: 1rem;
    line-height: 1.7;

    text-align: justify;
    text-justify: inter-word;
}

body.page .tt-catalogo-intro__content p:last-child {
    margin-bottom: 0 !important;
}


/* ------------------------------------------------------------
   MAIN + HEADER
   ------------------------------------------------------------ */

body.page .wp-block-post-content > .tt-catalogo-main {
    margin-top: 0 !important;
    margin-bottom: 64px !important;

    padding: 0 !important;
}

body.page .tt-catalogo-main__header {
    max-width: 850px;

    margin: 0 0 40px !important;
    padding: 0;
}

body.page .tt-catalogo-main__header h2 {
    margin: 0 0 12px !important;

    color: var(--tt-page-navy);

    font-size: clamp(1.8rem, 2.5vw, 2.3rem);
    line-height: 1.1;
}

body.page .tt-catalogo-main__header p {
    margin: 0 !important;

    color: var(--tt-page-navy);

    font-size: 1rem;
    line-height: 1.6;
}


/* ------------------------------------------------------------
   GRIGLIA
   ------------------------------------------------------------ */

body.page .tt-catalogo-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    align-items: stretch;

    gap: 32px;

    width: 100%;

    margin: 0;
    padding: 0;
}


/* ------------------------------------------------------------
   CARD
   ------------------------------------------------------------ */

body.page .tt-catalogo-card {
    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    min-width: 0;

    margin: 0;

    padding: 34px 36px;

    background: var(--tt-page-soft);

    border: 1px solid var(--tt-page-border);
    border-radius: 12px;

    box-shadow: 0 4px 16px rgba(7, 31, 51, .04);

    transition:
        transform var(--tt-transition),
        box-shadow var(--tt-transition),
        border-color var(--tt-transition);
}

@media (hover: hover) {
    body.page .tt-catalogo-card:hover {
        transform: translateY(-3px);
        border-color: #cbd7df;
        box-shadow: var(--tt-shadow-hover);
    }
}

body.page .tt-catalogo-card__icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    margin: 0 auto 20px;

    color: var(--tt-page-orange);
}

body.page .tt-catalogo-card__icon svg {
    display: block;

    width: 52px;
    height: 52px;
}

body.page .tt-catalogo-card__icon svg path {
    fill: currentColor !important;
}

body.page .tt-catalogo-card__tag {
    display: inline-block;
    align-self: center;

    margin: 0 auto 14px;

    padding: 4px 12px;

    background: #fff;

    border: 1px solid var(--tt-page-border);
    border-radius: 999px;

    color: var(--tt-page-muted);

    font-size: .72rem;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.page .tt-catalogo-card h3 {
    margin: 0 0 16px !important;

    color: var(--tt-page-navy);

    text-align: center;

    font-size: 1.15rem;
    line-height: 1.3;
    font-weight: 700;
}

body.page .tt-catalogo-card p {
    margin: 0 0 22px !important;

    color: var(--tt-page-muted);

    font-size: .94rem;
    line-height: 1.6;
}


/* ------------------------------------------------------------
   FOOTER CARD: formato + bottone
   ------------------------------------------------------------ */

body.page .tt-catalogo-card__footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 14px;

    margin-top: auto;
    padding-top: 22px;

    border-top: 1px solid var(--tt-page-border);
}

body.page .tt-catalogo-card__format {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: var(--tt-page-muted);

    font-size: .82rem;
    line-height: 1.4;
    font-weight: 600;
}

body.page .tt-catalogo-card__format svg {
    display: block;

    width: 16px;
    height: 16px;

    color: var(--tt-page-orange);
}

body.page .tt-catalogo-card__format svg path {
    fill: currentColor;
}

body.page .tt-catalogo-card__format span {
    color: var(--tt-page-navy);
    font-weight: 700;
}

body.page .tt-catalogo-card__button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 44px;

    padding: 0 20px;

    background: var(--tt-page-blue);

    border-radius: 6px;

    color: #fff !important;

    font-size: .9rem;
    line-height: 1;
    font-weight: 700;

    text-decoration: none !important;

    white-space: nowrap;

    transition:
        background-color var(--tt-transition),
        transform var(--tt-transition);
}

body.page .tt-catalogo-card__button:hover {
    background: var(--tt-page-orange);
    transform: translateY(-1px);
}

body.page .tt-catalogo-card__button span {
    display: inline-block;

    font-size: 1.1em;
    line-height: 1;
}


/* ------------------------------------------------------------
   CTA
   ------------------------------------------------------------ */

body.page .wp-block-post-content > .tt-catalogo-cta {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 48px;

    margin-top: 0 !important;
    margin-bottom: 40px !important;

    padding: 34px 46px !important;

    background: var(--tt-page-soft);

    border: 1px solid var(--tt-page-border);
    border-radius: 12px;

    box-shadow: 0 4px 16px rgba(7, 31, 51, .04);
}

body.page .tt-catalogo-cta__content {
    min-width: 0;
    max-width: 850px;

    margin: 0;
    padding: 0;
}

body.page .tt-catalogo-cta__content h2 {
    margin: 0 0 8px !important;

    color: var(--tt-page-navy);

    font-size: clamp(1.3rem, 1.7vw, 1.6rem);
    line-height: 1.2;
    font-weight: 700;
}

body.page .tt-catalogo-cta__content p {
    margin: 0 !important;

    color: var(--tt-page-navy);

    font-size: 1rem;
    line-height: 1.55;
}

body.page .tt-catalogo-cta__action {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    margin: 0;
    padding: 0;
}

body.page .tt-catalogo-cta__button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 48px;

    padding: 0 22px;

    background: var(--tt-page-blue);

    border-radius: 6px;

    color: #fff !important;

    font-size: .95rem;
    line-height: 1;
    font-weight: 700;

    text-decoration: none !important;

    white-space: nowrap;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

body.page .tt-catalogo-cta__button:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

body.page .tt-catalogo-cta__button span {
    display: inline-block;
    font-size: 1.1em;
    line-height: 1;
}


/* ============================================================
   20. RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 1024px) {

    body.page { --tt-page-side: 28px; }

    body.page .wp-block-post-content .wp-block-columns { gap: 30px; }
    body.page .tt-divisione-intro .wp-block-columns { gap: 36px !important; }

    body.page .tt-divisione-punti,
    body.page .tt-soluzioni-grid { flex-wrap: wrap !important; }

    body.page .tt-divisione-punti > .wp-block-column,
    body.page .tt-soluzioni-grid > .wp-block-column {
        flex-basis: calc(50% - 10px) !important;
    }
}


/* ============================================================
   21. RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 782px) {

    body.page { --tt-page-side: 18px; }

    body.page main .wp-block-post-title {
        margin-top: 32px;
        margin-bottom: 28px;
        padding-top: 13px;
        font-size: clamp(1.8rem, 9vw, 2.35rem);
    }
    body.page main .wp-block-post-title::before { width: 38px; }

    body.page .wp-block-post-content {
        padding-bottom: 55px;
        font-size: .98rem;
        line-height: 1.68;
    }

    body.page .wp-block-post-content h2 { margin-top: 38px; font-size: 1.4rem; }
    body.page .wp-block-post-content h3 { margin-top: 27px; font-size: 1.15rem; }

    body.page .wp-block-post-content .wp-block-columns {
        gap: 26px;
        margin-top: 32px;
        margin-bottom: 32px;
    }

    body.page .wp-block-post-content .tt-feature-grid-equal {
        grid-template-columns: 1fr;
    }

    body.page .wp-block-post-content .wp-block-media-text {
        gap: 20px;
        margin-top: 32px;
        margin-bottom: 32px;
    }
    body.page .wp-block-post-content
    .wp-block-media-text .wp-block-media-text__content {
        padding: 22px 0;
    }

    body.page .wp-block-post-content .wp-block-cover { min-height: 300px; }
    body.page .wp-block-post-content li { padding-left: 22px; }
    body.page .wp-block-post-content table { font-size: .84rem; }

    body.page .wp-block-post-content > .wp-block-group,
    body.page .wp-block-post-content > .wp-block-columns,
    body.page .wp-block-post-content > .wp-block-media-text,
    body.page .wp-block-post-content > .wp-block-cover,
    body.page .wp-block-post-content > .wp-block-gallery {
        margin-top: 34px;
        margin-bottom: 34px;
    }

    body.page .wpcf7 { max-width: none; margin-top: 24px; }
    body.page .wpcf7 input[type="text"],
    body.page .wpcf7 input[type="email"],
    body.page .wpcf7 input[type="tel"],
    body.page .wpcf7 input[type="url"],
    body.page .wpcf7 input[type="number"],
    body.page .wpcf7 input[type="date"],
    body.page .wpcf7 select,
    body.page .wpcf7 textarea {
        padding: 11px 12px;
        font-size: .92rem;
    }

    body.page .tt-hermes-demo { padding: 26px 20px; }
    body.page .wp-block-embed-youtube { margin-bottom: 38px; }
    body.page .tt-hermes-section .wp-block-image { margin-top: 10px; }

    body.page .tt-servizi-intro > .wp-block-column:first-child { position: static; }

    body.page .tt-contact-main { gap: 14px; margin-bottom: 45px; }
    body.page .tt-contact-box { padding: 21px; }

    body.page .tt-sales-section {
        margin-top: 40px;
        margin-bottom: 45px;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    body.page .tt-sales-layout { gap: 30px; margin-top: 30px; }
    body.page .tt-italy-map { min-height: 0; padding: 20px; }
    body.page .tt-map-placeholder { min-height: 330px; }
    body.page .tt-sales-card { padding: 18px; }

    body.page .tt-divisione-intro > .wp-block-columns { gap: 30px !important; }
    body.page .tt-divisione-intro .wp-block-image img { max-width: 330px; }
    body.page .tt-divisione-intro .tt-text-justify {
        text-align: left;
        font-size: .95rem;
        line-height: 1.7;
    }

    body.page .tt-divisione-punti > .wp-block-column,
    body.page .tt-soluzioni-grid > .wp-block-column {
        flex-basis: 100% !important;
    }

    body.page .tt-divisione-cta .wp-block-buttons {
        justify-content: flex-start !important;
        margin-top: 18px;
    }
}


/* ============================================================
   22. RESPONSIVE — SMARTPHONE PICCOLI
   ============================================================ */

@media (max-width: 480px) {

    body.page { --tt-page-side: 15px; }

    body.page main .wp-block-post-title { font-size: 1.8rem; }
    body.page .wp-block-post-content h2 { font-size: 1.3rem; }

    body.page .wp-block-post-content .wp-element-button,
    body.page .wp-block-post-content .wp-block-button__link {
        padding: 10px 16px;
        font-size: .84rem;
    }
}


/* ============================================================
   23. RESPONSIVE — SERVIZI / ASSISTENZA / CATALOGO — TABLET
   ============================================================ */

@media (max-width: 1000px) {

    /* Servizi */
    body.page .wp-block-post-content > .tt-servizi-intro {
        grid-template-columns:
            minmax(280px, 40fr)
            minmax(0, 60fr);

        gap: 40px;
    }

    body.page .tt-servizi-intro__content h2 {
        font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    }

    body.page .wp-block-post-content > .tt-servizi-cta {
        gap: 30px;
        padding-left: 34px !important;
        padding-right: 34px !important;
    }

    body.page .tt-servizi-grid { gap: 26px; }

    /* Assistenza */
    body.page .wp-block-post-content > .tt-assistenza-hero {
        grid-template-columns:
            minmax(0, .9fr)
            minmax(0, 1.1fr);

        gap: 38px;

        margin-bottom: 56px !important;
    }

    body.page .tt-assistenza-hero__image { height: 400px; }
    body.page .tt-assistenza-cards { gap: 28px; }
    body.page .tt-assistenza-card { padding: 32px 30px; }

    /* Catalogo */
    body.page .wp-block-post-content > .tt-catalogo-intro {
        grid-template-columns:
            minmax(0, 280px)
            minmax(0, 1fr);

        gap: 38px;

        margin-bottom: 56px !important;
    }

    body.page .tt-catalogo-intro__image img {
        max-width: 280px;
    }

    body.page .tt-catalogo-grid { gap: 26px; }
    body.page .tt-catalogo-card { padding: 30px 28px; }

    body.page .wp-block-post-content > .tt-catalogo-cta {
        gap: 30px;
        padding-left: 34px !important;
        padding-right: 34px !important;
    }
}


/* ============================================================
   24. RESPONSIVE — SERVIZI / ASSISTENZA / CATALOGO — MOBILE
   ============================================================ */

@media (max-width: 782px) {

    /* --------------------------------------------------------
       SERVIZI
       -------------------------------------------------------- */

    body.page .wp-block-post-content > .tt-servizi-intro,
    body.page .wp-block-post-content > .tt-servizi-main,
    body.page .wp-block-post-content > .tt-servizi-cta {
        width: calc(100% - 40px);
        max-width: none;
    }

    body.page .wp-block-post-content > .tt-servizi-intro {
        grid-template-columns: 1fr;
        gap: 26px;
        margin-bottom: 26px !important;
    }

    body.page .tt-servizi-intro__image { width: 100%; max-width: 520px; }

    body.page .tt-servizi-intro__content h2 {
        margin-bottom: 18px !important;
        font-size: clamp(1.8rem, 8vw, 2.3rem);
    }

    body.page .tt-servizi-intro__content p {
        text-align: left;
        line-height: 1.65;
    }

    body.page .tt-servizi-main__header { margin-bottom: 22px !important; }

    body.page .tt-servizi-main__header h2 {
        font-size: clamp(1.8rem, 8vw, 2.3rem);
    }

    body.page .tt-servizi-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    body.page .tt-servizio-card {
        padding: 28px 26px;
        border-radius: 10px;
    }

    body.page .tt-servizio-card .tt-material-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px !important;
    }

    body.page .tt-servizio-card .tt-material-icon svg {
        width: 46px;
        height: 46px;
    }

    body.page .tt-servizio-card h3 {
        margin-bottom: 18px !important;
        font-size: 1.04rem;
    }

    body.page .wp-block-post-content > .tt-servizi-cta {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 30px !important;
        margin-bottom: 24px !important;
        padding: 26px 24px !important;
    }

    body.page .tt-servizi-cta__action { justify-content: flex-start; }
    body.page .tt-servizi-cta__content h2 { font-size: 1.4rem; }


    /* --------------------------------------------------------
       ASSISTENZA
       -------------------------------------------------------- */

    body.page .wp-block-post-content > .tt-assistenza-hero,
    body.page .wp-block-post-content > .tt-assistenza-contatti,
    body.page .wp-block-post-content > .tt-customer-care {
        width: calc(100% - 36px);
        max-width: none;
    }

    body.page .wp-block-post-content > .tt-assistenza-hero {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 48px !important;
    }

    body.page .tt-assistenza-hero__image {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    body.page .tt-assistenza-hero__content h2 {
        font-size: clamp(1.8rem, 8vw, 2.25rem);
    }

    body.page .tt-assistenza-hero__content p { text-align: left; }

    body.page .tt-assistenza-contatti__header { margin-bottom: 28px !important; }

    body.page .tt-assistenza-cards {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    body.page .tt-assistenza-card {
        padding: 28px 26px;
        border-radius: 10px;
    }

    body.page .tt-assistenza-card .tt-material-icon-lg {
        width: 56px;
        height: 56px;
        margin-bottom: 16px !important;
    }

    body.page .tt-assistenza-card h3 {
        margin-bottom: 22px !important;
        font-size: 1.05rem;
    }

    body.page .wp-block-post-content > .tt-assistenza-contatti {
        margin-bottom: 44px !important;
    }

    body.page .wp-block-post-content > .tt-customer-care {
        padding: 28px 24px !important;
        border-radius: 10px;
    }

    body.page .tt-customer-care__content p { text-align: left; }


    /* --------------------------------------------------------
       CATALOGO
       -------------------------------------------------------- */

    body.page .wp-block-post-content > .tt-catalogo-intro,
    body.page .wp-block-post-content > .tt-catalogo-main,
    body.page .wp-block-post-content > .tt-catalogo-cta {
        width: calc(100% - 36px);
        max-width: none;
    }

    body.page .wp-block-post-content > .tt-catalogo-intro {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 48px !important;
    }

    body.page .tt-catalogo-intro__image {
        justify-content: center;
    }

    body.page .tt-catalogo-intro__image img {
        max-width: 260px;
    }

    body.page .tt-catalogo-intro__content h2 {
        font-size: clamp(1.8rem, 8vw, 2.25rem);
    }

    body.page .tt-catalogo-intro__content p { text-align: left; }

    body.page .wp-block-post-content > .tt-catalogo-main {
        margin-bottom: 44px !important;
    }

    body.page .tt-catalogo-main__header { margin-bottom: 28px !important; }

    body.page .tt-catalogo-main__header h2 {
        font-size: clamp(1.7rem, 7.5vw, 2.1rem);
    }


    /* Griglia e card */
    body.page .tt-catalogo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    body.page .tt-catalogo-card {
        padding: 28px 24px;
        border-radius: 10px;
    }

    body.page .tt-catalogo-card__icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }

    body.page .tt-catalogo-card__icon svg {
        width: 46px;
        height: 46px;
    }

    body.page .tt-catalogo-card h3 {
        margin-bottom: 14px !important;
        font-size: 1.08rem;
    }

    body.page .tt-catalogo-card p {
        margin-bottom: 18px !important;
        font-size: .92rem;
    }


    /* Footer: formato sopra, bottone sotto a tutta larghezza */
    body.page .tt-catalogo-card__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-top: 18px;
    }

    body.page .tt-catalogo-card__format {
        justify-content: center;
        font-size: .78rem;
    }

    body.page .tt-catalogo-card__button {
        justify-content: center;
        width: 100%;
        min-height: 42px;
        padding: 0 18px;
        font-size: .86rem;
    }


    /* CTA */
    body.page .wp-block-post-content > .tt-catalogo-cta {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 24px !important;
        padding: 26px 24px !important;
        border-radius: 10px;
    }

    body.page .tt-catalogo-cta__action { justify-content: flex-start; }
    body.page .tt-catalogo-cta__content h2 { font-size: 1.4rem; }
}


/* ============================================================
   25. ACCESSIBILITÀ — RIDUZIONE MOVIMENTO
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    body.page .wp-block-post-content *,
    body.page .wp-block-post-content *::before,
    body.page .wp-block-post-content *::after,
    body.page .wpcf7 *,
    body.page .wpcf7 *::before,
    body.page .wpcf7 *::after,
    body.page .tt-card,
    body.page .tt-feature,
    body.page .tt-soluzione-card,
    body.page .tt-sales-card,
    body.page .tt-servizio-card,
    body.page .tt-assistenza-card,
    body.page .tt-catalogo-card {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* ============================================================
   26. NEWS
   Usa direttamente il componente standard .tt-card
   ============================================================ */
   
   /* ============================================================
   CARD NEWS — identica a .tt-card di main.css
   Stessi valori: bordo, radius, hover, media 170px, body padding
   ============================================================ */


/* ------------------------------------------------------------
   1. GRIGLIA — tutte stessa altezza
   ------------------------------------------------------------ */

body.page .tt-news-page .tt-news-grid,
body.page .tt-news-page .tt-news-list,
body.page .tt-news-page .wp-block-post-template,
body.page .tt-news-page .wp-block-columns {
    align-items: stretch !important;
}

body.page .tt-news-page .tt-news-grid > *,
body.page .tt-news-page .tt-news-list > *,
body.page .tt-news-page .wp-block-post-template > li,
body.page .tt-news-page .wp-block-columns > .wp-block-column {
    display: flex !important;
    height: auto !important;
}


/* ------------------------------------------------------------
   2. CARD — identica a .tt-card
   ------------------------------------------------------------ */

body.page .tt-news-page .tt-news-card {
    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;
    height: 100%;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden;

    background: var(--tt-soft, #f4f6f8);

    border: 1px solid var(--tt-line, #dbe2e8) !important;
    border-radius: 14px !important;

    transition:
        transform .24s ease,
        box-shadow .24s ease,
        border-color .24s ease;
}

body.page .tt-news-page .tt-news-card:hover {
    transform: translateY(-5px);

    border-color: #c2ced8 !important;

    box-shadow:
        0 18px 42px
        rgba(7, 31, 51, .12) !important;
}


/* ------------------------------------------------------------
   3. IMMAGINE — identica a .tt-card-media
   ------------------------------------------------------------ */

body.page .tt-news-page .tt-news-image {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 100%;
    height: 170px;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden;

    background: #fff;

    border: 0 !important;
    border-bottom:
        1px solid
        var(--tt-line, #dbe2e8) !important;

    border-radius: 0 !important;
}

body.page .tt-news-page .tt-news-image a {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0 !important;
    padding: 0 !important;
}

body.page .tt-news-page .tt-news-image img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover !important;
    object-position: center;

    border-radius: 0 !important;

    transition:
        transform .28s ease;
}

body.page .tt-news-page
.tt-news-card:hover
.tt-news-image img {
    transform: scale(1.035);
}


/* ------------------------------------------------------------
   4. CORPO — identico a .tt-card-body
   ------------------------------------------------------------ */

body.page .tt-news-page
.tt-news-card > *:not(.tt-news-image):not(figure):not(img) {
    box-sizing: border-box;

    padding-left: 24px !important;
    padding-right: 24px !important;

    background:
        var(--tt-soft, #f4f6f8);
}


/* Primo elemento dopo l'immagine */

body.page .tt-news-page
.tt-news-card > *:not(.tt-news-image):not(figure):not(img):first-of-type {
    padding-top: 22px !important;
}


/* ------------------------------------------------------------
   5. DATA
   ------------------------------------------------------------ */

body.page .tt-news-page
.tt-news-card .wp-block-post-date,
body.page .tt-news-page
.tt-news-card time {
    display: block;

    flex: 0 0 auto;

    margin:
        0
        0
        16px !important;

    color: #667783;

    font-size: .85rem;
    line-height: 1.3;

    text-align: left;
}

body.page .tt-news-page
.tt-news-card .wp-block-post-date a,
body.page .tt-news-page
.tt-news-card time a {
    color: inherit;

    text-decoration: none;
}


/* ------------------------------------------------------------
   6. TITOLO — identico a .tt-card-body h3
   ------------------------------------------------------------ */

body.page .tt-news-page
.tt-news-card .wp-block-post-title,
body.page .tt-news-page
.tt-news-card h2,
body.page .tt-news-page
.tt-news-card h3 {
    position: relative;

    display: block;

    flex: 0 0 auto;

    margin:
        0
        0
        14px !important;

    padding:
        14px
        0
        0
        0 !important;

    color:
        var(--tt-navy, #071f33);

    font-size: 1.12rem !important;
    line-height: 1.25 !important;
    font-weight: 700;

    letter-spacing: 0 !important;
    word-spacing: 0 !important;

    text-align: left !important;
    text-transform: none !important;

    border: 0 !important;
}


/* Barretta arancione */

body.page .tt-news-page
.tt-news-card .wp-block-post-title::before,
body.page .tt-news-page
.tt-news-card h2::before,
body.page .tt-news-page
.tt-news-card h3::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    display: block;

    width: 30px;
    height: 3px;

    background:
        var(--tt-orange, #ff7a18);
}


body.page .tt-news-page
.tt-news-card .wp-block-post-title a,
body.page .tt-news-page
.tt-news-card h2 a,
body.page .tt-news-page
.tt-news-card h3 a {
    color: inherit !important;

    text-decoration: none !important;
}


/* ------------------------------------------------------------
   7. ESTRATTO

   Diventa flex per permettere al link di rimanere
   sempre sul fondo della card.
   ------------------------------------------------------------ */

body.page .tt-news-page
.tt-news-card .wp-block-post-excerpt {
    box-sizing: border-box;

    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;

    width: 100%;
    min-height: 0;

    margin: 0 !important;

    padding:
        0
        24px
        24px !important;

    background:
        var(--tt-soft, #f4f6f8);

    color: #15191e;

    font-size: .94rem;
    line-height: 1.5;

    text-align: left;
}


/* Testo estratto */

body.page .tt-news-page
.tt-news-card
.wp-block-post-excerpt__excerpt {
    display: -webkit-box;

    flex: 0 0 auto;

    margin:
        0
        0
        14px !important;

    padding: 0 !important;

    overflow: hidden;

    color: #15191e;

    font-size: .94rem;
    line-height: 1.5;

    text-align: left;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}


body.page .tt-news-page
.tt-news-card
.wp-block-post-excerpt__excerpt p {
    margin: 0 !important;
    padding: 0 !important;

    color: inherit;

    font-size: inherit;
    line-height: inherit;
}


body.page .tt-news-page
.tt-news-card p:empty {
    display: none !important;
}


/* ------------------------------------------------------------
   8. LINK "LEGGI LA NEWS"

   Il contenitore del link viene spinto sul fondo.
   ------------------------------------------------------------ */

body.page .tt-news-page
.tt-news-card
.wp-block-post-excerpt__more-text {
    flex: 0 0 auto;

    margin:
        auto
        0
        0 !important;

    padding:
        16px
        0
        0 !important;

    background:
        transparent !important;

    text-align: left;
}


body.page .tt-news-page
.tt-news-card
.wp-block-post-excerpt__more-link,
body.page .tt-news-page
.tt-news-card .wp-block-read-more,
body.page .tt-news-page
.tt-news-card .tt-news-more,
body.page .tt-news-page
.tt-news-card .read-more {
    display: inline-block;

    margin: 0 !important;
    padding: 0 !important;

    color:
        var(--tt-navy, #071f33) !important;

    font-size: .94rem;
    line-height: 1.5;
    font-weight: 800;

    text-decoration: none !important;

    transition:
        color .22s ease;
}


body.page .tt-news-page
.tt-news-card:hover
.wp-block-post-excerpt__more-link,
body.page .tt-news-page
.tt-news-card
.wp-block-post-excerpt__more-link:hover,
body.page .tt-news-page
.tt-news-card:hover
.wp-block-read-more,
body.page .tt-news-page
.tt-news-card
.wp-block-read-more:hover,
body.page .tt-news-page
.tt-news-card
.tt-news-more:hover,
body.page .tt-news-page
.tt-news-card
.read-more:hover {
    color:
        var(--tt-orange, #ff7a18) !important;
}


/* ------------------------------------------------------------
   9. TABLET
   ------------------------------------------------------------ */

@media (max-width: 1000px) {

    body.page .tt-news-page .tt-news-image {
        height: 165px;
    }
}


/* ------------------------------------------------------------
   10. MOBILE
   ------------------------------------------------------------ */

@media (max-width: 700px) {

    body.page .tt-news-page .tt-news-image {
        height: 190px;
    }
}


/* ------------------------------------------------------------
   11. MOBILE PICCOLO
   ------------------------------------------------------------ */

@media (max-width: 480px) {

    body.page .tt-news-page
    .tt-news-card > *:not(.tt-news-image):not(figure):not(img) {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    body.page .tt-news-page
    .tt-news-card .wp-block-post-excerpt {
        padding:
            0
            20px
            20px !important;
    }
}

/* ============================================================
   27. PAGINE LEGALI
   Cookie Policy / Privacy Policy
   ============================================================ */

body.page .wp-block-post-content > .tt-legal-page {
    box-sizing: border-box;

    width: min(
        calc(100% - (var(--tt-page-side) * 2)),
        1000px
    ) !important;

    max-width: 1000px !important;

    margin:
        0
        auto !important;

    padding:
        0
        0
        30px !important;
}


/* ------------------------------------------------------------
   CONTENUTO INTERNO
   Evita i vincoli generici a 1200px dei figli diretti
   ------------------------------------------------------------ */

body.page .tt-legal-page > * {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* ------------------------------------------------------------
   INTRO
   ------------------------------------------------------------ */

body.page .wp-block-post-content
.tt-legal-page > .tt-legal-intro {
    box-sizing: border-box;

    margin:
        0
        0
        52px !important;

    padding:
        28px
        32px !important;

    background:
        var(--tt-page-soft);

    border:
        1px solid
        var(--tt-page-border);

    border-left:
        4px solid
        var(--tt-page-orange);

    border-radius:
        var(--tt-radius);

    box-shadow:
        var(--tt-shadow);
}

body.page .tt-legal-intro > * {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.page .tt-legal-intro p {
    margin:
        0
        0
        15px !important;

    color:
        var(--tt-page-text);

    font-size:
        1rem;

    line-height:
        1.7;
}

body.page .tt-legal-intro p:last-child {
    margin-bottom: 0 !important;
}


/* ------------------------------------------------------------
   H2 PRINCIPALI
   ------------------------------------------------------------ */

body.page .tt-legal-page > h2 {
    position: relative;

    margin:
        58px
        0
        24px !important;

    padding:
        14px
        0
        0 !important;

    color:
        var(--tt-page-navy);

    font-size:
        clamp(1.45rem, 2vw, 1.85rem);

    line-height:
        1.2;

    font-weight:
        700;
}

body.page .tt-legal-page > h2::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 36px;
    height: 3px;

    background:
        var(--tt-page-orange);
}


/* ------------------------------------------------------------
   SEZIONE PRINCIPALE
   ------------------------------------------------------------ */

body.page .wp-block-post-content
.tt-legal-page > .tt-legal-section {
    box-sizing: border-box;

    margin:
        0
        0
        30px !important;

    padding:
        30px
        32px !important;

    background:
        var(--tt-page-white);

    border:
        1px solid
        var(--tt-page-border);

    border-radius:
        10px;

    box-shadow:
        0 5px 18px
        rgba(7, 31, 51, .045);
}

body.page .tt-legal-section > * {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* ------------------------------------------------------------
   TITOLI CATEGORIE
   ------------------------------------------------------------ */

body.page .tt-legal-section > h3 {
    position: relative;

    margin:
        0
        0
        18px !important;

    padding:
        0
        0
        12px !important;

    color:
        var(--tt-page-navy);

    font-size:
        1.25rem;

    line-height:
        1.3;

    font-weight:
        700;

    border-bottom:
        1px solid
        var(--tt-page-border);
}

body.page .tt-legal-section > h3::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -1px;

    width: 36px;
    height: 2px;

    background:
        var(--tt-page-orange);
}


/* ------------------------------------------------------------
   PARAGRAFI
   ------------------------------------------------------------ */

body.page .tt-legal-page p {
    color:
        var(--tt-page-text);

    font-size:
        1rem;

    line-height:
        1.72;
}

body.page .tt-legal-section > p {
    margin-bottom:
        16px !important;
}


/* ------------------------------------------------------------
   SINGOLI SERVIZI
   WordPress / WooCommerce / YouTube / Analytics
   ------------------------------------------------------------ */

body.page .wp-block-post-content
.tt-legal-section > .tt-legal-service {
    box-sizing: border-box;

    margin:
        20px
        0
        0 !important;

    padding:
        20px
        22px !important;

    background:
        var(--tt-page-soft);

    border:
        1px solid
        var(--tt-page-border);

    border-radius:
        7px;
}

body.page .tt-legal-service > * {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.page .tt-legal-service h4 {
    position: relative;

    margin:
        0
        0
        9px !important;

    padding-left:
        16px;

    color:
        var(--tt-page-navy);

    font-size:
        1rem;

    line-height:
        1.35;

    font-weight:
        700;
}

body.page .tt-legal-service h4::before {
    content: "";

    position: absolute;

    top: .18em;
    bottom: .18em;
    left: 0;

    width: 3px;

    background:
        var(--tt-page-orange);

    border-radius:
        2px;
}

body.page .tt-legal-service p {
    margin:
        0
        0
        10px !important;

    color:
        var(--tt-page-muted);

    font-size:
        .94rem;

    line-height:
        1.65;
}

body.page .tt-legal-service p:last-child {
    margin-bottom: 0 !important;
}


/* ------------------------------------------------------------
   TESTO NORMALE FUORI DALLE CARD
   ------------------------------------------------------------ */

body.page .tt-legal-page > p {
    margin:
        0
        0
        18px !important;
}


/* ------------------------------------------------------------
   H3 DEFINIZIONI
   ------------------------------------------------------------ */

body.page .tt-legal-page > h3 {
    margin:
        28px
        0
        8px !important;

    color:
        var(--tt-page-navy);

    font-size:
        1.05rem;

    line-height:
        1.35;

    font-weight:
        700;
}


/* ------------------------------------------------------------
   LISTE
   ------------------------------------------------------------ */

body.page .tt-legal-page > ul,
body.page .tt-legal-page > ol {
    width: 100% !important;

    margin:
        20px
        0
        28px !important;

    padding:
        0 !important;
}


/* ------------------------------------------------------------
   PREFERENZE COOKIE
   ------------------------------------------------------------ */

body.page .wp-block-post-content
.tt-legal-page > .tt-legal-preferences {
    box-sizing: border-box;

    margin:
        24px
        0
        10px !important;

    padding:
        20px
        22px !important;

    background:
        #eef4fb;

    border:
        1px solid
        rgba(12, 77, 162, .18);

    border-radius:
        var(--tt-radius);
}

body.page .tt-legal-preferences > * {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body.page .tt-legal-preferences a {
    color:
        var(--tt-page-blue) !important;

    font-weight:
        700;

    text-decoration:
        none !important;
}

body.page .tt-legal-preferences a:hover {
    color:
        var(--tt-page-orange) !important;
}


/* ------------------------------------------------------------
   TITOLARE
   ------------------------------------------------------------ */

body.page .wp-block-post-content
.tt-legal-page > .tt-legal-owner {
    box-sizing: border-box;

    margin:
        58px
        0
        0 !important;

    padding:
        30px
        32px !important;

    background:
        var(--tt-page-navy);

    color:
        #fff;

    border-radius:
        10px;
}

body.page .tt-legal-owner > * {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.page .tt-legal-owner h2 {
    margin:
        0
        0
        18px !important;

    padding:
        0 !important;

    color:
        #fff !important;

    font-size:
        clamp(1.35rem, 2vw, 1.7rem);

    line-height:
        1.2;
}

body.page .tt-legal-owner h2::before {
    content: none !important;
}

body.page .tt-legal-owner p,
body.page .tt-legal-owner strong {
    color:
        #fff !important;
}

body.page .tt-legal-owner p {
    margin-bottom:
        12px !important;
}

body.page .tt-legal-owner p:last-child {
    margin-bottom:
        0 !important;
}

body.page .tt-legal-owner a {
    color:
        #fff !important;

    text-decoration:
        underline;

    text-underline-offset:
        3px;
}

body.page .tt-legal-owner a:hover {
    color:
        var(--tt-page-orange) !important;
}


/* ------------------------------------------------------------
   VERSIONE / DATA
   ------------------------------------------------------------ */

body.page .wp-block-post-content
.tt-legal-page > .tt-legal-meta {
    box-sizing: border-box;

    display: flex;

    align-items: center;

    gap: 24px;

    margin:
        42px
        0
        0 !important;

    padding:
        18px
        22px !important;

    background:
        var(--tt-page-soft);

    border-top:
        1px solid
        var(--tt-page-border);
}

body.page .tt-legal-meta > * {
    width: auto !important;
    max-width: none !important;

    margin:
        0 !important;
}

body.page .tt-legal-meta p {
    margin:
        0 !important;

    color:
        var(--tt-page-muted);

    font-size:
        .82rem;

    line-height:
        1.5;
}


/* ============================================================
   PAGINE LEGALI — MOBILE
   ============================================================ */

@media (max-width: 782px) {

    body.page .wp-block-post-content > .tt-legal-page {
        width:
            calc(100% - 36px) !important;

        max-width:
            none !important;
    }

    body.page .wp-block-post-content
    .tt-legal-page > .tt-legal-intro {
        margin-bottom:
            38px !important;

        padding:
            22px
            20px !important;
    }

    body.page .tt-legal-page > h2 {
        margin-top:
            44px !important;

        font-size:
            1.38rem;
    }

    body.page .wp-block-post-content
    .tt-legal-page > .tt-legal-section {
        padding:
            24px
            20px !important;

        border-radius:
            8px;
    }

    body.page .wp-block-post-content
    .tt-legal-section > .tt-legal-service {
        padding:
            18px !important;
    }

    body.page .wp-block-post-content
    .tt-legal-page > .tt-legal-owner {
        margin-top:
            44px !important;

        padding:
            26px
            22px !important;
    }

    body.page .wp-block-post-content
    .tt-legal-page > .tt-legal-meta {
        flex-direction:
            column;

        align-items:
            flex-start;

        gap:
            4px;

        padding:
            16px
            18px !important;
    }
}
