/*
Theme Name: The Big Family Residence
Theme URI: https://www.thebigfamily.it/
Author: The Big Family
Description: Tema personalizzato per The Big Family Residence.
Version: 2.0.0
Text Domain: the-big-family
*/

/* =========================================================
   1. VARIABILI E RESET
   ========================================================= */

:root {
    --tbf-brown: #6f3f12;
    --tbf-brown-dark: #4f2b0d;
    --tbf-gold: #a96c12;
    --tbf-gold-light: #d6a15c;
    --tbf-cream: #f7efe3;
    --tbf-cream-light: #fffaf3;
    --tbf-text: #3c2a1d;
    --tbf-muted: #765438;
    --tbf-white: #ffffff;
    --tbf-border: rgba(111, 63, 18, 0.14);
    --tbf-shadow: 0 12px 35px rgba(70, 42, 20, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    color: var(--tbf-text);
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}


/* =========================================================
   2. HEADER DESKTOP
   ========================================================= */

.tbf-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;

    padding: 0;

    color: var(--tbf-brown);
    background: transparent;
}

.tbf-nav {
    width: 100%;
    max-width: 1400px;
    min-height: 96px;

    margin: 0 auto;
    padding: 0 32px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    gap: 28px;
}

.tbf-menu {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    gap: 24px;
}

.tbf-menu-left {
    justify-content: flex-start;
}

.tbf-menu-right {
    justify-content: flex-end;
}

.tbf-menu li {
    margin: 0;
    padding: 0;
}

.tbf-menu a {
    display: inline-block;

    color: var(--tbf-brown);
    text-decoration: none;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    letter-spacing: 0.03em;

    white-space: nowrap;

    transition: color 0.25s ease;
}

.tbf-menu a:hover {
    color: var(--tbf-gold-light);
}


/* =========================================================
   3. LOGO
   ========================================================= */

.tbf-brand {
    display: block;

    text-align: center;
    text-decoration: none;

    color: var(--tbf-brown);
}

.tbf-brand-mark {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 4px;
}

.tbf-brand-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    line-height: 1.05;
}

.tbf-brand-sub {
    margin-top: 6px;

    font-size: 11px;
    letter-spacing: 0.42em;
}


/* =========================================================
   4. PULSANTE PRENOTA
   ========================================================= */

.tbf-book {
    display: inline-block;

    padding: 14px 22px;

    background: var(--tbf-brown);
    color: var(--tbf-white) !important;

    border-radius: 9px;

    font-weight: 700;

    white-space: nowrap;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.tbf-book:hover {
    background: var(--tbf-gold-light);
    color: var(--tbf-white) !important;
    transform: translateY(-1px);
}


/* =========================================================
   5. HOME - HEADER
   ========================================================= */

body.home .tbf-header {
    color: #ffffff;
}

body.home .tbf-header a,
body.home .tbf-header a:visited {
    color: #ffffff !important;
}

body.home .tbf-header a:hover {
    color: var(--tbf-gold-light) !important;
}

body.home .tbf-header .tbf-brand,
body.home .tbf-header .tbf-brand:visited,
body.home .tbf-header .tbf-brand:hover,
body.home .tbf-header .tbf-brand:focus {
    color: var(--tbf-brown) !important;
}

body.home .tbf-header .tbf-book,
body.home .tbf-header .tbf-book:visited {
    color: #ffffff !important;
}

body.home .tbf-header .tbf-book:hover {
    color: #ffffff !important;
    background: var(--tbf-gold-light);
}


/* =========================================================
   6. HERO HOME
   ========================================================= */

.tbf-hero {
    position: relative;

    width: 100%;
    max-width: 100%;

    min-height: calc(100vh - 110px);
    height: calc(100vh - 110px);

    display: flex;
    align-items: center;

    background-image: url("assets/hero.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    overflow: hidden;
}

.tbf-hero::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.30),
            rgba(0,0,0,.03) 62%,
            rgba(255,241,216,.03)
        );

    pointer-events: none;
}

.tbf-hero-inner {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 150px 5vw 90px;

    color: #ffffff;
}

.tbf-kicker {
    font-size: 14px;
    letter-spacing: 0.35em;
    margin-bottom: 12px;
}

.tbf-hero h1 {
    margin: 0 0 20px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(55px, 6.2vw, 92px);
    line-height: 0.95;

    font-weight: 500;
}

.tbf-tagline {
    max-width: 620px;

    margin-bottom: 35px;

    font-family:
        "Brush Script MT",
        "Segoe Script",
        cursive;

    font-size: clamp(28px, 3vw, 45px);
    line-height: 1.05;
}

.tbf-btn {
    display: inline-block;

    padding: 17px 27px;

    border: 1px solid rgba(255,255,255,.9);
    border-radius: 12px;

    background: var(--tbf-brown);
    color: #ffffff;

    font-weight: 700;
    text-decoration: none;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.tbf-btn:hover {
    background: var(--tbf-gold-light);
    color: #ffffff;
    transform: translateY(-2px);
}

.tbf-note {
    position: absolute;

    right: 5vw;
    bottom: 70px;

    z-index: 2;

    max-width: 320px;

    color: #5c3b24;

    font-family:
        "Brush Script MT",
        "Segoe Script",
        cursive;

    font-size: 31px;

    text-align: center;
}

body.home footer {
    margin-top: 0 !important;
}


/* =========================================================
   7. PAGINE INTERNE
   ========================================================= */

.tbf-main {
    width: 100%;
    min-height: 60vh;
}

.tbf-page {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    padding: 130px 24px 80px;
}

.tbf-page h1,
.tbf-page h2,
.tbf-page h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--tbf-brown);
}

.tbf-page h1 {
    margin: 0 0 30px;
    font-size: 54px;
}

.tbf-page h2 {
    font-size: 34px;
}

.tbf-page p,
.tbf-page li {
    font-size: 18px;
    line-height: 1.75;
}

.tbf-page a {
    color: var(--tbf-brown);
}

.tbf-page a:hover {
    color: var(--tbf-gold);
}


/* =========================================================
   8. FOOTER
   ========================================================= */

.tbf-footer {
    padding: 45px 24px;

    background: var(--tbf-cream);

    text-align: center;

    color: var(--tbf-muted);
}


/* =========================================================
   9. COPERTINE GUTENBERG - DESKTOP
   ========================================================= */

.tbf-page .wp-block-cover {
    width: calc(100vw - 120px) !important;
    max-width: calc(100vw - 120px) !important;

    aspect-ratio: 16 / 6 !important;

    height: auto !important;
    min-height: 0 !important;

    position: relative !important;
    left: 50% !important;

    transform: translateX(-50%) !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    overflow: hidden !important;

    box-sizing: border-box !important;
}

.tbf-page .wp-block-cover__image-background {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;

    margin: 0 !important;
    padding: 0 !important;

    filter: none !important;
}


/* =========================================================
   10. PAGINA SERVIZI - BASE
   ========================================================= */

body.page-id-1218 .tbf-main,
body.page-id-1218 .tbf-page {
    overflow: visible !important;
}

body.page-id-1218 .tbf-page {
    padding-top: 0 !important;
}

body.page-id-1218 .tbf-page > h1 {
    display: none !important;
}


/* =========================================================
   11. PAGINA SERVIZI - COPERTINA
   ========================================================= */

body.page-id-1218 .tbf-page > .wp-block-cover:first-child {
    margin-top: 0 !important;
}

body.page-id-1218 .wp-block-cover,
body.page-id-1218 .wp-block-cover__image-background {
    filter: none !important;
    -webkit-filter: none !important;
}

body.page-id-1218 .wp-block-cover::before {
    opacity: 0 !important;
}


/* =========================================================
   12. PAGINA SERVIZI - TITOLO
   ========================================================= */

body.page-id-1218 .tbf-page > .wp-block-heading {
    margin-top: 25px !important;
    margin-bottom: 45px !important;

    text-align: center !important;

    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 34px !important;

    color: var(--tbf-brown) !important;
}


/* =========================================================
   13. PAGINA SERVIZI - COLONNE DESKTOP
   ========================================================= */

body.page-id-1218 .wp-block-columns {
    display: flex !important;

    flex-wrap: nowrap !important;

    width: 100% !important;
    max-width: 1100px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    gap: 80px !important;
}

body.page-id-1218 .wp-block-column {
    flex: 1 1 0 !important;

    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   14. SERVIZI - TESTI DESKTOP
   ========================================================= */

body.page-id-1218 .wp-block-column > p {
    margin-top: 0 !important;
    margin-bottom: 12px !important;

    color: var(--tbf-text) !important;

    font-size: 16px !important;
    line-height: 1.65 !important;
}

body.page-id-1218 .wp-block-column > p strong,
body.page-id-1218 .wp-block-column > p b {
    display: block !important;

    margin-top: 28px !important;
    margin-bottom: 8px !important;

    color: var(--tbf-brown) !important;

    font-family: Arial, Helvetica, sans-serif !important;

    font-size: 15px !important;
    line-height: 1.25 !important;

    font-weight: 700 !important;

    letter-spacing: 0.02em !important;

    white-space: nowrap !important;
}


/* =========================================================
   15. SERVIZI - PRIMO ELEMENTO
   ========================================================= */

body.page-id-1218 .wp-block-column:first-child > p:first-child strong,
body.page-id-1218 .wp-block-column:first-child > p:first-child b {
    margin-top: 0 !important;
}


/* =========================================================
   16. SERVIZI - NELLE VICINANZE
   ========================================================= */

body.page-id-1218 .wp-block-column:nth-child(2) > p:nth-last-child(2) {
    margin-top: 30px !important;

    color: var(--tbf-brown) !important;

    font-size: 17px !important;
    font-weight: 700 !important;
}

body.page-id-1218 .wp-block-column:nth-child(2) > p:last-child {
    font-size: 16px !important;
    line-height: 1.6 !important;
}


/* =========================================================
   17. MENU MOBILE
   ========================================================= */

.tbf-mobile-toggle {
    display: none;
}

.tbf-mobile-menu {
    display: none;
}


/* =========================================================
   18. TABLET
   ========================================================= */

@media screen and (max-width: 1100px) {

    .tbf-nav {
        padding-left: 18px;
        padding-right: 18px;
        gap: 14px;
    }

    .tbf-menu {
        gap: 14px;
    }

    .tbf-menu a {
        font-size: 13px;
    }

    .tbf-brand-name {
        font-size: 23px;
    }

    .tbf-page {
        max-width: 100%;
    }
}


/* =========================================================
   19. TABLET / SMARTPHONE
   ========================================================= */

@media screen and (max-width: 900px) {

    /* HEADER */

    body .tbf-header {
        position: absolute !important;

        top: 0 !important;
        left: 0 !important;
        right: 0 !important;

        width: 100% !important;

        z-index: 9999 !important;

        padding: 0 !important;
    }

    body .tbf-header .tbf-nav {
        position: relative !important;

        width: 100% !important;
        max-width: 100% !important;

        min-height: 80px !important;

        padding: 12px 18px !important;

        display: block !important;
    }

    body .tbf-header .tbf-menu-left,
    body .tbf-header .tbf-menu-right {
        display: none !important;
    }

    /* LOGO */

    body .tbf-header .tbf-brand {
        position: absolute !important;

        left: 50% !important;
        top: 12px !important;

        transform: translateX(-50%) !important;

        display: block !important;

        width: max-content !important;

        margin: 0 !important;

        z-index: 10000 !important;

        text-align: center !important;
    }

    body .tbf-header .tbf-brand-name {
        font-size: 25px !important;
    }

    body .tbf-header .tbf-brand-sub {
        font-size: 9px !important;
        margin-top: 5px !important;
    }

    body .tbf-header .tbf-brand-mark {
        font-size: 18px !important;
    }


    /* HAMBURGER */

    body .tbf-header .tbf-mobile-toggle {
        display: flex !important;

        position: absolute !important;

        top: 18px !important;
        right: 18px !important;

        width: 44px !important;
        height: 44px !important;

        padding: 8px !important;
        margin: 0 !important;

        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;

        gap: 5px !important;

        background: rgba(255,250,243,.96) !important;

        border: 1px solid var(--tbf-brown) !important;
        border-radius: 8px !important;

        z-index: 10001 !important;

        cursor: pointer !important;
    }

    body .tbf-header .tbf-mobile-toggle span {
        display: block !important;

        width: 22px !important;
        height: 2px !important;

        margin: 0 !important;
        padding: 0 !important;

        background: var(--tbf-brown) !important;

        border-radius: 2px !important;

        transition:
            transform .25s ease,
            opacity .25s ease !important;
    }


    /* MENU */

    body .tbf-header .tbf-mobile-menu {
        display: flex !important;

        position: absolute !important;

        top: 80px !important;
        left: 0 !important;
        right: 0 !important;

        width: 100% !important;

        flex-direction: column !important;

        padding: 10px 22px 22px !important;

        background: var(--tbf-cream-light) !important;

        box-shadow: 0 10px 25px rgba(0,0,0,.18) !important;

        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;

        transform: translateY(-10px) !important;

        transition:
            opacity .25s ease,
            transform .25s ease,
            visibility .25s ease !important;

        z-index: 10000 !important;
    }

    body .tbf-header .tbf-mobile-menu.is-open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;

        transform: translateY(0) !important;
    }

    body .tbf-header .tbf-mobile-menu a {
        display: block !important;

        width: 100% !important;

        padding: 15px 5px !important;

        color: var(--tbf-brown) !important;

        font-family: Georgia, "Times New Roman", serif !important;
        font-size: 16px !important;

        text-decoration: none !important;

        border-bottom: 1px solid rgba(111,63,18,.15) !important;
    }

    body .tbf-header .tbf-mobile-menu a:hover {
        color: var(--tbf-gold-light) !important;
    }

    body .tbf-header .tbf-mobile-menu .tbf-mobile-book {
        margin-top: 15px !important;

        padding: 14px 20px !important;

        background: var(--tbf-brown) !important;
        color: #ffffff !important;

        border: 0 !important;
        border-radius: 8px !important;

        text-align: center !important;
        font-weight: 700 !important;
    }


    /* HAMBURGER → X */

    body .tbf-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg) !important;
    }

    body .tbf-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0 !important;
    }

    body .tbf-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg) !important;
    }


    /* HOME HERO */

    .tbf-hero {
        min-height: 720px;
        height: auto;

        background-position: 58% center;
    }

    .tbf-hero-inner {
        padding: 170px 28px 100px;
    }

    .tbf-hero h1 {
        font-size: 55px;
    }

    .tbf-note {
        display: none;
    }


    /* PAGINE */

    .tbf-page {
        width: 100%;
        max-width: 100%;

        padding: 120px 24px 60px;
    }

    .tbf-page h1 {
        font-size: 44px;
    }


    /* =====================================================
       SERVIZI - MOBILE / TABLET
       ===================================================== */

    body.page-id-1218 .tbf-page {
        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;

        padding: 0 18px 60px !important;

        overflow: visible !important;
    }

    body.page-id-1218 .tbf-main {
        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;
    }


    /* COPERTINA */

    body.page-id-1218 .tbf-page .tbf-servizi-cover {
        display: block !important;

        width: calc(100% + 36px) !important;
        max-width: none !important;

        height: auto !important;
        min-height: 0 !important;

        aspect-ratio: 16 / 7 !important;

        margin-top: 0 !important;
        margin-left: -18px !important;
        margin-right: -18px !important;
        margin-bottom: 34px !important;

        padding: 0 !important;

        position: relative !important;
        left: auto !important;

        transform: none !important;

        overflow: hidden !important;

        box-sizing: border-box !important;
    }

    body.page-id-1218 .tbf-page .tbf-servizi-cover .wp-block-cover__image-background {
        width: 100% !important;
        height: 100% !important;

        min-width: 100% !important;
        min-height: 100% !important;

        object-fit: cover !important;
        object-position: center center !important;

        opacity: 1 !important;
        filter: none !important;
    }


    /* TITOLO */

    body.page-id-1218 .tbf-page > .wp-block-heading {
        width: 100% !important;

        margin: 0 0 42px !important;

        text-align: center !important;

        font-size: 32px !important;
        line-height: 1.15 !important;
    }


    /* =====================================================
       IMPORTANTISSIMO:
       SU MOBILE LE DUE COLONNE DIVENTANO UN SOLO FLUSSO
       ===================================================== */

    body.page-id-1218 .tbf-page .wp-block-columns {
        display: contents !important;

        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    body.page-id-1218 .tbf-page .wp-block-column {
        display: contents !important;

        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;

        min-height: 0 !important;
        height: auto !important;

        flex: none !important;
    }


    /* ELIMINA EVENTUALI SPAZIATORI */

    body.page-id-1218 .tbf-page .wp-block-spacer {
        display: none !important;
    }


    /* SERVIZI */

    body.page-id-1218 .tbf-page .wp-block-column > p {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: 0 0 30px !important;
        padding: 0 !important;

        color: var(--tbf-text) !important;

        font-family: Arial, Helvetica, sans-serif !important;

        font-size: 17px !important;
        line-height: 1.55 !important;

        position: static !important;
        transform: none !important;
    }


    /* TITOLI SERVIZI */

    body.page-id-1218 .tbf-page .wp-block-column > p strong,
    body.page-id-1218 .tbf-page .wp-block-column > p b {

        display: block !important;

        margin: 0 0 8px !important;

        color: var(--tbf-brown) !important;

        font-size: 17px !important;
        line-height: 1.25 !important;

        font-weight: 700 !important;

        white-space: normal !important;
    }


    /* DESCRIZIONI */

    body.page-id-1218 .tbf-page .wp-block-column p:not(:has(strong)):not(:has(b)) {
        margin-top: 0 !important;
        margin-bottom: 30px !important;

        font-size: 17px !important;
        line-height: 1.55 !important;
    }


    /* NELLE VICINANZE */

    body.page-id-1218 .tbf-page .wp-block-column:nth-child(2) > p:nth-last-child(2) {
        margin-top: 25px !important;
        margin-bottom: 10px !important;

        font-size: 19px !important;

        color: var(--tbf-brown) !important;
    }

    body.page-id-1218 .tbf-page .wp-block-column:nth-child(2) > p:last-child {
        margin-bottom: 15px !important;

        font-size: 16px !important;
        line-height: 1.6 !important;
    }
}


/* =========================================================
   20. SMARTPHONE
   ========================================================= */

@media screen and (max-width: 600px) {

    body .tbf-header .tbf-mobile-toggle {
        top: 15px !important;
        right: 15px !important;

        width: 42px !important;
        height: 42px !important;
    }

    body .tbf-header .tbf-mobile-menu {
        top: 72px !important;
    }

    body .tbf-header .tbf-brand-name {
        font-size: 22px !important;
    }

    body .tbf-header .tbf-brand-sub {
        font-size: 8px !important;
        letter-spacing: 0.28em !important;
    }

    body .tbf-header .tbf-brand-mark {
        font-size: 16px !important;
    }


    /* HOME */

    .tbf-hero {
        min-height: 680px;
    }

    .tbf-hero-inner {
        padding: 160px 24px 80px;
    }

    .tbf-hero h1 {
        font-size: 48px;
    }

    .tbf-tagline {
        font-size: 30px;
    }


    /* PAGINE INTERNE */

    .tbf-page {
        padding-left: 18px;
        padding-right: 18px;
    }


    /* SERVIZI */

    body.page-id-1218 .tbf-page {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    body.page-id-1218 .tbf-page .tbf-servizi-cover {
        width: calc(100% + 36px) !important;

        margin-left: -18px !important;
        margin-right: -18px !important;

        aspect-ratio: 16 / 7 !important;
    }

    body.page-id-1218 .tbf-page > .wp-block-heading {
        margin-bottom: 38px !important;

        font-size: 31px !important;
    }
}


/* =========================================================
   21. TABLET ORIZZONTALE / PICCOLI TABLET
   ========================================================= */

@media screen and (min-width: 601px) and (max-width: 900px) {

    .tbf-page {
        padding-left: 32px;
        padding-right: 32px;
    }

    body.page-id-1218 .tbf-page .tbf-servizi-cover {
        width: calc(100% + 64px) !important;

        margin-left: -32px !important;
        margin-right: -32px !important;

        aspect-ratio: 16 / 7 !important;
    }

    body.page-id-1218 .tbf-page .wp-block-column > p {
        font-size: 18px !important;
    }
}
/* ==========================================================
   THE BIG FAMILY — SERVIZI LUXURY 2.0
   Desktop grid + Tablet responsive + Mobile carousel
   ========================================================== */

:root {
    --tbf-lux-brown: #6f3f12;
    --tbf-lux-brown-dark: #4e2a0c;
    --tbf-lux-gold: #a96c12;
    --tbf-lux-gold-light: #c89a55;
    --tbf-lux-cream: #f7efe3;
    --tbf-lux-cream-light: #fbf7f1;
    --tbf-lux-white: #ffffff;
    --tbf-lux-text: #3c2a1d;
    --tbf-lux-muted: #796b5f;
    --tbf-lux-border: rgba(111, 63, 18, 0.14);
    --tbf-lux-shadow: 0 12px 35px rgba(65, 40, 20, 0.08);
}


/* ----------------------------------------------------------
   CONTENITORE GENERALE
   ---------------------------------------------------------- */

body.page-id-1218 .tbf-page {
    background: var(--tbf-lux-cream-light);
}

body.page-id-1218 .tbf-page > * {
    box-sizing: border-box;
}


/* ----------------------------------------------------------
   HERO SERVIZI
   ---------------------------------------------------------- */

body.page-id-1218 .tbf-servizi-cover {
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.page-id-1218 .tbf-servizi-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(45, 24, 10, 0.58) 0%,
            rgba(45, 24, 10, 0.30) 42%,
            rgba(45, 24, 10, 0.05) 75%
        );
    pointer-events: none;
}

body.page-id-1218 .tbf-servizi-cover .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
}


/* ----------------------------------------------------------
   INTRO
   ---------------------------------------------------------- */

.tbf-amenities-intro {
    max-width: 850px;
    margin: 70px auto 55px;
    padding: 0 25px;
    text-align: center;
}

.tbf-amenities-eyebrow {
    margin: 0 0 12px;
    color: var(--tbf-lux-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.30em;
    text-transform: uppercase;
}

.tbf-amenities-title {
    margin: 0;
    color: var(--tbf-lux-brown);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.08;
    font-weight: 400;
}

.tbf-amenities-description {
    max-width: 680px;
    margin: 22px auto 0;
    color: var(--tbf-lux-muted);
    font-size: 17px;
    line-height: 1.75;
}


/* ----------------------------------------------------------
   CATEGORIE
   ---------------------------------------------------------- */

.tbf-amenity-section {
    max-width: 1180px;
    margin: 0 auto 75px;
    padding: 0 30px;
}

.tbf-amenity-category {
    margin-bottom: 22px;
    text-align: center;
}

.tbf-amenity-category span {
    display: inline-block;
    color: var(--tbf-lux-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.tbf-amenity-category h3 {
    margin: 8px 0 0;
    color: var(--tbf-lux-brown);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 400;
}


/* ----------------------------------------------------------
   GRID DESKTOP
   ---------------------------------------------------------- */

.tbf-amenity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--tbf-lux-border);
    border-left: 1px solid var(--tbf-lux-border);
    background: rgba(255,255,255,0.45);
}


/* ----------------------------------------------------------
   SINGOLA CARD
   ---------------------------------------------------------- */

.tbf-amenity-card {
    position: relative;
    min-height: 220px;
    padding: 34px 24px 30px;
    border-right: 1px solid var(--tbf-lux-border);
    border-bottom: 1px solid var(--tbf-lux-border);
    background: rgba(255,255,255,0.50);
    text-align: center;
    transition:
        transform 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;
}

.tbf-amenity-card:hover {
    z-index: 2;
    transform: translateY(-5px);
    background: var(--tbf-lux-white);
    box-shadow: var(--tbf-lux-shadow);
}


/* ----------------------------------------------------------
   ICONA
   ---------------------------------------------------------- */

.tbf-amenity-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 19px;
    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(169,108,18,0.45);
    border-radius: 50%;

    color: var(--tbf-lux-brown);
    font-size: 25px;

    background: rgba(255,255,255,0.55);

    transition:
        background 0.35s ease,
        color 0.35s ease,
        transform 0.35s ease;
}

.tbf-amenity-card:hover .tbf-amenity-icon {
    background: var(--tbf-lux-brown);
    color: var(--tbf-lux-white);
    transform: scale(1.05);
}


/* ----------------------------------------------------------
   TESTI CARD
   ---------------------------------------------------------- */

.tbf-amenity-card h4 {
    margin: 0 0 9px;
    color: var(--tbf-lux-brown);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 400;
}

.tbf-amenity-card p {
    max-width: 210px;
    margin: 0 auto;
    color: var(--tbf-lux-muted);
    font-size: 14px;
    line-height: 1.65;
}


/* ----------------------------------------------------------
   SEZIONE FRA LE CATEGORIE
   ---------------------------------------------------------- */

.tbf-amenity-divider {
    width: 45px;
    height: 1px;
    margin: 0 auto 55px;
    background: var(--tbf-lux-gold);
}


/* ----------------------------------------------------------
   BANNER "COME A CASA"
   ---------------------------------------------------------- */

.tbf-services-signature {
    max-width: 1180px;
    min-height: 260px;
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    background: var(--tbf-lux-cream);
}

.tbf-services-signature-image {
    min-height: 260px;
    background-position: center;
    background-size: cover;
}

.tbf-services-signature-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    text-align: center;
}

.tbf-services-signature-text p {
    margin: 0;
    color: var(--tbf-lux-brown);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(27px, 3vw, 42px);
    line-height: 1.3;
    font-style: italic;
}

.tbf-services-signature-text span {
    display: block;
    width: 45px;
    height: 1px;
    margin: 25px auto 0;
    background: var(--tbf-lux-gold);
}


/* ----------------------------------------------------------
   CTA
   ---------------------------------------------------------- */

.tbf-services-cta {
    padding: 80px 25px 90px;
    background: var(--tbf-lux-cream);
    text-align: center;
}

.tbf-services-cta-icon {
    color: var(--tbf-lux-brown);
    font-size: 30px;
    margin-bottom: 15px;
}

.tbf-services-cta h3 {
    margin: 0 0 10px;
    color: var(--tbf-lux-brown);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 400;
}

.tbf-services-cta p {
    margin: 0 0 25px;
    color: var(--tbf-lux-muted);
    font-size: 15px;
}

.tbf-services-cta a {
    display: inline-block;
    padding: 13px 30px;
    background: var(--tbf-lux-brown);
    color: #fff !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.tbf-services-cta a:hover {
    background: var(--tbf-lux-gold);
    transform: translateY(-2px);
}


/* ==========================================================
   TABLET
   ========================================================== */

@media screen and (max-width: 900px) {

    .tbf-amenity-section {
        padding: 0 22px;
    }

    .tbf-amenity-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tbf-services-signature {
        grid-template-columns: 1fr;
        margin-left: 22px;
        margin-right: 22px;
    }

    .tbf-services-signature-image {
        min-height: 230px;
    }
}


/* ==========================================================
   SMARTPHONE
   ========================================================== */

@media screen and (max-width: 600px) {

    /* Intro */

    .tbf-amenities-intro {
        margin: 48px auto 38px;
        padding: 0 22px;
    }

    .tbf-amenities-eyebrow {
        font-size: 10px;
        letter-spacing: 0.22em;
    }

    .tbf-amenities-title {
        font-size: 38px;
    }

    .tbf-amenities-description {
        font-size: 15px;
        line-height: 1.65;
    }


    /* Sezione */

    .tbf-amenity-section {
        margin-bottom: 55px;
        padding: 0;
        overflow: hidden;
    }

    .tbf-amenity-category {
        padding: 0 22px;
        text-align: left;
    }

    .tbf-amenity-category h3 {
        font-size: 26px;
    }


    /* ------------------------------------------------------
       CAROSELLO MOBILE
       ------------------------------------------------------ */

    .tbf-amenity-grid {
        display: flex;
        grid-template-columns: none;

        gap: 15px;

        width: 100%;

        overflow-x: auto;
        overflow-y: hidden;

        padding:
            10px 22px 22px;

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }

    .tbf-amenity-grid::-webkit-scrollbar {
        display: none;
    }


    /* Card */

    .tbf-amenity-card {
        flex: 0 0 78%;
        width: 78%;
        min-height: 255px;

        padding: 38px 24px 30px;

        scroll-snap-align: center;

        background: rgba(255,255,255,0.85);

        box-shadow:
            0 8px 25px rgba(65,40,20,0.07);

        border: 1px solid var(--tbf-lux-border);
    }

    .tbf-amenity-card:hover {
        transform: none;
        box-shadow:
            0 8px 25px rgba(65,40,20,0.07);
    }


    /* Icon */

    .tbf-amenity-icon {
        width: 64px;
        height: 64px;
        font-size: 27px;
        margin-bottom: 22px;
    }

    .tbf-amenity-card h4 {
        font-size: 22px;
    }

    .tbf-amenity-card p {
        font-size: 14px;
        line-height: 1.65;
    }


    /* Indicazione swipe */

    .tbf-amenity-section::after {
        content: "SCORRI →";
        display: block;
        margin-top: 2px;
        padding-right: 22px;

        color: var(--tbf-lux-gold);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.20em;

        text-align: right;
    }


    /* Signature */

    .tbf-services-signature {
        margin: 0 0 55px;
    }

    .tbf-services-signature-image {
        min-height: 210px;
    }

    .tbf-services-signature-text {
        min-height: 210px;
        padding: 35px 25px;
    }

    .tbf-services-signature-text p {
        font-size: 29px;
    }


    /* CTA */

    .tbf-services-cta {
        padding: 60px 22px 70px;
    }

    .tbf-services-cta h3 {
        font-size: 29px;
    }

    .tbf-services-cta p {
        font-size: 14px;
        line-height: 1.6;
    }
}


/* ==========================================================
   ANIMAZIONI E ACCESSIBILITÀ
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .tbf-amenity-card,
    .tbf-amenity-icon,
    .tbf-services-cta a {
        transition: none !important;
    }
}
/* ==========================================================
   FIX ICONE SVG — SERVIZI LUXURY
   ========================================================== */

.tbf-amenity-icon {
    flex-shrink: 0 !important;
    overflow: hidden !important;
}

.tbf-amenity-icon svg {
    display: block !important;
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;

    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;

    color: inherit !important;
}

.tbf-amenity-icon svg path,
.tbf-amenity-icon svg line,
.tbf-amenity-icon svg polyline,
.tbf-amenity-icon svg polygon,
.tbf-amenity-icon svg rect,
.tbf-amenity-icon svg circle {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}


/* Dimensione icone smartphone */

@media screen and (max-width: 600px) {

    .tbf-amenity-icon svg {
        width: 32px !important;
        height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }
}

/* ==========================================================
   THE BIG FAMILY — CAROUSEL SERVIZI
   VERSIONE DEFINITIVA
   ========================================================== */

.tbf-lux-services {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 0 80px;

    overflow: hidden;

    background: #fbf7f1;

    box-sizing: border-box;
}


/* ==========================================================
   INTRO
   ========================================================== */

.tbf-lux-services-intro {
    max-width: 760px;
    margin: 0 auto 48px;
    padding: 0 25px;

    text-align: center;

    box-sizing: border-box;
}

.tbf-lux-eyebrow {
    margin: 0 0 12px;

    color: #a96c12;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .28em;
    text-transform: uppercase;
}

.tbf-lux-services-intro h2 {
    margin: 0;

    color: #6f3f12;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 48px;
    font-weight: 400;
    line-height: 1.15;
}

.tbf-lux-services-intro > p:last-child {
    max-width: 650px;

    margin: 18px auto 0;

    color: #796b5f;

    font-size: 15px;
    line-height: 1.7;
}


/* ==========================================================
   CAROUSEL
   ========================================================== */

.tbf-services-carousel {
    position: relative;

    width: 100%;
    max-width: 100%;

    margin: 0 auto;

    overflow: hidden;

    box-sizing: border-box;
}


/* ==========================================================
   TRACK
   ========================================================== */

.tbf-services-track {

    display: flex;

    flex-direction: row;

    width: 100%;
    max-width: none;

    margin: 0;
    padding: 10px 0 25px;

    gap: 0;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    scrollbar-width: none;

    box-sizing: border-box;
}

.tbf-services-track::-webkit-scrollbar {
    display: none;
}


/* ==========================================================
   CARD
   ========================================================== */

.tbf-service-card {

    flex: 0 0 25%;

    width: 25%;
    min-width: 25%;
    max-width: 25%;

    min-height: 245px;

    padding: 32px 25px 28px;

    box-sizing: border-box;

    border-top: 1px solid rgba(111,63,18,.14);
    border-bottom: 1px solid rgba(111,63,18,.14);
    border-right: 1px solid rgba(111,63,18,.14);

    background: rgba(255,255,255,.68);

    text-align: center;

    scroll-snap-align: start;

    transition:
        background .35s ease,
        transform .35s ease,
        box-shadow .35s ease;
}

.tbf-service-card:first-child {
    border-left: 1px solid rgba(111,63,18,.14);
}

.tbf-service-card:hover {
    background: #fff;

    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(65,40,20,.08);
}


/* ==========================================================
   ICONA
   ========================================================== */

.tbf-service-icon {

    width: 60px;
    height: 60px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(169,108,18,.42);

    border-radius: 50%;

    color: #6f3f12;

    background: #fff;

    box-sizing: border-box;
}

.tbf-service-icon svg {

    width: 31px !important;
    height: 31px !important;

    display: block;

    fill: none !important;

    stroke: currentColor !important;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.tbf-service-icon svg * {

    fill: none !important;

    stroke: currentColor !important;
}


/* ==========================================================
   TESTO CARD
   ========================================================== */

.tbf-service-card h3 {

    margin: 0 0 10px;

    color: #6f3f12;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 20px;

    font-weight: 400;

    line-height: 1.25;
}

.tbf-service-card p {

    max-width: 210px;

    margin: 0 auto;

    color: #796b5f;

    font-size: 13px;

    line-height: 1.6;
}


/* ==========================================================
   FRECCE
   ========================================================== */

.tbf-carousel-arrow {

    position: absolute;

    z-index: 20;

    top: 50%;

    transform: translateY(-50%);

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(111,63,18,.25);

    border-radius: 50%;

    background: rgba(255,255,255,.96);

    color: #6f3f12;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 29px;

    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 5px 18px rgba(50,30,15,.08);

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;
}

.tbf-carousel-arrow:hover {

    background: #6f3f12;

    color: #fff;
}

.tbf-carousel-arrow:active {

    transform:
        translateY(-50%)
        scale(.94);
}

.tbf-carousel-prev {

    left: 18px;
}

.tbf-carousel-next {

    right: 18px;
}


/* ==========================================================
   PALLINI
   ========================================================== */

.tbf-carousel-dots {

    display: flex;

    justify-content: center;
    align-items: center;

    gap: 8px;

    margin-top: 8px;
}

.tbf-carousel-dot {

    width: 7px;
    height: 7px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #d5c7b6;

    cursor: pointer;

    transition:
        width .25s ease,
        background .25s ease;
}

.tbf-carousel-dot.is-active {

    width: 20px;

    border-radius: 10px;

    background: #6f3f12;
}


/* ==========================================================
   TESTO INFERIORE
   ========================================================== */

.tbf-carousel-hint {

    margin: 16px 0 0;

    color: #a96c12;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .22em;

    text-align: center;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media screen and (max-width: 900px) {

    .tbf-service-card {

        flex: 0 0 33.333333%;

        width: 33.333333%;

        min-width: 33.333333%;

        max-width: 33.333333%;
    }

    .tbf-lux-services-intro h2 {

        font-size: 42px;
    }
}


/* ==========================================================
   SMARTPHONE
   ========================================================== */

@media screen and (max-width: 600px) {

    .tbf-lux-services {

        padding: 48px 0 60px;
    }


    .tbf-lux-services-intro {

        margin-bottom: 30px;

        padding: 0 22px;
    }


    .tbf-lux-eyebrow {

        font-size: 9px;

        letter-spacing: .23em;
    }


    .tbf-lux-services-intro h2 {

        font-size: 36px;
    }


    .tbf-lux-services-intro > p:last-child {

        font-size: 14px;

        line-height: 1.65;
    }


    /* TRACK MOBILE */

    .tbf-services-track {

        gap: 14px;

        padding-left: 22px;
        padding-right: 22px;

        scroll-padding-left: 22px;
    }


    /* CARD MOBILE */

    .tbf-service-card {

        flex: 0 0 82%;

        width: 82%;

        min-width: 82%;

        max-width: 82%;

        min-height: 250px;

        padding: 34px 24px 28px;

        border: 1px solid rgba(111,63,18,.14);

        border-radius: 2px;

        box-shadow:
            0 8px 25px rgba(65,40,20,.06);
    }


    .tbf-service-card:hover {

        transform: none;
    }


    .tbf-service-icon {

        width: 64px;
        height: 64px;

        margin-bottom: 21px;
    }


    .tbf-service-icon svg {

        width: 33px !important;
        height: 33px !important;
    }


    .tbf-service-card h3 {

        font-size: 22px;
    }


    .tbf-service-card p {

        font-size: 14px;

        line-height: 1.65;
    }


    /* FRECCE MOBILE */

    .tbf-carousel-arrow {

        width: 38px;
        height: 38px;

        font-size: 25px;
    }


    .tbf-carousel-prev {

        left: 10px;
    }


    .tbf-carousel-next {

        right: 10px;
    }


    .tbf-carousel-hint {

        font-size: 8px;
    }
}

/* ==========================================================
   THE BIG FAMILY — SERVIZI
   DESKTOP FULL WIDTH
   ========================================================== */


/* ----------------------------------------------------------
   1. ELIMINA IL TITOLO "SERVIZI" DELLA PAGINA
   ---------------------------------------------------------- */

body.page-id-1218 .tbf-page > h1,
body.page-id-1218 .tbf-page > .entry-title,
body.page-id-1218 .tbf-main > h1,
body.page-id-1218 .tbf-main > .entry-title {
    display: none !important;
}


/* ----------------------------------------------------------
   2. SEZIONE SERVIZI A TUTTA LARGHEZZA
   ---------------------------------------------------------- */

@media screen and (min-width: 901px) {

    body.page-id-1218 .tbf-lux-services {

        width: 100vw !important;
        max-width: none !important;

        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;

        box-sizing: border-box !important;

        background: #f4ede3 !important;

        padding: 72px 0 68px !important;

        overflow: hidden !important;
    }


    /* ------------------------------------------------------
       INTRO
       ------------------------------------------------------ */

    body.page-id-1218 .tbf-lux-services-intro {

        max-width: 850px !important;

        margin-left: auto !important;
        margin-right: auto !important;

        margin-bottom: 48px !important;

        padding-left: 30px !important;
        padding-right: 30px !important;
    }


    body.page-id-1218 .tbf-lux-services-intro h2 {

        font-size: 48px !important;

        color: #6f3f12 !important;

        margin-bottom: 0 !important;
    }


    body.page-id-1218 .tbf-lux-services-intro > p:last-child {

        max-width: 700px !important;
    }


    /* ------------------------------------------------------
       CAROUSEL FULL WIDTH
       ------------------------------------------------------ */

    body.page-id-1218 .tbf-services-carousel {

        width: 100% !important;

        position: relative !important;
    }


    body.page-id-1218 .tbf-services-track {

        width: 100% !important;

        padding-left: 0 !important;
        padding-right: 0 !important;

        background: transparent !important;

        overflow-x: auto !important;
    }


    /* ------------------------------------------------------
       5 CARD VISIBILI SUL DESKTOP
       ------------------------------------------------------ */

    body.page-id-1218 .tbf-service-card {

        flex: 0 0 20% !important;

        width: 20% !important;

        min-height: 250px !important;

        padding: 34px 28px 30px !important;

        box-sizing: border-box !important;

        background: rgba(255,255,255,.58) !important;

        border-top: 1px solid rgba(111,63,18,.14) !important;
        border-bottom: 1px solid rgba(111,63,18,.14) !important;
        border-right: 1px solid rgba(111,63,18,.14) !important;
    }


    body.page-id-1218 .tbf-service-card:first-child {

        border-left: 1px solid rgba(111,63,18,.14) !important;
    }


    body.page-id-1218 .tbf-service-card:hover {

        background: rgba(255,255,255,.92) !important;

        transform: translateY(-3px) !important;

        box-shadow:
            0 12px 30px rgba(65,40,20,.07) !important;
    }


    /* ------------------------------------------------------
       FRECCE AI BORDI DELLO SCHERMO
       ------------------------------------------------------ */

    body.page-id-1218 .tbf-carousel-prev {

        left: 20px !important;
    }


    body.page-id-1218 .tbf-carousel-next {

        right: 20px !important;
    }


    /* ------------------------------------------------------
       PALLINI
       ------------------------------------------------------ */

    body.page-id-1218 .tbf-carousel-dots {

        margin-top: 22px !important;
    }


    body.page-id-1218 .tbf-carousel-hint {

        margin-top: 15px !important;
    }

}


/* ==========================================================
   SMARTPHONE
   LASCIAMO IL CAROUSEL COME È
   ========================================================== */

@media screen and (max-width: 600px) {

    body.page-id-1218 .tbf-lux-services {

        width: 100% !important;
        max-width: 100% !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        background: #f4ede3 !important;
    }

}

/* ==========================================================
   SERVIZI — FIX DEFINITIVO DESKTOP
   ========================================================== */

/* Nasconde il titolo della pagina */
body.page-id-1218 .tbf-page h1:first-child {
    display: none !important;
}


/* Contenitore principale: permette alla sezione di uscire
   dalla larghezza standard della pagina */
body.page-id-1218 .tbf-page {
    overflow: visible !important;
}


/* CAROUSEL SERVIZI — FULL WIDTH */
@media screen and (min-width: 901px) {

    body.page-id-1218 .tbf-lux-services {
        position: relative !important;

        width: 100vw !important;
        max-width: none !important;

        left: 50% !important;
        transform: translateX(-50%) !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        box-sizing: border-box !important;

        background: #f4ede3 !important;

        padding: 70px 0 65px !important;

        overflow: hidden !important;
    }


    /* INTRO CENTRATA */

    body.page-id-1218 .tbf-lux-services-intro {
        width: 100% !important;
        max-width: 850px !important;

        margin-left: auto !important;
        margin-right: auto !important;

        padding-left: 30px !important;
        padding-right: 30px !important;

        box-sizing: border-box !important;
    }


    /* CAROUSEL */

    body.page-id-1218 .tbf-services-carousel {
        width: 100% !important;
        max-width: none !important;
    }


    body.page-id-1218 .tbf-services-track {
        width: 100% !important;
        max-width: none !important;

        padding-left: 0 !important;
        padding-right: 0 !important;

        overflow-x: auto !important;
    }


    /* 5 SERVIZI VISIBILI */

    body.page-id-1218 .tbf-service-card {
        flex: 0 0 20% !important;
        width: 20% !important;

        min-height: 250px !important;

        box-sizing: border-box !important;
    }


    /* FRECCE */

    body.page-id-1218 .tbf-carousel-prev {
        left: 22px !important;
    }

    body.page-id-1218 .tbf-carousel-next {
        right: 22px !important;
    }

}


/* ==========================================================
   SMARTPHONE — NON CAMBIARE IL CAROUSEL
   ========================================================== */

@media screen and (max-width: 600px) {

    body.page-id-1218 .tbf-lux-services {
        width: 100% !important;
        max-width: 100% !important;

        left: auto !important;
        transform: none !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        background: #f4ede3 !important;
    }

}

/* =========================================================
   THE BIG FAMILY - SERVIZI DESKTOP
   ========================================================= */

/* Nasconde il titolo "Servizi" duplicato
   solo nella pagina che contiene il nuovo carousel */
body:has(.tbf-lux-services) .tbf-page > h1 {
    display: none !important;
}


/* Permette al carousel di uscire dalla larghezza
   limitata del contenuto della pagina */
body:has(.tbf-lux-services) .tbf-page {
    overflow: visible !important;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media screen and (min-width: 901px) {

    /* Sezione servizi a tutta larghezza */
    body:has(.tbf-lux-services) .tbf-lux-services {
        position: relative !important;

        width: 100vw !important;
        max-width: none !important;

        left: 50% !important;
        transform: translateX(-50%) !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        box-sizing: border-box !important;

        background: #f4ede3 !important;

        padding: 70px 0 65px !important;

        overflow: hidden !important;
    }


    /* Intro centrale */
    body:has(.tbf-lux-services) .tbf-lux-services-intro {
        width: 100% !important;
        max-width: 850px !important;

        margin-left: auto !important;
        margin-right: auto !important;

        padding-left: 30px !important;
        padding-right: 30px !important;

        box-sizing: border-box !important;
    }


    /* Carousel a tutta larghezza */
    body:has(.tbf-lux-services) .tbf-services-carousel {
        width: 100% !important;
        max-width: none !important;

        position: relative !important;
    }


    body:has(.tbf-lux-services) .tbf-services-track {
        width: 100% !important;
        max-width: none !important;

        display: flex !important;

        gap: 0 !important;

        padding-left: 0 !important;
        padding-right: 0 !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        box-sizing: border-box !important;
    }


    /* 5 servizi visibili contemporaneamente */
    body:has(.tbf-lux-services) .tbf-service-card {
        flex: 0 0 20% !important;
        width: 20% !important;

        min-width: 20% !important;

        min-height: 250px !important;

        box-sizing: border-box !important;
    }


    /* Frecce */
    body:has(.tbf-lux-services) .tbf-carousel-prev {
        left: 22px !important;
    }

    body:has(.tbf-lux-services) .tbf-carousel-next {
        right: 22px !important;
    }
}


/* =========================================================
   SMARTPHONE
   NON MODIFICHIAMO IL LAYOUT MOBILE
   ========================================================= */

@media screen and (max-width: 900px) {

    body:has(.tbf-lux-services) .tbf-lux-services {
        width: 100% !important;
        max-width: 100% !important;

        left: auto !important;
        transform: none !important;

        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media screen and (max-width: 900px) {

    .tbf-page .tbf-servizi-cover {
        display: block !important;

        width: 100vw !important;
        max-width: 100vw !important;

        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;

        margin-top: 0 !important;
        margin-bottom: 30px !important;

        height: auto !important;
        min-height: 0 !important;

        aspect-ratio: 16 / 6.3 !important;

        padding: 0 !important;

        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;

        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .tbf-page .tbf-servizi-cover .wp-block-cover__image-background {
        width: 100% !important;
        height: 100% !important;

        min-width: 100% !important;
        min-height: 100% !important;

        object-fit: cover !important;
        object-position: center center !important;

        margin: 0 !important;
        padding: 0 !important;
    }
}

/* =========================================================
   MENU MOBILE - COLORE VOCI
   ========================================================= */

@media screen and (max-width: 900px) {

    .tbf-mobile-menu a,
    .tbf-mobile-menu a:visited,
    .tbf-mobile-menu a:hover,
    .tbf-mobile-menu a:focus,
    .tbf-mobile-menu a:active {
        color: #6F3F12 !important;
        text-decoration: none !important;
    }

    .tbf-mobile-menu .tbf-mobile-book,
    .tbf-mobile-menu .tbf-mobile-book:visited,
    .tbf-mobile-menu .tbf-mobile-book:hover,
    .tbf-mobile-menu .tbf-mobile-book:focus,
    .tbf-mobile-menu .tbf-mobile-book:active {
        color: #ffffff !important;
    }
}

/* =========================================================
   MENU MOBILE - COLORE VOCI
   ========================================================= */

@media screen and (max-width: 900px) {

    .tbf-mobile-menu a,
    .tbf-mobile-menu a:visited,
    .tbf-mobile-menu a:hover,
    .tbf-mobile-menu a:focus,
    .tbf-mobile-menu a:active {
        color: #6F3F12 !important;
        text-decoration: none !important;
    }

    .tbf-mobile-menu .tbf-mobile-book,
    .tbf-mobile-menu .tbf-mobile-book:visited,
    .tbf-mobile-menu .tbf-mobile-book:hover,
    .tbf-mobile-menu .tbf-mobile-book:focus,
    .tbf-mobile-menu .tbf-mobile-book:active {
        color: #ffffff !important;
    }
}

/* =========================================================
   HOME - MENU MOBILE
   ========================================================= */

@media screen and (max-width: 900px) {

    body.home .tbf-mobile-menu a,
    body.home .tbf-mobile-menu a:visited,
    body.home .tbf-mobile-menu a:hover,
    body.home .tbf-mobile-menu a:focus,
    body.home .tbf-mobile-menu a:active {
        color: #6F3F12 !important;
    }

    body.home .tbf-mobile-menu .tbf-mobile-book,
    body.home .tbf-mobile-menu .tbf-mobile-book:visited,
    body.home .tbf-mobile-menu .tbf-mobile-book:hover,
    body.home .tbf-mobile-menu .tbf-mobile-book:focus,
    body.home .tbf-mobile-menu .tbf-mobile-book:active {
        color: #ffffff !important;
    }
}

/* =========================================================
   THE BIG FAMILY — PAGINA CONTATTI
   ========================================================= */


/* ---------------------------------------------------------
   1. NASCONDE IL TITOLO WORDPRESS "CONTATTI"
   --------------------------------------------------------- */

body:has(.tbf-contact-page) .tbf-page > h1 {
    display: none !important;
}


/* ---------------------------------------------------------
   2. CONTENITORE GENERALE
   --------------------------------------------------------- */

body:has(.tbf-contact-page) .tbf-page {
    overflow: visible !important;
}


/* ---------------------------------------------------------
   3. BANNER CONTATTI
   --------------------------------------------------------- */

body:has(.tbf-contact-page) .tbf-contatti-banner {
    display: block !important;

    width: calc(100vw - 72px) !important;
    max-width: none !important;

    margin-left: calc(50% - 50vw + 36px) !important;
    margin-right: 0 !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding: 0 !important;

    overflow: hidden !important;

    box-sizing: border-box !important;
}


/* Immagine dentro il banner */

body:has(.tbf-contact-page) .tbf-contatti-banner img {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover !important;
}


/* ---------------------------------------------------------
   4. FASCIA CONTATTI
   --------------------------------------------------------- */

.tbf-contact-info {
    width: 100vw !important;
    max-width: none !important;

    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    background: #f4ede3 !important;

    padding: 28px 0 !important;

    box-sizing: border-box !important;
}


.tbf-contact-info-inner {
    width: calc(100% - 72px) !important;
    max-width: 1400px !important;

    margin: 0 auto !important;

    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;

    gap: 0 !important;

    box-sizing: border-box !important;
}


/* ---------------------------------------------------------
   5. CARD CONTATTO
   --------------------------------------------------------- */

.tbf-contact-card {
    min-height: 190px !important;

    padding: 25px 20px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    text-align: center !important;

    box-sizing: border-box !important;

    background: rgba(255,255,255,0.72) !important;

    border-right: 1px solid #e5d7c5 !important;

    color: #6F3F12 !important;

    text-decoration: none !important;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease !important;
}


.tbf-contact-card:first-child {
    border-left: 1px solid #e5d7c5 !important;
}


.tbf-contact-card:hover {
    background: #ffffff !important;

    color: #6F3F12 !important;

    transform: translateY(-3px) !important;

    box-shadow: 0 8px 25px rgba(90,60,30,0.08) !important;
}


.tbf-contact-card-static {
    cursor: default !important;
}


.tbf-contact-card-static:hover {
    transform: none !important;

    box-shadow: none !important;
}


/* ---------------------------------------------------------
   6. ICONE
   --------------------------------------------------------- */

.tbf-contact-icon {
    width: 48px !important;
    height: 48px !important;

    min-width: 48px !important;
    min-height: 48px !important;

    margin-bottom: 15px !important;

    border: 1px solid #cfa875 !important;

    border-radius: 50% !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    color: #8a531d !important;

    box-sizing: border-box !important;
}


.tbf-contact-icon svg {
    width: 24px !important;
    height: 24px !important;

    max-width: 24px !important;
    max-height: 24px !important;

    display: block !important;

    fill: none !important;

    stroke: currentColor !important;

    stroke-width: 1.7 !important;

    overflow: visible !important;
}


/* ---------------------------------------------------------
   7. TESTI CARD
   --------------------------------------------------------- */

.tbf-contact-card h3 {
    margin: 0 0 7px !important;

    color: #6F3F12 !important;

    font-family: Georgia, "Times New Roman", serif !important;

    font-size: 18px !important;

    font-weight: 600 !important;
}


.tbf-contact-card p {
    margin: 0 0 10px !important;

    color: #76695d !important;

    font-family: Arial, sans-serif !important;

    font-size: 13px !important;

    line-height: 1.45 !important;
}


.tbf-contact-card strong {
    color: #6F3F12 !important;

    font-family: Arial, sans-serif !important;

    font-size: 14px !important;

    font-weight: 700 !important;

    line-height: 1.45 !important;
}


/* ---------------------------------------------------------
   8. RICHIESTA INFORMAZIONI
   --------------------------------------------------------- */

.tbf-contact-request {
    width: 100% !important;

    max-width: 1200px !important;

    margin: 0 auto !important;

    padding: 80px 30px !important;

    box-sizing: border-box !important;

    background: #ffffff !important;
}


.tbf-contact-request-inner {
    display: grid !important;

    grid-template-columns: 1.08fr 0.92fr !important;

    gap: 55px !important;

    align-items: stretch !important;
}


/* ---------------------------------------------------------
   9. TESTATA FORM
   --------------------------------------------------------- */

.tbf-contact-eyebrow {
    margin: 0 0 12px !important;

    color: #a26720 !important;

    font-family: Arial, sans-serif !important;

    font-size: 11px !important;

    font-weight: 700 !important;

    letter-spacing: 0.28em !important;

    text-transform: uppercase !important;
}


.tbf-contact-form-wrapper h2 {
    margin: 0 0 15px !important;

    color: #6F3F12 !important;

    font-family: Georgia, "Times New Roman", serif !important;

    font-size: 38px !important;

    line-height: 1.15 !important;

    font-weight: 500 !important;
}


.tbf-contact-form-intro {
    max-width: 560px !important;

    margin: 0 0 30px !important;

    color: #71675e !important;

    font-family: Arial, sans-serif !important;

    font-size: 14px !important;

    line-height: 1.7 !important;
}


/* ---------------------------------------------------------
   10. FORM
   --------------------------------------------------------- */

.tbf-contact-form {
    width: 100% !important;
}


.tbf-form-row {
    display: grid !important;

    grid-template-columns: 1fr 1fr !important;

    gap: 16px !important;

    margin-bottom: 16px !important;
}


.tbf-form-field {
    margin-bottom: 16px !important;
}


.tbf-form-field label {
    display: block !important;

    margin-bottom: 6px !important;

    color: #6F3F12 !important;

    font-family: Arial, sans-serif !important;

    font-size: 12px !important;

    font-weight: 600 !important;
}


.tbf-form-field input,
.tbf-form-field select,
.tbf-form-field textarea {
    width: 100% !important;

    box-sizing: border-box !important;

    border: 1px solid #ded2c3 !important;

    border-radius: 0 !important;

    background: #fcfaf7 !important;

    color: #4f443b !important;

    font-family: Arial, sans-serif !important;

    font-size: 14px !important;

    padding: 13px 14px !important;

    outline: none !important;

    transition:
        border-color 0.2s ease,
        background 0.2s ease !important;
}


.tbf-form-field input:focus,
.tbf-form-field select:focus,
.tbf-form-field textarea:focus {
    border-color: #b9854a !important;

    background: #ffffff !important;
}


.tbf-form-field textarea {
    min-height: 150px !important;

    resize: vertical !important;
}


.tbf-form-field input::placeholder,
.tbf-form-field textarea::placeholder {
    color: #a49a91 !important;
}


/* ---------------------------------------------------------
   11. PRIVACY
   --------------------------------------------------------- */

.tbf-form-consent {
    display: flex !important;

    align-items: flex-start !important;

    gap: 8px !important;

    margin: 8px 0 18px !important;

    color: #71675e !important;

    font-family: Arial, sans-serif !important;

    font-size: 11px !important;

    line-height: 1.5 !important;
}


.tbf-form-consent input {
    margin-top: 2px !important;

    flex: 0 0 auto !important;
}


.tbf-form-consent a {
    color: #6F3F12 !important;

    text-decoration: underline !important;
}


/* ---------------------------------------------------------
   12. PULSANTE INVIA
   --------------------------------------------------------- */

.tbf-contact-submit {
    width: 100% !important;

    min-height: 50px !important;

    border: 0 !important;

    border-radius: 2px !important;

    background: #7b4616 !important;

    color: #ffffff !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 12px !important;

    padding: 14px 20px !important;

    font-family: Arial, sans-serif !important;

    font-size: 12px !important;

    font-weight: 700 !important;

    letter-spacing: 0.12em !important;

    cursor: pointer !important;

    transition:
        background 0.25s ease,
        transform 0.25s ease !important;
}


.tbf-contact-submit:hover {
    background: #60350f !important;

    color: #ffffff !important;

    transform: translateY(-2px) !important;
}


/* ---------------------------------------------------------
   13. RIQUADRO FOTOGRAFICO LATERALE
   --------------------------------------------------------- */

.tbf-contact-side {
    background: #f5eee5 !important;

    display: flex !important;

    flex-direction: column !important;

    overflow: hidden !important;
}


.tbf-contact-side-image {
    width: 100% !important;

    min-height: 300px !important;

    background-image: url("https://www.thebigfamily.it/wp-content/uploads/2026/09/the-big-family-residence.jpg") !important;

    background-size: cover !important;

    background-position: center !important;

    background-repeat: no-repeat !important;
}


.tbf-contact-side-content {
    padding: 35px 35px 40px !important;

    text-align: center !important;
}


.tbf-contact-side-content h3 {
    margin: 0 0 15px !important;

    color: #6F3F12 !important;

    font-family: Georgia, "Times New Roman", serif !important;

    font-size: 28px !important;

    line-height: 1.25 !important;

    font-weight: 500 !important;
}


.tbf-contact-side-content > p:not(.tbf-contact-eyebrow) {
    margin: 0 auto 20px !important;

    max-width: 470px !important;

    color: #756a60 !important;

    font-family: Arial, sans-serif !important;

    font-size: 13px !important;

    line-height: 1.7 !important;
}


.tbf-contact-signature {
    display: block !important;

    color: #5c4030 !important;

    font-family: Georgia, "Times New Roman", serif !important;

    font-size: 19px !important;

    font-style: italic !important;
}


/* ---------------------------------------------------------
   14. CTA FINALE
   --------------------------------------------------------- */

.tbf-contact-cta {
    width: 100vw !important;

    max-width: none !important;

    position: relative !important;

    left: 50% !important;

    transform: translateX(-50%) !important;

    min-height: 330px !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    text-align: center !important;

    background:
        linear-gradient(
            rgba(65,42,25,0.62),
            rgba(65,42,25,0.62)
        ),
        url("https://www.thebigfamily.it/wp-content/uploads/2026/09/the-big-family-residence.jpg")
        center center / cover no-repeat !important;

    box-sizing: border-box !important;

    padding: 70px 25px !important;
}


.tbf-contact-cta-content {
    max-width: 700px !important;

    position: relative !important;

    z-index: 2 !important;
}


.tbf-contact-cta .tbf-contact-eyebrow {
    color: #e2bd88 !important;
}


.tbf-contact-cta h2 {
    margin: 0 0 15px !important;

    color: #ffffff !important;

    font-family: Georgia, "Times New Roman", serif !important;

    font-size: 42px !important;

    line-height: 1.15 !important;

    font-weight: 500 !important;
}


.tbf-contact-cta p:not(.tbf-contact-eyebrow) {
    max-width: 600px !important;

    margin: 0 auto 28px !important;

    color: rgba(255,255,255,0.88) !important;

    font-family: Arial, sans-serif !important;

    font-size: 14px !important;

    line-height: 1.7 !important;
}


.tbf-contact-cta-button {
    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 12px !important;

    min-height: 48px !important;

    padding: 14px 25px !important;

    background: #8a531d !important;

    color: #ffffff !important;

    text-decoration: none !important;

    font-family: Arial, sans-serif !important;

    font-size: 11px !important;

    font-weight: 700 !important;

    letter-spacing: 0.12em !important;

    transition:
        background 0.25s ease,
        transform 0.25s ease !important;
}


.tbf-contact-cta-button:hover {
    background: #6f3f12 !important;

    color: #ffffff !important;

    transform: translateY(-2px) !important;
}


/* =========================================================
   SMARTPHONE
   ========================================================= */

@media screen and (max-width: 900px) {

    /* Banner */

    body:has(.tbf-contact-page) .tbf-contatti-banner {
        width: 100vw !important;
        max-width: 100vw !important;

        margin-left: calc(50% - 50vw) !important;
        margin-right: 0 !important;
    }


    /* Contatti */

    .tbf-contact-info {
        padding: 20px 0 !important;
    }


    .tbf-contact-info-inner {
        width: 100% !important;

        display: flex !important;

        overflow-x: auto !important;

        gap: 12px !important;

        padding: 5px 20px 15px !important;

        scroll-snap-type: x mandatory !important;

        scrollbar-width: none !important;
    }


    .tbf-contact-info-inner::-webkit-scrollbar {
        display: none !important;
    }


    .tbf-contact-card {
        flex: 0 0 78% !important;

        min-width: 78% !important;

        min-height: 205px !important;

        border: 1px solid #e5d7c5 !important;

        border-radius: 2px !important;

        scroll-snap-align: start !important;

        padding: 28px 20px !important;
    }


    .tbf-contact-card:first-child {
        border-left: 1px solid #e5d7c5 !important;
    }


    .tbf-contact-icon {
        width: 50px !important;
        height: 50px !important;

        min-width: 50px !important;
        min-height: 50px !important;
    }


    /* Form */

    .tbf-contact-request {
        padding: 55px 20px !important;
    }


    .tbf-contact-request-inner {
        display: block !important;
    }


    .tbf-contact-form-wrapper h2 {
        font-size: 32px !important;
    }


    .tbf-form-row {
        display: block !important;

        margin-bottom: 0 !important;
    }


    .tbf-form-field {
        margin-bottom: 15px !important;
    }


    /* Foto laterale */

    .tbf-contact-side {
        margin-top: 45px !important;
    }


    .tbf-contact-side-image {
        min-height: 250px !important;
    }


    .tbf-contact-side-content {
        padding: 30px 22px 35px !important;
    }


    .tbf-contact-side-content h3 {
        font-size: 27px !important;
    }


    /* CTA */

    .tbf-contact-cta {
        width: 100% !important;

        left: auto !important;

        transform: none !important;

        min-height: 330px !important;

        padding: 60px 22px !important;
    }


    .tbf-contact-cta h2 {
        font-size: 34px !important;
    }

}


/* =========================================================
   TELEFONI MOLTO STRETTI
   ========================================================= */

@media screen and (max-width: 480px) {

    .tbf-contact-card {
        flex-basis: 84% !important;

        min-width: 84% !important;
    }


    .tbf-contact-request {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }


    .tbf-contact-form-wrapper h2 {
        font-size: 29px !important;
    }


    .tbf-contact-cta h2 {
        font-size: 30px !important;
    }

}

body:has(.tbf-contact-page) .tbf-contatti-banner {
    width: calc(100vw - 72px) !important;
    max-width: none !important;

    margin-left: auto !important;
    margin-right: auto !important;

    position: relative !important;
    left: auto !important;
    transform: none !important;
}

@media screen and (max-width: 900px) {

    body:has(.tbf-contact-page) .tbf-contatti-banner {
        width: 100vw !important;
        max-width: 100vw !important;

        margin-left: calc(50% - 50vw) !important;
        margin-right: 0 !important;

        position: relative !important;
        left: auto !important;
        transform: none !important;
    }

}

/* =========================================================
   CONTATTI — BANNER DESKTOP CENTRATO
   ========================================================= */

@media screen and (min-width: 901px) {

    body:has(.tbf-contact-page) .tbf-contatti-banner {
        width: calc(100vw - 72px) !important;
        max-width: none !important;

        position: relative !important;

        left: 50% !important;
        right: auto !important;

        transform: translateX(-50%) !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        box-sizing: border-box !important;
    }

}


/* =========================================================
   CONTATTI — RIQUADRI INFORMAZIONI PIÙ LARGHI
   ========================================================= */

@media screen and (min-width: 901px) {

    body:has(.tbf-contact-page) .tbf-contact-info-inner {
        width: calc(100vw - 120px) !important;
        max-width: none !important;

        margin-left: calc(50% - 50vw + 60px) !important;
        margin-right: 0 !important;

        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;

        overflow: visible !important;
        box-sizing: border-box !important;
    }

    body:has(.tbf-contact-page) .tbf-contact-card {
        width: auto !important;
        min-width: 0 !important;
        flex: none !important;
        box-sizing: border-box !important;
    }

}

/* =========================================================
   HOME - MENU SUPERIORE PIÙ GRANDE
   ========================================================= */

@media screen and (min-width: 901px) {

    body.home .tbf-header a {
        font-size: 15px !important;
        letter-spacing: 0.5px !important;
    }

    body.home .tbf-header .tbf-book {
        padding: 12px 22px !important;
        font-size: 15px !important;
    }

}


/* =========================================================
   HOME - SFONDO FINO IN FONDO
   ========================================================= */

body.home {
    background: #f4ede3 !important;
}

body.home .tbf-hero {
    min-height: calc(100vh - 65px) !important;
    height: calc(100vh - 65px) !important;
}

body.home footer {
    margin-top: 0 !important;
}

/* HOME - ALLINEAMENTO PULSANTE PRENOTA ORA */ @media screen and (min-width: 901px) {

    body.home .tbf-header .tbf-book {
        transform: translateY(-18px) !important;
    }

}

/* HOME - ALZA SOLO IL PULSANTE PRENOTA ORA */ @media screen and (min-width: 901px) {
    body.home .tbf-header a.tbf-book {
        position: relative !important;
        top: -4px !important;
        transform: none !important;
    }
}

/* =========================================================
   DOVE SIAMO - COPERTINA DESKTOP + SMARTPHONE
   ========================================================= */

body.page-id-1258 .tbf-dove-siamo-page {
    overflow: visible !important;
}


/* DESKTOP */

@media screen and (min-width: 901px) {

    body.page-id-1258 .tbf-dove-siamo-page {
        max-width: none !important;
    }

    body.page-id-1258 .tbf-dove-siamo-page .wp-block-cover {
        width: 100vw !important;
        max-width: 100vw !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}


/* SMARTPHONE */

@media screen and (max-width: 900px) {

    body.page-id-1258 .tbf-dove-siamo-page {
        width: 100% !important;
        max-width: none !important;

        padding-left: 0 !important;
        padding-right: 0 !important;

        margin: 0 !important;
    }

    body.page-id-1258 .tbf-dove-siamo-page .wp-block-cover {
        width: 100vw !important;
        max-width: 100vw !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        left: 0 !important;
        transform: none !important;

        aspect-ratio: 16 / 7 !important;
    }

    body.page-id-1258 .tbf-dove-siamo-page .wp-block-cover__image-background {
        width: 100% !important;
        height: 100% !important;

        min-width: 100% !important;
        min-height: 100% !important;

        object-fit: cover !important;
        object-position: center center !important;
    }
}

/* =========================================================
   THE BIG FAMILY — MOBILE HAMBURGER
   VERSIONE SEMPLICE — SENZA SCRITTA MENU
   ========================================================= */

@media screen and (max-width: 900px) {

    .tbf-header .tbf-mobile-toggle {
        position: absolute !important;

        top: 50% !important;
        right: 18px !important;
        left: auto !important;

        transform: translateY(-50%) !important;

        width: 52px !important;
        height: 52px !important;

        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 6px !important;

        background: rgba(45, 27, 14, 0.82) !important;

        border: 1px solid rgba(255,255,255,0.65) !important;
        border-radius: 6px !important;

        box-shadow: 0 4px 15px rgba(0,0,0,0.22) !important;

        cursor: pointer !important;

        z-index: 100000 !important;

        appearance: none !important;
        -webkit-appearance: none !important;

        box-sizing: border-box !important;
    }


    /* =====================================================
       TRE LINEE
       ===================================================== */

    .tbf-header .tbf-mobile-toggle span {
        display: block !important;

        width: 25px !important;
        height: 2px !important;

        margin: 0 !important;
        padding: 0 !important;

        background: #ffffff !important;

        border: 0 !important;
        border-radius: 2px !important;

        opacity: 1 !important;

        box-shadow: none !important;

        transition:
            transform 0.25s ease,
            opacity 0.25s ease !important;
    }


    /* =====================================================
       HOVER
       ===================================================== */

    .tbf-header .tbf-mobile-toggle:hover {
        background: rgba(111,63,18,0.95) !important;
        border-color: #ffffff !important;
    }


    /* =====================================================
       FOCUS
       ===================================================== */

    .tbf-header .tbf-mobile-toggle:focus {
        outline: none !important;
    }


    /* =====================================================
       PREMUTO
       ===================================================== */

    .tbf-header .tbf-mobile-toggle:active {
        transform: translateY(-50%) scale(0.96) !important;
    }


    /* =====================================================
       HAMBURGER → X
       ===================================================== */

    .tbf-header
    .tbf-mobile-toggle[aria-expanded="true"]
    span:nth-child(1) {

        transform: translateY(8px) rotate(45deg) !important;
    }


    .tbf-header
    .tbf-mobile-toggle[aria-expanded="true"]
    span:nth-child(2) {

        opacity: 0 !important;
    }


    .tbf-header
    .tbf-mobile-toggle[aria-expanded="true"]
    span:nth-child(3) {

        transform: translateY(-8px) rotate(-45deg) !important;
    }


    /* =====================================================
       MENU A TENDINA
       ===================================================== */

    .tbf-header .tbf-mobile-menu {

        position: absolute !important;

        top: calc(100% + 10px) !important;

        left: 18px !important;
        right: 18px !important;

        z-index: 99999 !important;

        display: none !important;

        padding: 8px !important;

        background: rgba(63,37,23,0.98) !important;

        border: 1px solid rgba(255,255,255,0.25) !important;

        border-radius: 8px !important;

        box-shadow: 0 12px 35px rgba(0,0,0,0.30) !important;

        box-sizing: border-box !important;
    }


    /* MENU APERTO */

    .tbf-header .tbf-mobile-menu.is-open {
        display: block !important;
    }


    /* =====================================================
       LINK
       ===================================================== */

    .tbf-header .tbf-mobile-menu a {

        display: block !important;

        width: 100% !important;

        padding: 15px 18px !important;

        box-sizing: border-box !important;

        color: #ffffff !important;

        background: transparent !important;

        text-decoration: none !important;

        font-size: 13px !important;
        font-weight: 600 !important;

        letter-spacing: 1.3px !important;

        text-align: left !important;

        border-bottom: 1px solid rgba(255,255,255,0.12) !important;
    }


    .tbf-header .tbf-mobile-menu a:last-child {
        border-bottom: none !important;
    }


    .tbf-header .tbf-mobile-menu a:hover {
        background: rgba(255,255,255,0.08) !important;
        color: #ffffff !important;
    }


    /* =====================================================
       PRENOTA ORA
       ===================================================== */

    .tbf-header .tbf-mobile-menu a.tbf-mobile-book {

        margin-top: 8px !important;

        background: #a96c12 !important;

        border: none !important;
        border-radius: 4px !important;

        color: #ffffff !important;

        text-align: center !important;
    }

}


/* =========================================================
   SMARTPHONE PICCOLO
   ========================================================= */

@media screen and (max-width: 480px) {

    .tbf-header .tbf-mobile-toggle {

        right: 14px !important;

        width: 48px !important;
        height: 48px !important;
    }


    .tbf-header .tbf-mobile-toggle span {

        width: 23px !important;
    }


    .tbf-header .tbf-mobile-menu {

        left: 14px !important;
        right: 14px !important;
    }

}

