/* 4ManiHome — CSS legacy essenziale per i tre index (ES / EN / IT).
   Sostituisce il vecchio framework Backbone. Non contiene regole globali
   per button, .button, a, h1-h6, .container o media query legacy.
   Percorsi dei font invariati rispetto a css/style.index.css. */

@font-face {
    font-family: 'Dimica Light';
    src: url('../fonts/dimica-font/dimica-light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quentin';
    src: url('../fonts/quentin_2/Quentin.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Dipendenza tipografica legacy: mantenere i valori originali.
   Non si modificano dimensioni o posizioni della HERO / TOP BAR. */
body {
    font-family: 'Dimica Light', sans-serif;
    font-size: 0.8em;
    font-weight: 400;
    line-height: 2em;
    letter-spacing: 0;
}

/* Scrollbar Chrome / Brave / Safari: valori originali. */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: #828282;
}
::-webkit-scrollbar-thumb {
    background: #353535;
    border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
    background: #424242;
    cursor: pointer;
}
::-webkit-scrollbar-thumb:active {
    background: #292929;
}

/* ========================================
   FRECCE SLIDESHOW CATEGORIE
   Posizionamento originale recuperato
   ======================================== */

.categorias-slider-wrapper {
    position: relative;
}

.categorias-slider-wrapper > .categorias-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    z-index: 20;

    width: 50px;
    height: 50px;
    min-width: 0;
    min-height: 0;

    margin: 0;
    padding: 0;
    border: 0;

    background: transparent;
    color: rgba(97, 97, 97, 0.7);

    font-family: Arial, sans-serif;
    font-size: 48px;
    font-weight: normal;
    line-height: 50px;

    cursor: pointer;
}

.categorias-slider-wrapper > .categorias-prev {
    left: 0;
    right: auto;
    justify-content: center;
    padding-right: 4px;
    box-sizing: border-box;
}

.categorias-slider-wrapper > .categorias-next {
    right: 0;
    left: auto;
}


/* =========================================
   FMEC — RIPRISTINO CLOSE (SOLO INDEX)
   ========================================= */

.fmec-modal-header .fmec-close {
    width: 125px !important;
    height: 40px !important;

    min-width: 125px !important;
    min-height: 40px !important;
}

/* =====================================================
   FMEC — RECUPERO DIMENSIONI ORIGINALI CLOSE + REMOVE
   SOLO INDEX
   ===================================================== */

/* X CHIUSURA MODAL */

.fmec-modal-header .fmec-close {
    width: 125px !important;
    height: 40px !important;

    min-width: 125px !important;
    min-height: 40px !important;
}

/* REMOVE PRODOTTO */

.fmec-item-actions .fmec-remove {
    width: 125px !important;
    height: 40px !important;

    min-width: 125px !important;
    min-height: 40px !important;
}

/* FMEC — ripristino proprietà dei pulsanti del vecchio framework */

.fmec-modal-header .fmec-close,
.fmec-item-actions .fmec-remove {
    display: inline-block !important;
    min-width: 125px !important;
    min-height: 40px !important;
    font-weight: 400 !important;
    font-variant: normal !important;
    text-align: center !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: normal !important;
    box-sizing: border-box !important;
    outline: 0 !important;
    -moz-appearance: none;
    appearance: none;
}

.fmec-modal-header .fmec-close::-moz-focus-inner,
.fmec-item-actions .fmec-remove::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/* FMEC — ripristino tipografia originale */

.fmec-modal-header .fmec-close {
    font-family: Verdana, Geneva, sans-serif !important;
    font-size: 20px !important;
    line-height: 34px !important;
}

.fmec-item-actions .fmec-remove {
    font-family: 'Dimica Light', sans-serif !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
}

@media screen and (max-width: 480px) {

.fmec-item-actions .fmec-remove {
    font-family: 'Dimica Light', sans-serif !important;
    font-size: 9px !important;
    text-transform: uppercase !important;
}
}

/* ========================================
   FRECCE SLIDESHOW COMMENTI
   Posizionamento originale recuperato
   ======================================== */

.comentarios-slider-wrapper {
    position: relative;
}

.comentarios-slider-wrapper > .comentarios-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    z-index: 20;

    width: 50px;
    height: 50px;
    min-width: 0;
    min-height: 0;

    margin: 0;
    padding: 0;
    border: 0;

    background: transparent;
    color: rgba(97, 97, 97, 0.7);

    font-family: Arial, sans-serif;
    font-size: 48px;
    font-weight: normal;
    line-height: 50px;

    cursor: pointer;
}

.comentarios-slider-wrapper > .comentarios-prev {
    left: 0;
    right: auto;
    justify-content: center;
    padding-right: 4px;
    box-sizing: border-box;
}

.comentarios-slider-wrapper > .comentarios-next {
    right: 0;
    left: auto;
}


/* ==========================================
   INDEX — DESKTOP DA 1366px
   ========================================== */


@media screen and (min-width: 1366px) {


    /* =====================================================
       MENU
       ===================================================== */


    .menu > ul > li > a {
		padding: 15px 25px !important;
		transform: scale(1.1, 0.9) !important;
	}
	
	.menu > ul > li > a::after {
    	left: 25px !important;
    	right: 25px !important;
	}
	
	.menu > ul > li > ul {
        grid-template-columns: 140px 330px !important;
        column-gap: 100px !important;
        justify-content: center !important;
        align-items: center !important;
    }

	html[lang="en"] .menu > ul > li > ul {
        grid-template-columns: 140px 330px !important;
        column-gap: 80px !important;
        justify-content: center !important;
        align-items: center !important;
    }

	html[lang="it"] .menu > ul > li > ul {
        grid-template-columns: 140px 330px !important;
        column-gap: 50px !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .menu > ul > li > ul .submenu-links {
        align-self: start !important;
        justify-self: start !important;
        margin-top: 0 !important;
        margin-left: 15px !important;
    }

    .menu > ul > li > ul .submenu-links a:first-child {
        padding-top: 0 !important;
    }

}

/* ==========================================
   INDEX — DESKTOP DA 1536px
   ========================================== */


@media screen and (min-width: 1536px) {


    /* =====================================================
       MENU
       ===================================================== */


    .menu > ul > li > a {
		font-size: 12.8px !important;
		padding: 15px 25px !important;
		transform: scale(1.1, 0.9) !important;
	}
	
	.menu > ul > li > a::after {
    	left: 25px !important;
    	right: 25px !important;
	}
	
    .menu > ul > li > ul {
        grid-template-columns: 140px 330px !important;
        column-gap: 125px !important;
        justify-content: center !important;
        align-items: center !important;
    }
	
	html[lang="en"] .menu > ul > li > ul {
        grid-template-columns: 140px 330px !important;
        column-gap: 20px !important;
        justify-content: center !important;
        align-items: center !important;
    }

	html[lang="it"] .menu > ul > li > ul {
        grid-template-columns: 140px 330px !important;
        column-gap: 70px !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .menu > ul > li > ul .submenu-links {
        align-self: start !important;
        justify-self: start !important;
        margin-top: 0 !important;
        margin-left: 15px !important;
    }

    .menu > ul > li > ul .submenu-links a:first-child {
        padding-top: 0 !important;
    }
	
	
}

/* ==========================================
   INDEX — DESKTOP DA 1920px
   ========================================== */

@media screen and (min-width: 1920px) {

    /* Paragrafi generali */
    p {
        font-size: 19px !important;
    }

    /* Quattro sezioni: 18px */
    .solo-4manihome-copy p,
    .manifiesto-text p,
    .eldetallestodo-copy p,
    .cinco-paso p {
        font-size: 18px !important;
    }

    /* H3 */
    h3 {
        font-size: 21px !important;
    }

	/* TOP BAR */
	.top-bar {

	font-size: 14px !important;
	padding-top: 1px !important;
	}

    /* Menu */
    .menu > ul > li > a {
    
        font-size: 17px !important;
    }

	.menu .submenu-links > a {
	    font-size: 15px !important;
    }

    .menu > ul > li > a {
		padding: 15px 35px !important;
		transform: scale(1.1, 0.9) !important;
	}
	
	.menu > ul > li > a::after {
    	left: 35px !important;
    	right: 35px !important;
	}
	
	nav.menu > ul > li {
        font-size: 17px !important;
    }

	nav.menu > ul > li {
        font-size: 17px !important;
    }

    .menu > ul > li > ul {
        grid-template-columns: 140px 330px !important;
        column-gap: 170px !important;
        justify-content: center !important;
        align-items: center !important;
    }

	html[lang="en"] .menu > ul > li > ul {
        grid-template-columns: 140px 330px !important;
        column-gap: 170px !important;
        justify-content: center !important;
        align-items: center !important;
    }

	html[lang="it"] .menu > ul > li > ul {
        grid-template-columns: 140px 330px !important;
        column-gap: 80px !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .menu > ul > li > ul .submenu-links {
        align-self: start !important;
        justify-self: start !important;
        margin-top: 0 !important;
        margin-left: 15px !important;
    }

    .menu > ul > li > ul .submenu-links a:first-child {
        padding-top: 0 !important;
    }

    /* Brand */
    .brand-quattro {
        font-size: 44px !important;
    }

    .brand-mani {
        font-size: 27px !important;
    }

    .brand-art {
        font-size: 32px !important;
    }


    /* Titolo CINCO PASOS */
    .cinco-pasos-title {
        font-size: 36px !important;
    }

    /* Titolo footer */
    .footer-custom-title {
        font-size: 30px;
    }

	.footer-custom-intro {
	    font-size: 18px;
	}

	/* Brand */
	.footer-brand .brand-quattro { 
    	font-size: 46px !important; 
	} 
 
	.footer-brand .brand-mani { 
    	font-size: 29px !important;  
	} 
 
	.footer-brand .brand-art { 
    	font-size: 34px !important;  
	} 

	.footer-brand-tagline {
	    font-size: 16px !important;
	}   

    /* Footer: contatti */
    .footer-contact-left,
    .footer-contact-left a,
    .footer-contact-left span {
        font-size: 16px !important;
    }

    /* Footer: navigazione */
    .footer-nav-column h3 {
        font-size: 14px !important;
    }

    .footer-nav-column a,
    .footer-nav-column span {
        font-size: 16px !important;
    }

    /* Footer: etichette modulo */
    .footer-field label {
        font-size: 16px;
    }

    /* Copyright */
    .footer-copyright,
    .footer-copyright span {
        font-size: 14px !important;
    }

    /* COMMENTI */
    .comentarios-slider-wrapper .comentario-text {
        font-size: 16px !important;
    }
	
	.nuevo-home-section .nuevo-descripcion,
	.solo-descripcion.solo-descripcion,
	.madera-descripcion {
    	font-size: 19px !important;
	}
	
	.nuevo-home-section .nuevo-button,
	.nuevo-home-section .nuevo-button span,
	.solo-button,
	.solo-button span,
	.madera-button,
	.madera-button span {
    font-size: 18px !important;
	}

	.categorias-slider-title span {
    	font-size: 35px !important;
	}
}

/* ==========================================
   NORMALIZZAZIONE NUEVO / SOLO / MADERA
   DESKTOP 1367px - 1919px CSS
   ========================================== */

@media screen and (min-width: 1367px) and (max-width: 1919px) {

    /* TITOLI */
    .nuevo-titolo,
    .solo-titolo,
    .madera-titolo {
        font-size: 33px !important;
        transform: scale(1.2, 0.9) !important;
    }

    /* DESCRIZIONI */
    .nuevo-descripcion,
    .solo-descripcion,
    .madera-descripcion {
        font-size: 17px !important;
        line-height: 1.2;
    }

    /* PULSANTI */
    .nuevo-button,
    .solo-button,
    .madera-button {
        font-size: 14px !important;
    }
}

/* =========================================================
   4MANIHOME — BACK TO TOP
   ========================================================= */

.back-to-top {
    position: fixed;
    right: 25px;
 	bottom: 35px !important;
	
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: none;
	border-radius: 50%;
	
    background: #616161;
    color: #e3dfde;

    cursor: pointer;
    z-index: 2900;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(10px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background-color 0.3s ease;
}

/* VISIBILE DURANTE LO SCROLL */

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* FRECCIA */

.back-to-top svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* HOVER */

@media (hover: hover) and (pointer: fine) {

    .back-to-top:hover {
        background: #303030;
        transform: translateY(-3px);
    }

}

/* MOBILE */

@media screen and (max-width: 480px) {

    button.back-to-top {
        width: 36px;
        height: 36px;

        min-width: 36px;
        min-height: 36px;

        aspect-ratio: 1 / 1;
        border-radius: 50% !important;
        box-sizing: border-box;
        padding: 0;

        right: 15px;
        bottom: 15px;
    }

    .back-to-top svg {
        width: 17px;
        height: 17px;
    }

}

/* =========================================================
   PROTEZIONE FOTOGRAFIE
   ========================================================= */

img {
    -webkit-user-drag: none;

    user-select: none;
    -webkit-user-select: none;
}

