/* =========================================
   MONDOTILE — BRAND / EFFETTO / MATERIALE
   CSS CONSOLIDATO E PULITO
========================================= */

/* =========================================
   PAGINA / CONTENITORE PRINCIPALE
========================================= */




.mt-brand-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.mt-brand-template-full {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Titolo pagina WordPress "Marchio" centrato */
.page .entry-title {
    text-align: center;
}

/* =========================================
   HERO BRAND / EFFETTO / MATERIALE
========================================= */

.mt-brand-header {
    margin-bottom: 40px;
}

.mt-brand-hero {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

.mt-brand-page .mt-brand-hero {
    text-align: center;
}

.mt-brand-logo {
    text-align: center;
    margin: 1rem 0;
}

.mt-brand-logo img,
.mt-brand-page .mt-brand-logo img {
    display: block;
    max-height: 120px;
    width: auto;
    margin: 0 auto 15px;
}

.mt-brand-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mt-brand-description {
    font-size: 17px;
    line-height: 1.7;
    max-width: 850px;
    margin: 0 auto 30px;
    color: #555;
}

/* Descrizione brand dentro accordion */

.mt-brand-description-panel {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 20px auto !important;
}

.mt-brand-description--full {

    width:100% !important;

    max-width:1400px !important;

    margin:0 auto !important;

    text-align:left !important;

    font-size:14px !important;

    line-height:1.9 !important;

    color:#444 !important;

    font-weight:300 !important;

}

.mt-brand-page--loading .mt-brand-hero {
    text-align: center;
}

.mt-brand-loading-text {
    margin-top: 20px;
    color: #666;
}

/* =========================================
   LAYOUT 2 COLONNE
========================================= */

.mt-brand-main {
    background: #ffffff;
}

.mt-brand-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
}

/* Sidebar */
.mt-brand-sidebar {
    width: 260px;
    flex-shrink: 0;
    border-right: 1px solid #e2e2e2;
    padding-right: 20px;
    height: 75vh;
    overflow-y: auto;
    position: sticky;
    top: 120px;
}

/* Contenuto */
.mt-brand-content {
    flex: 1;
    min-width: 0;
}

/* =========================================
   FILTRI
========================================= */

.mt-filters h3,
.mt-filter-title {
    font-size: 20px;
    margin-bottom: 20px;
}

.mt-filter-block {
    margin-bottom: 25px;
}

.mt-filter-block h4 {
    font-size: 16px;
    margin: 0;
    padding: 10px 0;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Freccia accordion */
.mt-filter-block h4::after {
    content: "\25BE";
    transition: transform 0.25s ease;
    font-size: 14px;
}

.mt-filter-block.closed h4::after {
    transform: rotate(-90deg);
}

.mt-filter-content {
    padding: 8px 0 12px;
    display: block;
}

.mt-filter-block.closed .mt-filter-content {
    display: none;
}

.mt-filter-checkbox {
    display: block;
    margin-bottom: 6px;
    padding-left: 2px;
    cursor: pointer;
}

.mt-filter-checkbox input {
    margin-right: 6px;
}

/* Filtri non compatibili → nascosti */
.mt-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.mt-filter-checkbox.mt-disabled {
    display: none;
}

/* Reset filtri */
.mt-reset-filters {
    margin-top: 15px;
    width: 100%;
    background: #444;
    color: #fff;
    border: none;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
}

.mt-reset-filters:hover {
    background: #000;
}

/* Badge risultati */
.mt-filter-results {
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.mt-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    transition: all 0.25s ease;
}

.mt-badge--ok {
    background: #2ecc71;
}

.mt-badge--warning {
    background: #f1c40f;
    color: #000;
}

.mt-badge--zero {
    background: #e74c3c;
}

.mt-badge-label {
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* =========================================
   GRIGLIA SERIE
========================================= */

.mt-series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 28px;
    padding-top: 10px;
    width: 100%;
}

.mt-series-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.mt-series-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
}

.mt-series-card.mt-hidden {
    display: none !important;
}

.mt-series-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.mt-series-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f8f8f8;
}

.mt-series-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.mt-series-card:hover .mt-series-thumb img {
    transform: scale(1.07);
}

.mt-series-info {
    padding: 18px 15px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mt-series-brand img {
    max-height: 42px;
    width: auto;
    display: block;
    margin: 0 auto;
    opacity: 0.9;
    transition: opacity 0.25s ease;
}

.mt-series-card:hover .mt-series-brand img {
    opacity: 1;
}

.mt-series-title {
    font-size: 20px;
    font-weight: 600;
    color: #111;
    line-height: 1.2;
    margin: 0;
}

/* =========================================
   PAGINAZIONE SERIE
========================================= */

.mt-series-pagination {
    text-align: center;
    margin-top: 30px;
}

.mt-page-btn {
    display: inline-block;
    padding: 8px 14px;
    margin: 3px;
    background: #f2f2f2;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.mt-page-btn.active {
    background: #333;
    color: #fff;
    font-weight: 600;
}

.mt-page-btn:hover {
    background: #ddd;
}

/* =========================================
   GRIGLIA PRODOTTI
========================================= */

.mt-products-grid-inner.mtso-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 20px;
}

/* ≥ 768px: 2 colonne */
@media (min-width: 768px) {
    .mt-products-grid-inner.mtso-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ≥ 992px: 3 colonne */
@media (min-width: 992px) {
    .mt-products-grid-inner.mtso-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ≥ 1200px: 4 colonne */
@media (min-width: 1200px) {
    .mt-products-grid-inner.mtso-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* =========================================
   PAGINAZIONE PRODOTTI
========================================= */

.mt-products-pagination {
    margin-top: 20px;
    text-align: center;
}

.mt-products-page-btn {
    display: inline-block;
    padding: 8px 14px;
    margin: 3px;
    background: #f2f2f2;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid #ccc;
}

.mt-products-page-btn.active {
    background: #333;
    color: #fff;
    font-weight: 600;
    border-width: 2px;
}

.mt-products-page-btn:hover {
    background: #ddd;
}

/* =========================================
   FIX TEMA MARBLEO / FSE
========================================= */

.page-id-9998 .entry-content.wp-block-post-content {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.page-id-9998 .mt-brand-layout {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 40px !important;
    width: 100% !important;
}

.page-id-9998 .mt-brand-sidebar {
    width: 260px !important;
    flex-shrink: 0 !important;
}

.page-id-9998 .mt-brand-content {
    flex: 1 !important;
    min-width: 0 !important;
}

/* =========================================
   HOME — SUMMARY
========================================= */

.mt-home-summary-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto 60px auto;
    text-align: center;
    overflow: visible;
    position: relative;
}

.mt-home-summary-box {
    min-width: 160px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e3e3e3;
    padding: 1.2rem 1rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.mt-home-summary-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    border-color: #d0d0d0;
}

.mt-home-summary-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #777;
    margin-bottom: 0.3rem;
}

.mt-home-summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
}

/* =========================================
   HOME — EFFETTI GRID / SLIDER
========================================= */

.mt-home-effetti-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    overflow: visible;
    position: relative;
}

.mt-home-effetti-slider {
    position: relative;
    margin: 40px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.mt-home-effetti-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mt-home-effetti-viewport::-webkit-scrollbar {
    display: none;
}

.mt-home-effetti-track {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
    min-width: 0;
    scroll-behavior: smooth;
}

.mt-home-effetto-card {
    position: relative;
    flex: 0 0 calc((100% - 2 * 16px) / 3);
    max-width: calc((100% - 2 * 16px) / 3);
    text-decoration: none;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.mt-home-effetto-image {
    width: 100%;
    padding-top: 56.25%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.35s ease-out;
}

.mt-home-effetto-card:hover .mt-home-effetto-image {
    transform: scale(1.05);
}

.mt-home-effetto-label {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    padding: 6px 16px;
    background: #ff7a00;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    border-radius: 999px;
    white-space: nowrap;
}

.mt-home-effetti-arrow {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mt-home-effetti-arrow:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.05);
}

/* =========================================
   HOME — MATERIALI
========================================= */

.mt-home-materiali-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.mt-home-materiali-grid--cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.mt-material-card--home {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
}

.mt-material-card--home:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.mt-material-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.mt-material-card-media {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.mt-material-card-media-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.mt-material-card--home:hover .mt-material-card-media-bg {
    transform: scale(1.08);
}

.mt-material-card-media-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef, #dfe3e8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mt-material-media-label {
    font-size: 48px;
    font-weight: 700;
    color: #555;
    opacity: 0.5;
}

.mt-material-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    align-items: center;
}

.mt-material-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.mt-material-description {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

.mt-material-count {
    font-size: 14px;
    font-weight: 500;
    color: #888;
    margin: 0;
}

.mt-material-cta {
    margin-top: auto;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    transition: color 0.3s ease;
}

.mt-material-card--home:hover .mt-material-cta {
    color: #000;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1024px) {
    .mt-home-effetto-card {
        flex-basis: calc((100% - 16px) / 2);
        max-width: calc((100% - 16px) / 2);
    }

    .mt-home-materiali-grid--cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .mt-brand-header {
        margin-bottom: 30px;
    }

    .mt-brand-title {
        font-size: 28px;
    }

    .mt-series-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 24px;
    }

    .mt-series-title {
        font-size: 18px;
    }

    .mt-brand-layout {
        flex-direction: column;
    }

    .mt-brand-sidebar {
        width: 100%;
        position: static;
        height: auto;
        overflow: visible;
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #e2e2e2;
        padding-bottom: 20px;
        margin-bottom: 20px;
        top: auto;
    }
}

@media (max-width: 640px) {
    .mt-home-effetti-slider {
        gap: 8px;
    }

    .mt-home-effetti-arrow {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .mt-home-effetto-card {
        flex-basis: 100%;
        max-width: 100%;
    }

    .mt-home-materiali-grid--cards {
        grid-template-columns: 1fr;
    }

    .mt-material-card-media {
        height: 180px;
    }
}

@media (max-width: 600px) {
    .mt-home-summary-grid,
    .mt-home-effetti-grid,
    .mt-home-materiali-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 420px) {
    .mt-home-summary-grid,
    .mt-home-effetti-grid,
    .mt-home-materiali-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   HOME — IMMAGINI EFFETTI STATICHE
========================================= */

.mt-home-effetto-card[data-effetto-slug="effetto-3d"] .mt-home-effetto-image {
    background-image: url("https://www.mondotile.it/wp-content/plugins/mondotile-core-v3.9.1-dev/assets/img/effetti/effetto-3d.webp");
}

.mt-home-effetto-card[data-effetto-slug="effetto-cementina"] .mt-home-effetto-image {
    background-image: url("https://www.mondotile.it/wp-content/plugins/mondotile-core-v3.9.1-dev/assets/img/effetti/effetto-cementina.webp");
}

.mt-home-effetto-card[data-effetto-slug="effetto-cemento"] .mt-home-effetto-image {
    background-image: url("https://www.mondotile.it/wp-content/plugins/mondotile-core-v3.9.1-dev/assets/img/effetti/effetto-cemento.webp");
}

.mt-home-effetto-card[data-effetto-slug="effetto-cotto"] .mt-home-effetto-image {
    background-image: url("https://www.mondotile.it/wp-content/plugins/mondotile-core-v3.9.1-dev/assets/img/effetti/effetto-cotto.webp");
}

.mt-home-effetto-card[data-effetto-slug="effetto-graniglia"] .mt-home-effetto-image {
    background-image: url("https://www.mondotile.it/wp-content/plugins/mondotile-core-v3.9.1-dev/assets/img/effetti/effetto-graniglia.webp");
}

.mt-home-effetto-card[data-effetto-slug="effetto-legno"] .mt-home-effetto-image {
    background-image: url("https://www.mondotile.it/wp-content/plugins/mondotile-core-v3.9.1-dev/assets/img/effetti/effetto-legno.webp");
}

.mt-home-effetto-card[data-effetto-slug="effetto-marmo"] .mt-home-effetto-image {
    background-image: url("https://www.mondotile.it/wp-content/plugins/mondotile-core-v3.9.1-dev/assets/img/effetti/effetto-marmo.webp");
}

.mt-home-effetto-card[data-effetto-slug="effetto-mattoncino"] .mt-home-effetto-image {
    background-image: url("https://www.mondotile.it/wp-content/plugins/mondotile-core-v3.9.1-dev/assets/img/effetti/effetto-mattoncino.webp");
}

.mt-home-effetto-card[data-effetto-slug="effetto-metallo"] .mt-home-effetto-image {
    background-image: url("https://www.mondotile.it/wp-content/plugins/mondotile-core-v3.9.1-dev/assets/img/effetti/effetto-metallo.webp");
}

.mt-home-effetto-card[data-effetto-slug="effetto-pietra"] .mt-home-effetto-image {
    background-image: url("https://www.mondotile.it/wp-content/plugins/mondotile-core-v3.9.1-dev/assets/img/effetti/effetto-pietra.webp");
}

.mt-home-effetto-card[data-effetto-slug="effetto-resina"] .mt-home-effetto-image {
    background-image: url("https://www.mondotile.it/wp-content/plugins/mondotile-core-v3.9.1-dev/assets/img/effetti/effetto-resina.webp");
}





/* =========================================
   MONDOTILE — BRAND HERO FINAL
========================================= */

.page-id-9998 .mt-brand-hero{
text-align:center;
margin-top:10px;
margin-bottom:35px;
}

.mt-brand-intro{
max-width:900px;
margin:0 auto;
}

.mt-brand-logo img{
height:90px;
width:auto;
margin:0 auto 12px;
display:block;
}

.mt-brand-title{
font-size:36px;
font-weight:700;
letter-spacing:.4px;
margin-bottom:14px;
}

.mt-brand-description--preview{
font-size:16px;
line-height:1.7;
color:#555;
margin-bottom:20px;
}

/* CTA */

.mt-brand-cta{
display:inline-block;
padding:12px 26px;
background:#111;
color:#fff;
text-decoration:none;
font-weight:600;
border-radius:4px;
transition:all .25s ease;
}

.mt-brand-cta:hover{
background:#000;
transform:translateY(-2px);
}

/* migliora distanza dal contenuto */

.mt-brand-layout{
margin-top:25px;
}

/* =========================================
   MONDOTILE — BRAND HERO FINAL TUNING
========================================= */

/* Titolo pagina WordPress: "Marchio" */
.page-id-9998 .entry-title,
.page-id-9998 h1.entry-title,
.page-id-9998 .wp-block-post-title {
    text-align: center !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    color: #b9b9b9 !important;
    letter-spacing: 0.4px !important;
    margin: 0 0 26px !important;
    text-transform: none !important;
}

/* Hero più ordinata */
.page-id-9998 .mt-brand-hero {
    text-align: center !important;
    margin-top: 0 !important;
    margin-bottom: 26px !important;
    padding-bottom: 8px !important;
}

/* Intro centrale */
.page-id-9998 .mt-brand-intro {
    max-width: 1320px !important;
    margin: 0 auto !important;
}

/* Logo */
.page-id-9998 .mt-brand-logo {
    margin: 0 0 14px !important;
    text-align: center !important;
}

.page-id-9998 .mt-brand-logo img,
.page-id-9998 .mt-brand-page .mt-brand-logo img,
.page-id-9998 .mt-brand-hero .mt-brand-logo img {
    display: block !important;
    margin: 0 auto 14px !important;
    height: auto !important;
    max-height: 105px !important;
    width: auto !important;
    max-width: min(92vw, 620px) !important;
    object-fit: contain !important;
}

/* Nome brand */
.page-id-9998 .mt-brand-title,
.page-id-9998 .mt-brand-page .mt-brand-title {
    margin: 0 0 18px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    font-size: 32px !important;
    line-height: 1.08 !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    color: #111 !important;
}

/* Descrizione: più larga e leggibile */
.page-id-9998 .mt-brand-description,
.page-id-9998 .mt-brand-description--full,
.page-id-9998 .mt-brand-description--preview {
    max-width: 1360px !important;
    width: 100% !important;
    margin: 0 auto 22px !important;
    text-align: center !important;
    font-size: 18px !important;
    line-height: 1.85 !important;
    color: #4f4f4f !important;
    font-weight: 500 !important;
}

/* CTA: arancione Mondotile */
.page-id-9998 .mt-brand-cta {
    display: inline-block !important;
    padding: 13px 28px !important;
    background: #f5a623 !important;
    color: #111 !important;
    border: 1px solid #f5a623 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    transition: all 0.25s ease !important;
    box-shadow: none !important;
}

.page-id-9998 .mt-brand-cta:hover {
    background: #e59612 !important;
    border-color: #e59612 !important;
    color: #111 !important;
    transform: translateY(-2px) !important;
}

/* Spazio tra hero e layout */
.page-id-9998 .mt-brand-layout {
    margin-top: 18px !important;
}

/* Responsive */
@media (max-width: 900px) {
    .page-id-9998 .entry-title,
    .page-id-9998 h1.entry-title,
    .page-id-9998 .wp-block-post-title {
        font-size: 18px !important;
        margin-bottom: 20px !important;
    }

    .page-id-9998 .mt-brand-title,
    .page-id-9998 .mt-brand-page .mt-brand-title {
        font-size: 26px !important;
    }

    .page-id-9998 .mt-brand-description,
    .page-id-9998 .mt-brand-description--full,
    .page-id-9998 .mt-brand-description--preview {
        font-size: 16px !important;
        line-height: 1.75 !important;
        max-width: 100% !important;
    }

    .page-id-9998 .mt-brand-logo img,
    .page-id-9998 .mt-brand-page .mt-brand-logo img,
    .page-id-9998 .mt-brand-hero .mt-brand-logo img {
        max-height: 84px !important;
        max-width: min(94vw, 420px) !important;
    }
}

/* =========================================
   MONDOTILE — BRAND HERO FINAL REAL FIX
========================================= */

/* Titolo pagina WordPress: MARCHIO */
.page-id-9998 .entry-title,
.page-id-9998 h1.entry-title,
.page-id-9998 .wp-block-post-title {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 28px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    color: #bdbdbd !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    margin: 0 0 24px !important;
}

/* pagina */
.page-id-9998 .mt-brand-page {
    padding-top: 8px !important;
}

/* hero */
.page-id-9998 .mt-brand-hero {
    text-align: center !important;
    margin-top: 0 !important;
    margin-bottom: 28px !important;
    padding-top: 0 !important;
    padding-bottom: 8px !important;
}

/* intro */
.page-id-9998 .mt-brand-intro {
    max-width: 1500px !important;
    margin: 0 auto !important;
}

/* logo */
.page-id-9998 .mt-brand-logo {
    margin: 0 0 14px !important;
    text-align: center !important;
}

.page-id-9998 .mt-brand-logo img,
.page-id-9998 .mt-brand-page .mt-brand-logo img,
.page-id-9998 .mt-brand-hero .mt-brand-logo img {
    display: block !important;
    margin: 0 auto 14px !important;
    height: auto !important;
    max-height: 150px !important;
    width: auto !important;
    max-width: min(96vw, 900px) !important;
    object-fit: contain !important;
}

/* nome brand */
.page-id-9998 .mt-brand-title,
.page-id-9998 .mt-brand-page .mt-brand-title {
    margin: 0 0 18px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    font-size: 38px !important;
    line-height: 1.06 !important;
    font-weight: 700 !important;
    letter-spacing: 0.4px !important;
    color: #111 !important;
}

/* descrizione COMPLETA e leggibile */
.page-id-9998 .mt-brand-description,
.page-id-9998 .mt-brand-description--full,
.page-id-9998 .mt-brand-description--preview {
    display: block !important;
    max-width: 1480px !important;
    width: 100% !important;
    margin: 0 auto 28px !important;
    padding: 0 26px !important;
    text-align: center !important;
    font-size: 20px !important;
    line-height: 1.9 !important;
    color: #4f4f4f !important;
    font-weight: 500 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
}

/* stats */
.page-id-9998 .mt-brand-stats{

    display:grid;

    grid-template-columns:repeat(6,1fr);

    gap:16px;

    width:100%;

    margin:30px 0;

}

.page-id-9998 .mt-brand-stat {
    background: #fff !important;
    border: 1px solid #ececec !important;
    border-radius: 12px !important;
    padding: 18px 14px !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05) !important;
    text-align: center !important;
}

.page-id-9998 .mt-brand-stat-num {
    display: block !important;
    font-size: 28px !important;
    line-height: 1.1 !important;
    font-weight: 600 !important;
    color: #111 !important;
    margin-bottom: 6px !important;
}

.page-id-9998 .mt-brand-stat-label {
    display: block !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #7a7a7a !important;
}


.page-id-9998 .mt-brand-stat::after {
    content: "" !important;
    display: block !important;
    width: 42px !important;
    height: 3px !important;
    margin: 12px auto 0 !important;
    border-radius: 2px !important;
    background: linear-gradient(90deg, #d6a73c, #f0d184) !important;
}

/* separazione hero / contenuto */
.page-id-9998 .mt-brand-layout {
    margin-top: 18px !important;
}

/* responsive */
@media (max-width: 1100px) {
    .page-id-9998 .mt-brand-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .page-id-9998 .mt-brand-title,
    .page-id-9998 .mt-brand-page .mt-brand-title {
        font-size: 32px !important;
    }

    .page-id-9998 .mt-brand-description,
    .page-id-9998 .mt-brand-description--full,
    .page-id-9998 .mt-brand-description--preview {
        font-size: 18px !important;
        line-height: 1.8 !important;
    }
}

@media (max-width: 767px) {
    .page-id-9998 .entry-title,
    .page-id-9998 h1.entry-title,
    .page-id-9998 .wp-block-post-title {
        font-size: 22px !important;
        margin-bottom: 18px !important;
    }

    .page-id-9998 .mt-brand-logo img,
    .page-id-9998 .mt-brand-page .mt-brand-logo img,
    .page-id-9998 .mt-brand-hero .mt-brand-logo img {
        max-height: 100px !important;
        max-width: min(94vw, 520px) !important;
    }

    .page-id-9998 .mt-brand-title,
    .page-id-9998 .mt-brand-page .mt-brand-title {
        font-size: 28px !important;
    }

    .page-id-9998 .mt-brand-description,
    .page-id-9998 .mt-brand-description--full,
    .page-id-9998 .mt-brand-description--preview {
        font-size: 16px !important;
        line-height: 1.75 !important;
        padding: 0 16px !important;
    }

    .page-id-9998 .mt-brand-stats{

    display:grid;

    grid-template-columns:repeat(6,1fr);

    gap:16px;

    width:100%;

    margin:30px 0;

}

    .page-id-9998 .mt-brand-stat {
        padding: 14px 10px !important;
    }

    .page-id-9998 .mt-brand-stat-num {
    font-size: 22px !important;
}
}


/* ===== Titolo pagina "MARCHIO" ===== */

.page-id-9998 .wp-block-post-title,
.page-id-9998 .entry-title,
.page-id-9998 h1.wp-block-post-title {

    width:100% !important;
    display:block !important;

    text-align:center !important;

    font-size:34px !important;
    font-weight:700 !important;

    letter-spacing:2px !important;

    text-transform:uppercase !important;

    color:#bdbdbd !important;

    margin-bottom:30px !important;

}

/* ===== Titolo pagina "MARCHIO" ===== */

.wp-site-blocks .wp-block-group .wp-block-group h1 {

    width:100% !important;

    text-align:center !important;

    font-size:36px !important;

    font-weight:700 !important;

    letter-spacing:2px !important;

    text-transform:uppercase !important;

    color:#bdbdbd !important;

    margin-bottom:30px !important;

}

/* ===== Logo brand ===== */

.mt-brand-intro .mt-brand-logo img{

    max-height:200px !important;

    width:auto !important;

    max-width:100% !important;

}


/* ===== Accordion descrizione brand ===== */

.mt-brand-description-toggle{

    margin:20px auto;

    display:block;

    padding:12px 20px;

    border:1px solid #ddd;

    background:#fff;

    font-weight:600;

    cursor:pointer;

}

.mt-brand-description-panel{

    max-width:1100px;

    margin:20px auto;

    font-size:18px;

    line-height:1.8;

}

/* =========================================
   MONDOTILE — BRAND PAGE HARD OVERRIDE
========================================= */

/* Titolo pagina WordPress: "MARCHIO" */
.wp-site-blocks .wp-block-group .wp-block-group h1,
.wp-site-blocks .wp-block-group .wp-block-group .wp-block-post-title,
.wp-site-blocks .wp-block-group .wp-block-group .entry-title {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto 28px auto !important;
    font-size: 34px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #c3c3c3 !important;
}

/* Hero intro */
.mt-brand-page .mt-brand-intro {
    width: 100% !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* Logo */
.mt-brand-page .mt-brand-intro .mt-brand-logo,
.mt-brand-intro .mt-brand-logo {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto 18px auto !important;
}

.mt-brand-page .mt-brand-intro .mt-brand-logo img,
.mt-brand-intro .mt-brand-logo img {
    display: block !important;
    margin: 0 auto !important;
    width: auto !important;
    height: auto !important;
    max-height: 220px !important;
    min-height: 120px !important;
    max-width: min(96vw, 1000px) !important;
    object-fit: contain !important;
}

/* Nome brand */
.mt-brand-page .mt-brand-title,
.mt-brand-intro .mt-brand-title {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto 18px auto !important;
    font-size: 42px !important;
    line-height: 1.05 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #111 !important;
}


/* Accordion descrizione brand */
.mt-brand-description-accordion {
    max-width: 1500px !important;
    margin: 0 auto 24px auto !important;
    padding: 0 20px !important;
    text-align: center !important;
}

.mt-brand-description-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 22px !important;
    border: 1px solid #e3e3e3 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #222 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.mt-brand-description-toggle::after {
    content: " ▾";
}

.mt-brand-description-panel {
    margin-top: 16px !important;
}

/* Descrizione brand dentro accordion */

.mt-brand-description-panel {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 20px auto !important;
}

.mt-brand-description--full {

    width:100% !important;

    max-width:1400px !important;

    margin:0 auto !important;

    text-align:left !important;

    font-size:18px !important;

    line-height:1.9 !important;

    color:#444 !important;

    font-weight:500 !important;

}

/* Riduce spazio sotto il titolo pagina "MARCHIO" */

.wp-site-blocks .wp-block-group .wp-block-group h1{
    padding-bottom:0 !important;
    margin-bottom:8px !important;
}

/* sicurezza: rimuove padding dal wrapper */
.wp-site-blocks .wp-block-group .wp-block-group{
    padding-bottom:0 !important;
}

/* ===== Descrizione marchio nell'accordion ===== */

.mt-brand-description-panel {
    width:100% !important;
    max-width:1500px !important;
    margin:20px auto !important;
}

/* forza il testo a sinistra */
.mt-brand-description-panel .mt-brand-description,
.mt-brand-description-panel .mt-brand-description--full {

    text-align:left !important;

    width:100% !important;

    max-width:1500px !important;

    margin:0 auto !important;

    font-size:18px !important;

    line-height:1.9 !important;

}

/* sicurezza: annulla centratura ereditata */
.mt-brand-description-panel * {
    text-align:left !important;
}




/* =========================================
   MONDOTILE — EFFETTO PAGE HERO
========================================= */

.mt-page-kicker {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 auto 16px auto;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c3c3c3;
}

.mt-effetto-page .mt-effetto-title {
    text-align: center;
    text-transform: uppercase;
}

.mt-effetto-page .mt-brand-description-accordion {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.mt-effetto-page .mt-brand-description-panel {
    width: 100%;
    max-width: 1500px;
    margin: 20px auto 0 auto;
}

.mt-effetto-page .mt-brand-description-panel .mt-brand-description,
.mt-effetto-page .mt-brand-description-panel .mt-brand-description--full,
.mt-effetto-page .mt-brand-description-panel .mt-effetto-description {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    text-align: left;
    font-size: 18px;
    line-height: 1.9;
    color: #444;
    font-weight: 500;
}

.mt-effetto-page .mt-brand-description-panel * {
    text-align: left;
}

.mt-effetto-page .mt-effetto-stats {
    margin-top: 28px;
}

.mt-effetto-page .mt-effetto-cta {
    margin-top: 22px;
}

@media (max-width: 900px) {
    .mt-page-kicker {
        font-size: 24px;
        margin-bottom: 12px;
    }
}


/* =========================================
   EFFETTO PAGE
========================================= */


/* Hero effetto */
.mt-effetto-page .mt-effetto-hero {
    text-align: center;
    padding: 24px 0 20px;
    margin-bottom: 28px;
}

.mt-effetto-page .mt-effetto-intro {
    max-width: 1320px;
    margin: 0 auto;
}

.mt-effetto-page .mt-page-kicker {
    display: block;
    text-align: center;
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b8b8b8;
}

.mt-effetto-page .mt-effetto-title {
    margin: 0 0 20px;
    text-align: center;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    color: #111;
}

/* Accordion */
.mt-effetto-page .mt-effetto-description-accordion {
    max-width: 1320px;
    margin: 0 auto 28px;
    text-align: left;
}

.mt-effetto-page .mt-brand-description-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    color: #222;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.mt-effetto-page .mt-brand-description-panel {
    margin-top: 16px;
}

.mt-effetto-page .mt-effetto-description,
.mt-effetto-page .mt-brand-description--full {
    width: 100%;
    max-width: 100% !important;
    text-align: left !important;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.mt-effetto-page .mt-effetto-description p,
.mt-effetto-page .mt-effetto-description ul,
.mt-effetto-page .mt-effetto-description ol {
    text-align: left !important;
    max-width: none !important;
}

.mt-effetto-page .mt-effetto-description ul,
.mt-effetto-page .mt-effetto-description ol {
    padding-left: 22px;
}

/* Stats */
.mt-effetto-page .mt-effetto-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    margin: 0 auto 26px;
}

.mt-effetto-page .mt-brand-stat {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 18px 12px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}


.mt-effetto-page .mt-brand-stat::after {

    content: "";

    display: block;

    width: 42px;

    height: 3px;

    margin: 12px auto 0;

    border-radius: 2px;

    background: linear-gradient(90deg,#d6a73c,#f0d184);

}


.mt-effetto-page .mt-brand-stat-num {
    display: block !important;
    font-size: 28px !important;
    line-height: 1.1 !important;
    font-weight: 600 !important;
    color: #111 !important;
    margin-bottom: 6px !important;
}

.mt-effetto-page .mt-brand-stat-label {
    display: block !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #7a7a7a !important;
}
/* CTA */
.mt-effetto-page .mt-effetto-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 14px 24px;
    border-radius: 999px;
    background: #f5a623;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.mt-effetto-page .mt-effetto-cta:hover {
    background: #e29512;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(242, 163, 35, 0.22);
}

/* Responsive */
@media (max-width: 1200px) {
    .mt-effetto-page .mt-effetto-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .mt-effetto-page .mt-page-kicker {
        font-size: 16px;
    }

    .mt-effetto-page .mt-effetto-title {
        font-size: 32px;
    }

    .mt-effetto-page .mt-effetto-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mt-effetto-page .mt-brand-description-toggle {
        width: 100%;
    }
}


/* =========================================
   EFFETTO PAGE — nasconde il contenuto editoriale
   ma lascia il testo nel DOM per SEO
========================================= */

body.mt-effetto-shortcode-page .entry-content.wp-block-post-content > *:not(.mt-brand-page),
body.mt-effetto-shortcode-page .entry-content > *:not(.mt-brand-page),
body.mt-effetto-shortcode-page .wp-block-post-content > *:not(.mt-brand-page) {
    display: none !important;
}

body.mt-effetto-shortcode-page .mt-brand-page.mt-effetto-page,
body.mt-effetto-shortcode-page .mt-custom-effect-page {
    display: block !important;
}

body.mt-effetto-shortcode-page .wp-block-post-title,
body.mt-effetto-shortcode-page .entry-title,
body.mt-effetto-shortcode-page .page-title {
    display: none !important;
}
/* FIX DEFINITIVO CTA brand/effetto */
.mt-brand-page .mt-brand-hero a.mt-brand-cta,
.mt-brand-page .mt-brand-hero a.mt-brand-cta:link,
.mt-brand-page .mt-brand-hero a.mt-brand-cta:visited,
.mt-brand-page .mt-brand-hero a.mt-brand-cta:hover,
.mt-brand-page .mt-brand-hero a.mt-brand-cta:focus,
.mt-brand-page .mt-brand-hero a.mt-brand-cta:active,
.mt-effetto-page .mt-brand-hero a.mt-effetto-cta,
.mt-effetto-page .mt-brand-hero a.mt-effetto-cta:link,
.mt-effetto-page .mt-brand-hero a.mt-effetto-cta:visited,
.mt-effetto-page .mt-brand-hero a.mt-effetto-cta:hover,
.mt-effetto-page .mt-brand-hero a.mt-effetto-cta:focus,
.mt-effetto-page .mt-brand-hero a.mt-effetto-cta:active {
    display: inline-block !important;
    padding: 14px 30px !important;
    background: #f5a623 !important;
    border: 1px solid #f5a623 !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    transition: all 0.25s ease !important;
}

.mt-brand-page .mt-brand-hero a.mt-brand-cta:hover,
.mt-brand-page .mt-brand-hero a.mt-brand-cta:focus,
.mt-brand-page .mt-brand-hero a.mt-brand-cta:active,
.mt-effetto-page .mt-brand-hero a.mt-effetto-cta:hover,
.mt-effetto-page .mt-brand-hero a.mt-effetto-cta:focus,
.mt-effetto-page .mt-brand-hero a.mt-effetto-cta:active {
    background: #e0961f !important;
    border-color: #e0961f !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-decoration: none !important;
}

.mt-brand-page .mt-brand-hero a.mt-brand-cta *,
.mt-brand-page .mt-brand-hero a.mt-brand-cta:hover *,
.mt-effetto-page .mt-brand-hero a.mt-effetto-cta *,
.mt-effetto-page .mt-brand-hero a.mt-effetto-cta:hover * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}



/* =========================================
   SHORTCODE PAGES — nasconde titolo WP
   per Brand / Effetto / Materiale
========================================= */

body:has(.mt-brand-page) .entry-title,
body:has(.mt-brand-page) .wp-block-post-title,
body:has(.mt-brand-page) .page-title,
body:has(.mt-brand-page) .wp-site-blocks .wp-block-group .wp-block-group h1,
body:has(.mt-effetto-page) .entry-title,
body:has(.mt-effetto-page) .wp-block-post-title,
body:has(.mt-effetto-page) .page-title,
body:has(.mt-effetto-page) .wp-site-blocks .wp-block-group .wp-block-group h1,
body:has(.mt-materiale-page) .entry-title,
body:has(.mt-materiale-page) .wp-block-post-title,
body:has(.mt-materiale-page) .page-title,
body:has(.mt-materiale-page) .wp-site-blocks .wp-block-group .wp-block-group h1 {
    display: none !important;
}


/* =========================================
   MATERIALI PAGE — FINAL CLEAN
========================================= */

.mt-materiale-page .mt-brand-hero {
    text-align: center;
    padding: 24px 0 20px;
    margin-bottom: 28px;
}

.mt-materiale-page .mt-brand-intro {
    max-width: 1320px;
    margin: 0 auto;
}

.mt-materiale-page .mt-page-kicker {
    display: block;
    text-align: center;
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b8b8b8;
}

.mt-materiale-page .mt-brand-title {
    margin: 0 0 30px;
    text-align: center;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    color: #111;
}

.mt-materiale-page .mt-brand-stats {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 18px !important;
    max-width: 1200px !important;
    margin: 0 auto 26px !important;
    width: 100% !important;
}

.mt-materiale-page .mt-brand-stat {
    position: relative !important;
    flex: 0 0 180px !important;
    width: 180px !important;
    min-height: 86px !important;
    padding: 16px 12px !important;
    margin: 0 !important;
    border-radius: 16px !important;
    text-align: center !important;
border: 10px solid rgba(191, 132, 31, 0.22) !important;
background: linear-gradient(
    180deg,
    #fff4cf 0%,
    #f2d48b 20%,
    #e5bc63 45%,
    #d39d39 70%,
    #bf841f 100%
) !important;
    box-shadow: 0 10px 20px rgba(118,82,14,0.14) !important;
    overflow: hidden !important;
}

.mt-materiale-page .mt-brand-stat::before {
    content: none !important;
}

.mt-materiale-page .mt-brand-stat::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 16px !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08) !important;
    pointer-events: none !important;
}

.mt-materiale-page .mt-brand-stat-num {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    margin-bottom: 8px !important;
    font-size: 30px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    color: #fffdf7 !important;
    text-shadow:
        0 1px 0 rgba(110,72,8,0.20),
        0 2px 4px rgba(94,62,8,0.10) !important;
}

.mt-materiale-page .mt-brand-stat-label {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.7px !important;
    color: rgba(255,250,238,0.96) !important;
    text-shadow: 0 1px 2px rgba(90,58,7,0.10) !important;
}

.mt-materiale-page .mt-brand-stat:hover {
    transform: translateY(-2px) !important;
    box-shadow:
        inset 0 -3px 8px rgba(120,75,10,0.16),
        0 14px 24px rgba(118,82,14,0.18) !important;
}

.mt-materiale-page .mt-brand-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 220px !important;
    padding: 14px 24px !important;
    border-radius: 999px !important;
    background: #f5a623 !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease !important;
}

.mt-materiale-page .mt-brand-cta:hover {
    background: #e29512 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 20px rgba(242,163,35,0.22) !important;
}

@media (max-width: 767px) {
    .mt-materiale-page .mt-page-kicker {
        font-size: 16px !important;
    }

    .mt-materiale-page .mt-brand-title {
        font-size: 32px !important;
    }

    .mt-materiale-page .mt-brand-stat {
        flex: 0 0 calc(50% - 9px) !important;
        width: calc(50% - 9px) !important;
    }

    .mt-materiale-page .mt-brand-stat-num {
        font-size: 24px !important;
    }
}

@media (max-width: 420px) {
    .mt-materiale-page .mt-brand-stat {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
    }
}

/* === OVERRIDE DEFINITIVO SPECCHIETTI MATERIALE === */
.mt-materiale-page .mt-brand-stat,
body .mt-materiale-page .mt-brand-stat,
html body .mt-materiale-page .mt-brand-stat {
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid #ececec !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06) !important;
    border-radius: 16px !important;
}

.mt-materiale-page .mt-brand-stat::before,
body .mt-materiale-page .mt-brand-stat::before,
html body .mt-materiale-page .mt-brand-stat::before {
    content: none !important;
    display: none !important;
}

.mt-materiale-page .mt-brand-stat::after,
body .mt-materiale-page .mt-brand-stat::after,
html body .mt-materiale-page .mt-brand-stat::after {
    content: "" !important;
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: 42px !important;
    height: 3px !important;
    margin: 12px auto 0 !important;
    border-radius: 2px !important;
    background: linear-gradient(90deg, #d6a73c, #f0d184) !important;
    box-shadow: none !important;
}

.mt-materiale-page .mt-brand-stat-num {

    font-size: 30px !important;   /* prima era ~34 */
    font-weight: 400 !important;  /* prima 800 */
    color: #1a1a1a !important;
    line-height: 1.1;
    margin-bottom: 6px;

}

.mt-materiale-page .mt-brand-stat-label {
    color: #8a8a8a !important;
    text-shadow: none !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
}


/* ===== STATS MATERIALI — VERSIONE PREMIUM ===== */

.mt-materiale-page .mt-brand-stat {

    background:#ffffff !important;

    border-radius:16px !important;

    padding:22px 16px !important;

    border:1px solid #eeeeee !important;

    box-shadow:0 8px 20px rgba(0,0,0,0.06) !important;

    text-align:center !important;

    position:relative !important;

}

/* linea oro elegante */

.mt-materiale-page .mt-brand-stat::after{

    content:"";

    display:block;

    width:42px;

    height:3px;

    background:linear-gradient(
        90deg,
        #d6a73c,
        #f0d184
    );

    margin:12px auto 0;

    border-radius:2px;

}

/* numero */

.mt-materiale-page .mt-brand-stat-num{

    font-size:34px !important;

    font-weight:800 !important;

    color:#111 !important;

    line-height:1;

    margin-bottom:6px;

}

/* label */

.mt-materiale-page .mt-brand-stat-label{

    font-size:12px !important;

    font-weight:700 !important;

    text-transform:uppercase;

    letter-spacing:.08em;

    color:#888 !important;

}

.mt-materiale-page .mt-brand-cta {
    margin-top: 10px !important;
}

/* FIX PESO NUMERI STATS */

body .mt-materiale-page .mt-brand-stat-num {

    font-size: 30px !important;
    font-weight: 700 !important;
    color: #111 !important;
    text-shadow: none !important;
    margin-bottom: 6px !important;

}

/* =========================================
   STATS — NUMERI PIÙ LEGGERI
   Brand / Effetto / Materiale
========================================= */

body .mt-brand-page .mt-brand-stat-num,
body .mt-effetto-page .mt-brand-stat-num,
body .mt-materiale-page .mt-brand-stat-num {
    font-size: 28px !important;
    font-weight: 600 !important;
    color: #111 !important;
    text-shadow: none !important;
    line-height: 1.1 !important;
    margin-bottom: 6px !important;
}

body .mt-brand-page .mt-brand-stat-label,
body .mt-effetto-page .mt-brand-stat-label,
body .mt-materiale-page .mt-brand-stat-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .06em !important;
}

/* =========================================
   STATS — CARD UNIFICATE
   Brand / Effetto / Materiale
========================================= */

body .mt-brand-page .mt-brand-stat,
body .mt-effetto-page .mt-brand-stat,
body .mt-materiale-page .mt-brand-stat {
    border-radius: 16px !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06) !important;
}


/* =========================================
   STATS — NUMERI PIÙ LEGGERI
   OVERRIDE FINALE BRAND / EFFETTO / MATERIALE
========================================= */

/* BRAND */
body .page-id-9998 .mt-brand-stat-num,
body .page-id-9998 .mt-brand-page .mt-brand-stat-num {
    font-size: 28px !important;
    font-weight: 600 !important;
    color: #111 !important;
    text-shadow: none !important;
    line-height: 1.1 !important;
    margin-bottom: 6px !important;
}

body .page-id-9998 .mt-brand-stat-label,
body .page-id-9998 .mt-brand-page .mt-brand-stat-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .06em !important;
    color: #7a7a7a !important;
}

/* EFFETTO */
body .mt-effetto-page .mt-brand-stat-num {
    font-size: 28px !important;
    font-weight: 600 !important;
    color: #111 !important;
    text-shadow: none !important;
    line-height: 1.1 !important;
    margin-bottom: 6px !important;
}

body .mt-effetto-page .mt-brand-stat-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .06em !important;
    color: #7a7a7a !important;
}

/* MATERIALE */
body .mt-materiale-page .mt-brand-stat-num {
    font-size: 28px !important;
    font-weight: 600 !important;
    color: #111 !important;
    text-shadow: none !important;
    line-height: 1.1 !important;
    margin-bottom: 6px !important;
}

body .mt-materiale-page .mt-brand-stat-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .06em !important;
    color: #7a7a7a !important;
}
/*
body:has(.mt-ambiente-page) .entry-title,
body:has(.mt-ambiente-page) .wp-block-post-title,
body:has(.mt-ambiente-page) .page-title,
body:has(.mt-destinazione-page) .entry-title,
body:has(.mt-destinazione-page) .wp-block-post-title,
body:has(.mt-destinazione-page) .page-title {
    display: none !important;
}
*/
.mt-ambiente-page .mt-page-kicker,
.mt-destinazione-page .mt-page-kicker {
    display: block;
    text-align: center;
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b8b8b8;
}

/* =========================================
   AMBIENTE PAGE — HERO / STATS
========================================= */

.mt-ambiente-page .mt-brand-hero {
    text-align: center;
    padding: 24px 0 20px;
    margin-bottom: 28px;
}

.mt-ambiente-page .mt-brand-intro {
    max-width: 1320px;
    margin: 0 auto;
}

.mt-ambiente-page .mt-page-kicker {
    display: block;
    text-align: center;
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b8b8b8;
}

.mt-ambiente-page .mt-brand-title {
    margin: 0 0 30px;
    text-align: center;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    color: #111;
}

.mt-ambiente-page .mt-brand-stats {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 14px !important;
    width: 100% !important;
    margin: 0 auto 26px !important;
}

.mt-ambiente-page .mt-brand-stat {
    background: #fff !important;
    border: 1px solid #ececec !important;
    border-radius: 16px !important;
    padding: 18px 12px !important;
    text-align: center !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04) !important;
}

.mt-ambiente-page .mt-brand-stat::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg,#d6a73c,#f0d184);
}

.mt-ambiente-page .mt-brand-stat-num {
    display: block !important;
    font-size: 28px !important;
    line-height: 1.1 !important;
    font-weight: 600 !important;
    color: #111 !important;
    margin-bottom: 6px !important;
}

.mt-ambiente-page .mt-brand-stat-label {
    display: block !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #7a7a7a !important;
}

@media (max-width: 1200px) {
    .mt-ambiente-page .mt-brand-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    .mt-ambiente-page .mt-brand-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .mt-ambiente-page .mt-page-kicker {
        font-size: 16px !important;
    }

    .mt-ambiente-page .mt-brand-title {
        font-size: 32px !important;
    }
}



/* =========================================
   DESTINAZIONE PAGE — HARD OVERRIDE
========================================= */

body .mt-destinazione-page {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 20px !important;
}

body .mt-destinazione-page .mt-brand-hero {
    text-align: center !important;
    margin: 20px 0 40px !important;
    padding: 0 !important;
}

body .mt-destinazione-page .mt-brand-intro {
    max-width: 1320px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

body .mt-destinazione-page .mt-page-kicker {
    display: block !important;
    text-align: center !important;
    margin: 0 0 18px !important;
    font-size: 18px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #b8b8b8 !important;
}

body .mt-destinazione-page .mt-brand-title {
    margin: 0 0 22px !important;
    text-align: center !important;
    font-size: clamp(34px, 5vw, 58px) !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    color: #111 !important;
}

body .mt-destinazione-page .mt-destinazione-description-accordion {
    max-width: 1320px !important;
    margin: 0 auto 28px !important;
    text-align: center !important;
}

body .mt-destinazione-page .mt-brand-description-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 22px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #222 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

body .mt-destinazione-page .mt-brand-description-panel {
    width: 100% !important;
    max-width: 1320px !important;
    margin: 20px auto 0 !important;
}

body .mt-destinazione-page .mt-destinazione-description,
body .mt-destinazione-page .mt-brand-description,
body .mt-destinazione-page .mt-brand-description--full {
    width: 100% !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
    text-align: left !important;
    font-size: 18px !important;
    line-height: 1.9 !important;
    color: #444 !important;
    font-weight: 500 !important;
}

body .mt-destinazione-page .mt-brand-stats {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 30px auto 26px !important;
}

body .mt-destinazione-page .mt-brand-stat {
    background: #fff !important;
    border: 1px solid #ececec !important;
    border-radius: 16px !important;
    padding: 18px 14px !important;
    min-width: 0 !important;
    width: auto !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06) !important;
    text-align: center !important;
}

body .mt-destinazione-page .mt-brand-stat::after {
    content: "" !important;
    display: block !important;
    width: 42px !important;
    height: 3px !important;
    margin: 12px auto 0 !important;
    border-radius: 2px !important;
    background: linear-gradient(90deg, #d6a73c, #f0d184) !important;
}

body .mt-destinazione-page .mt-brand-stat-num {
    display: block !important;
    font-size: 28px !important;
    line-height: 1.1 !important;
    font-weight: 600 !important;
    color: #111 !important;
    margin-bottom: 6px !important;
    text-shadow: none !important;
}

body .mt-destinazione-page .mt-brand-stat-label {
    display: block !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
    color: #7a7a7a !important;
}

body .mt-destinazione-page .mt-brand-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 220px !important;
    padding: 14px 24px !important;
    border-radius: 999px !important;
    background: #f5a623 !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease !important;
}

body .mt-destinazione-page .mt-brand-cta:hover {
    background: #e29512 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 20px rgba(242,163,35,0.22) !important;
}

body .mt-destinazione-page .mt-brand-layout {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 40px !important;
    width: 100% !important;
    margin-top: 25px !important;
}

body .mt-destinazione-page .mt-brand-sidebar {
    width: 260px !important;
    flex-shrink: 0 !important;
    border-right: 1px solid #e2e2e2 !important;
    padding-right: 20px !important;
    height: 75vh !important;
    overflow-y: auto !important;
    position: sticky !important;
    top: 120px !important;
}

body .mt-destinazione-page .mt-brand-content {
    flex: 1 !important;
    min-width: 0 !important;
}

@media (max-width: 900px) {
    body .mt-destinazione-page .mt-brand-layout {
        flex-direction: column !important;
    }

    body .mt-destinazione-page .mt-brand-sidebar {
        width: 100% !important;
        position: static !important;
        height: auto !important;
        overflow: visible !important;
        border-right: none !important;
        padding-right: 0 !important;
        border-bottom: 1px solid #e2e2e2 !important;
        padding-bottom: 20px !important;
        margin-bottom: 20px !important;
        top: auto !important;
    }

    body .mt-destinazione-page .mt-brand-title {
        font-size: 32px !important;
    }

    body .mt-destinazione-page .mt-destinazione-description,
    body .mt-destinazione-page .mt-brand-description,
    body .mt-destinazione-page .mt-brand-description--full {
        font-size: 16px !important;
        line-height: 1.75 !important;
    }
}

@media (max-width: 1200px) {
    body .mt-destinazione-page .mt-brand-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    body .mt-destinazione-page .mt-brand-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body .mt-destinazione-page .mt-brand-stat {
        min-width: 0 !important;
        width: auto !important;
    }

    body .mt-destinazione-page .mt-brand-description-toggle {
        width: 100% !important;
        max-width: 320px !important;
    }
}

@media (max-width: 420px) {
    body .mt-destinazione-page .mt-brand-stats {
        grid-template-columns: 1fr !important;
    }
}


/* =========================================
   HOME — AMBIENTI: forza 4 card su una riga
========================================= */

.mt-home-ambienti-slider .mt-home-effetti-track {
    flex-wrap: nowrap;
}

.mt-home-ambienti-slider .mt-home-effetto-card {
    flex: 0 0 calc((100% - 3 * 16px) / 4);
    max-width: calc((100% - 3 * 16px) / 4);
}

@media (max-width: 1024px) {
    .mt-home-ambienti-slider .mt-home-effetto-card {
        flex: 0 0 calc((100% - 16px) / 2);
        max-width: calc((100% - 16px) / 2);
    }
}

@media (max-width: 640px) {
    .mt-home-ambienti-slider .mt-home-effetto-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}




/* =========================================
   HOME — DESTINAZIONI: 2 card centrate
========================================= */

.mt-home-destinazioni-slider .mt-home-effetti-track {
    justify-content: center;
}

.mt-home-destinazioni-slider .mt-home-effetto-card {
    flex: 0 0 320px;
    max-width: 320px;
}


.mt-effetto-shortcode-page .entry-content > p,
.mt-effetto-shortcode-page .entry-content > ul,
.mt-effetto-shortcode-page .entry-content > h2,
.mt-effetto-shortcode-page .entry-content > h3 {
    display: none;
}


.mt-effetto-shortcode-page .entry-content > *:not(.mt-brand-page) {
    display: none;
}


/* =========================================
   EFFETTO PAGE — nasconde solo il contenuto editoriale
   prima dello shortcode effetto
========================================= */

body:has(.mt-custom-effect-page) .entry-content.wp-block-post-content > p,
body:has(.mt-custom-effect-page) .entry-content.wp-block-post-content > ul,
body:has(.mt-custom-effect-page) .entry-content.wp-block-post-content > ol,
body:has(.mt-custom-effect-page) .entry-content.wp-block-post-content > h2,
body:has(.mt-custom-effect-page) .entry-content.wp-block-post-content > h3,
body:has(.mt-custom-effect-page) .entry-content.wp-block-post-content > h4,
body:has(.mt-custom-effect-page) .entry-content.wp-block-post-content > h5,
body:has(.mt-custom-effect-page) .entry-content.wp-block-post-content > h6,
body:has(.mt-custom-effect-page) .entry-content.wp-block-post-content > figure,
body:has(.mt-custom-effect-page) .entry-content.wp-block-post-content > .wp-block-heading,
body:has(.mt-custom-effect-page) .entry-content.wp-block-post-content > .wp-block-paragraph,
body:has(.mt-custom-effect-page) .entry-content.wp-block-post-content > .wp-block-list,
body:has(.mt-custom-effect-page) .entry-content.wp-block-post-content > .term-description {
    display: none !important;
}

/* =========================================================
 * V10.4 — Hub marchi multilingua /marchio/
 * ========================================================= */
.mt-brand-hub {
    max-width: 1500px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}
.mt-brand-hub .mt-brand-hub-hero {
    margin-bottom: 34px;
}
.mt-brand-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 22px;
}
.mt-brand-hub-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 210px;
    padding: 24px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(0,0,0,.05);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mt-brand-hub-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0,0,0,.18);
    box-shadow: 0 14px 34px rgba(0,0,0,.08);
}
.mt-brand-hub-logo {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.mt-brand-hub-logo img {
    max-width: 180px;
    max-height: 70px;
    object-fit: contain;
}
.mt-brand-hub-logo span {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5f1ea;
    font-size: 28px;
    font-weight: 700;
    color: #1b1b1b;
}
.mt-brand-hub-info h2 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.2;
    text-align: center;
}
.mt-brand-hub-info p {
    margin: 0 0 14px;
    text-align: center;
    opacity: .72;
}
.mt-brand-hub-cta {
    display: block;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 12px;
}
@media (max-width: 680px) {
    .mt-brand-hub-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .mt-brand-hub-card {
        min-height: 180px;
        padding: 18px 12px;
    }
    .mt-brand-hub-info h2 {
        font-size: 16px;
    }
}

/* V10.4.1 — nasconde il titolo WordPress standard nelle pagine marchio.
   Rimane visibile il titolo generato dallo shortcode [mondotile_brand_page]. */
body.mt-brand-public-page .wp-block-post-title {
    display: none !important;
}
