/*
Theme Name: Montoya Child
Theme URI: https://montoya.clapat-themes.com/
Description: Responsive Wordpress Theme
Template: montoya
Version: 1.0
Author: You
Author URI: https://your site
License: Themeforest
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: montoya-child
*/


/*------------------------------------------------------------------

Add here your own styles
-------------------------------------------------------------------*/


/* HERO BASE */
#hero {
    position: relative;
    overflow: hidden;
}

#hero-styles {
    position: relative;
    z-index: 2;
}


/* TITOLI HERO PAGINE */
h1.hero-title {
    font-size: clamp(58px, 10.5vw, 170px) !important;
    line-height: 0.85 !important;
    text-transform: uppercase !important;
}


/* NASCONDE NAVIGAZIONE AUTOMATICA "PROJECTS" */
#page-nav {
    display: none !important;
}


/* NASCONDE SCROLL TO EXPLORE / LET'S CONNECT */
#hero-footer {
    display: none !important;
}


/* RIDUCE HERO PAGINE INTERNE */
body:not(.home) #hero,
body:not(.home) #hero-styles,
body:not(.home) #hero-caption {
    height: auto !important;
    min-height: 0 !important;
}

body:not(.home) #hero {
    padding-top: 130px !important;
    padding-bottom: 70px !important;
}

body:not(.home) #hero-caption {
    padding: 50px 0 !important;
}


/* VIDEO HERO SOLO HOME */
#ac-home-hero-video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 0 !important;
    pointer-events: none !important;
}


/* MANTIENE SOPRA AL VIDEO TITOLO E CONTENUTI HERO */
#hero #hero-styles,
#hero #hero-caption,
#hero #hero-footer {
    position: relative !important;
    z-index: 2 !important;
}


/* SOLO PAGINA CONTATTI: RESTRINGE IL SOTTOTITOLO HERO */
body.page-id-2770 #hero-caption .hero-subtitle span,
.clapat-class-id-2770 #hero-caption .hero-subtitle span {
    display: block !important;
    max-width: 650px !important;
    margin: 0 auto !important;
    text-align: center !important;
}


/* TABLET */
@media (max-width: 1024px) {

    h1.hero-title {
        font-size: clamp(52px, 12vw, 120px) !important;
        line-height: 0.88 !important;
    }

    body:not(.home) #hero {
        padding-top: 110px !important;
        padding-bottom: 60px !important;
    }

}


/* MOBILE */
@media (max-width: 767px) {

    h1.hero-title {
        font-size: clamp(42px, 16vw, 76px) !important;
        line-height: 0.9 !important;
        text-transform: uppercase !important;
    }

    body:not(.home) #hero {
        padding-top: 95px !important;
        padding-bottom: 45px !important;
    }

    body:not(.home) #hero-caption {
        padding: 35px 0 !important;
    }

    #hero-caption .hero-subtitle span {
        max-width: 88vw !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

}



.wp-block-montoya-gutenberg-moving-thumbs-grid .start-thumbs-caption p,
.wp-block-montoya-gutenberg-moving-thumbs-grid .end-thumbs-caption p {
    max-width: 520px !important;
    margin: 0 auto !important;
    text-align: center !important;
    white-space: normal !important;
}

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

    html body #main-content h2.wp-block-heading.big-title.has-mask-fill.primary-font-title,
    html body #main-content h2.wp-block-heading.big-title.has-mask-fill.primary-font-title span,
    html body .clapat-class-id-2770 h2.wp-block-heading.big-title.has-mask-fill.primary-font-title,
    html body .clapat-class-id-2770 h2.wp-block-heading.big-title.has-mask-fill.primary-font-title span {
        font-size: 29px !important;
        line-height: 0.95 !important;
        letter-spacing: -0.035em !important;
        text-transform: uppercase !important;
        white-space: normal !important;
        max-width: 100% !important;
        width: 100% !important;
        display: block !important;
        overflow: visible !important;
    }

}

/* Titolo "Servizi" (e simili) */
.wp-block-heading.big-title {
font-size: clamp(36px, 4.5vw, 80px) !important;
    text-transform: uppercase; /* maiuscolo */
    line-height: 0.9;
}

/* Mobile ancora più piccolo */
@media (max-width: 768px) {
    .wp-block-heading.big-title {
        font-size: clamp(28px, 7vw, 48px) !important;
        line-height: 1;
    }
}


/* Menu fullscreen: maiuscolo ovunque */
.fullscreen-menu .flexnav li a,
.fullscreen-menu .flexnav li a span,
.fullscreen-menu .flexnav li a div,
.fullscreen-menu .flexnav li .before-span,
.fullscreen-menu .flexnav li .before-span span {
    text-transform: uppercase !important;
}

/* Solo mobile/tablet: riduco le voci menu */
@media only screen and (max-width: 1024px) {

    .fullscreen-menu .flexnav li a,
    .fullscreen-menu .flexnav li a span,
    .fullscreen-menu .flexnav li a div,
    .fullscreen-menu .flexnav li .before-span,
    .fullscreen-menu .flexnav li .before-span span {
        font-size: 28px !important;
        line-height: 1.08 !important;
        letter-spacing: 0.02em !important;
        white-space: nowrap !important;
        text-transform: uppercase !important;
    }

    .fullscreen-menu .flexnav li {
        margin-bottom: 6px !important;
    }
}