/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

:root {
    --rosino: #f4dadc;
    --bordeaux: #862733;
}

p {
    margin-top: 0;
}

.max-1720 .fusion-builder-row {
    max-width: 1720px !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.row-max-1120 {
    max-width: 1120px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* -------------------------------------------------------------------------------- */
/* ! Accessibility
/* -------------------------------------------------------------------------------- */

.visually-hidden-focusable:not(:focus):not(:focus-within):not(caption),
.visually-hidden:not(caption) {
    position: absolute !important;
}

.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* @media (prefers-color-scheme: dark) {
	#hp-grana-1, #hp-grana-2, #hp-grana-3, #hp-grana-4 {
		display: none !important;
	}
	
	#hp-intro, #hp-bottom {
		background-image: none !important;
	}
} */

/* -------------------------------------------------------------------------------- */
/* ! Testo + immagini
/* -------------------------------------------------------------------------------- */

@media (min-width: 992px) {
    .testo-immagini {
        gap: clamp(2rem, 4vw, 3rem) !important;
    }

    .testo-immagini.reverse {
        flex-direction: row-reverse !important;
    }

    .testo-immagini .testo {
        flex: 0 0 min(700px, 50%) !important;
    }

    .testo-immagini .immagini {
        position: relative !important;
        flex: 1 !important;
        overflow: visible !important;
        display: block !important;
    }
}

@media (min-width: 1600px) and (max-width: 1699px) {
    .testo-immagini .immagini .fusion-column-wrapper {
        position: relative !important;
        width: 110% !important;
        max-width: none !important;
    }

    .testo-immagini.reverse .immagini .fusion-column-wrapper {
        margin-left: -10% !important;
    }
}

@media (min-width: 1700px) {
    .testo-immagini .immagini .fusion-column-wrapper {
        position: relative !important;
        width: 120% !important;
        max-width: none !important;
    }

    .testo-immagini.reverse .immagini .fusion-column-wrapper {
        margin-left: -20% !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .testo-immagini .immagini .fusion-image-element {
        --awb-max-width: 90% !important;
        max-width: 90% !important;
        margin: 0 auto 50px !important;
        text-align: center !important;
    }
}

@media (max-width: 991px) {
    .testo-immagini .immagini .fusion-column-wrapper {
        flex-direction: row !important;
    }

    .testo-immagini .immagini .fusion-image-element {
        --awb-max-width: 90% !important;
        max-width: 90% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .testo-immagini h2 br,
    .testo-immagini h3 br {
        display: none;
    }
}

/* -------------------------------------------------------------------------------- */
/* ! Header
/* -------------------------------------------------------------------------------- */

#header-2 {
    display: none;
}

@media (min-width: 1400px) and (max-width: 1499px) {
    .fusion-tb-header .awb-menu__main-li {
        margin-left: 15px;
        margin-right: 15px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    #header-1 {
        display: none;
    }

    #header-2 {
        display: flex;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .collapsed-nav-text {
        font-size: 15px;
    }

    #header-1 .left {
        width: 25%;
    }

    #header-1 .right {
        width: 75%;
    }

    #header-1 .fusion-column-wrapper {
        flex-direction: row;
        justify-content: flex-end;
    }

    #header-1 .fusion-social-links {
        margin-bottom: 0;
    }

    #header-1 .awb-menu_row {
        width: auto;
    }

    #header-1 .fusion-social-links .fusion-social-networks .fusion-social-networks-wrapper {
        margin-top: -4px;
        margin-right: 20px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #header-1 .left {
        width: 35%;
    }

    #header-1 .right {
        width: 65%;
    }
}

@media (max-width: 767px) {
    .collapsed-nav-text {
        display: none;
    }

    #header-1 .left {
        width: 55%;
    }

    #header-1 .right {
        width: 45%;
    }

    #header-1 .fusion-column-wrapper {
        flex-direction: row;
        justify-content: flex-end;
    }

    #header-1 .awb-menu_row {
        width: auto;
    }

    #header-1 .fusion-social-links .fusion-social-networks .fusion-social-networks-wrapper {
        margin-top: -7px;
        margin-right: 0px;
    }

    .fusion-sticky-transition .collapse-enabled.mobile-size-full-absolute:not(.mobile-mode-always-expanded) .awb-menu__main-ul {
        max-height: 550px !important;
    }
}

@media (max-width: 499px) {
    #menu-menu-principale {
        margin-top: 25px;
    }
}

/* -------------------------------------------------------------------------------- */
/* ! Footer
/* -------------------------------------------------------------------------------- */

#footer-0,
#footer-6 .fusion-title:first-child {
    display: none;
}

@media (min-width: 1200px) and (max-width: 1499px) {
    #footer-1 {
        display: none;
    }

    #footer-2 {
        width: 36%;
    }

    #footer-3 {
        width: 27%;
    }

    #footer-4 {
        width: 24%;
    }

    #footer-5 {
        width: 13%;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {

    #footer-0,
    #footer-6 .fusion-title:first-child {
        display: block;
    }

    #footer-1,
    #footer-5,
    #footer-2 .fusion-text:first-child {
        display: none;
    }

    #footer-2,
    #footer-3,
    #footer-4 {
        width: 33.3333%;
        margin-top: 0;
    }

    #footer-4 {
        margin-top: -20px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {

    #footer-0,
    #footer-6 .fusion-title:first-child {
        display: block;
    }

    #footer-1,
    #footer-5,
    #footer-2 .fusion-text:first-child {
        display: none;
    }

    #footer-2,
    #footer-3,
    #footer-4 {
        width: 33.3333%;
        margin-top: 0;
        margin-bottom: 0 !important;
    }

    #footer-4 {
        margin-top: -20px;
    }

    .fusion-tb-footer .fusion-fullwidth,
    .fusion-tb-footer .fusion-title-heading {
        font-size: 15px !important;
    }
}

@media (max-width : 767px) {

    .fusion-tb-footer .fusion-fullwidth,
    .fusion-tb-footer .fusion-title-heading {
        font-size: 15px !important;
    }

    #footer-4 {
        max-width: 295px;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* -------------------------------------------------------------------------------- */
/* ! Titoli
/* -------------------------------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 1199px) {

    .fusion-title h1,
    .fusion-title h1 p,
    .fusion-title h1>strong {
        font-size: 60px !important;
        line-height: 1.1;
    }

    .fusion-title h2,
    .fusion-title h2 p,
    .fusion-title h2>strong {
        font-size: 50px !important;
        line-height: 1.2;
    }
}

/* -------------------------------------------------------------------------------- */
/* ! Home Page
/* -------------------------------------------------------------------------------- */

.testo-grana {
    padding: 30px 0px 30px 70px;
    background: url(img/logo-grana-padano.webp) no-repeat left center; 
    background-size: 60px 91px;
}

@media (min-width : 1900px) {
    #hp-filiera .fusion-column-wrapper {
        padding-left: 50% !important;
    }
}

@media (max-width : 1899px) {
    #hp-terra {
        opacity: .3;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hp-numero .fusion-title-heading {
        font-size: 60px !important;
    }

    .hp-numero-testo br {
        display: none;
    }
	
	#hp-header {
		background: #000;
	}
	
	.img-mobile .fusion-column-wrapper {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	
	.img-mobile .fusion-image-element::after {
		content: '';
		display: block;
		position: absolute;
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		background: #000;
		background: linear-gradient(180deg, rgba(0, 0, 0, .3) 80%, rgba(0, 0, 0, 1) 100%);
        z-index: 10;
	}
}

@media (max-width : 767px) {
    #hp-header .logo-grana .fusion-image-element {
        max-width: 70px !important;
        /* margin: 80px auto 0px !important; */
		margin: 0 auto;
    }

    #hp-header h1.fusion-title-heading {
        font-size: 40px !important;
    }
	
	#hp-header {
		background: #000;
		height: auto !important;
	}
	
	.img-mobile .fusion-column-wrapper {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	
	.img-mobile .fusion-image-element::after {
		content: '';
		display: block;
		position: absolute;
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		background: #000;
		background: linear-gradient(180deg, rgba(0, 0, 0, .3) 80%, rgba(0, 0, 0, 1) 100%);
        z-index: 10;
	}
}

/* -------------------------------------------------------------------------------- */
/* ! Chi siamo
/* -------------------------------------------------------------------------------- */

.timeline-wrapper {
    position: relative !important;
    padding-left: 50px !important;
    padding-right: 50px !important;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--rosino);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative !important;
    margin-bottom: 40px !important;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 25%;
    width: 16px;
    height: 16px;
    background: var(--bordeaux);
    border: 3px solid var(--bordeaux);
    border-radius: 50%;
    z-index: 10;
    transform: translateY(-50%);
}

.timeline-item.left::after {
    right: -10px;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-item .fusion-builder-row {
    justify-content: end !important;
}

.timeline-item .fusion-builder-row .fusion-layout-column {
    padding: 10px 20px 0px 20px;
    border: 1px solid var(--rosino);
    max-width: 400px !important;
    align-self: flex-end;
    margin-top: -75px!important;
    background-color: #fff !important;
}

@media (min-width: 992px) {
    .timeline-item.left .fusion-layout-column {
        margin-right: 50px !important;
    }

    .timeline-item.right .fusion-imageframe {
        margin-left: 50px !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .timeline-item.left .fusion-layout-column {
        margin-right: 25px !important;
    }

    .timeline-item.right .fusion-builder-row {
        padding-left: 25px !important;
    }
}

@media (max-width: 767px) {
    .timeline-wrapper::before {
        left: 20px;
        transform: none;
    }
    
    .timeline-item.left::after,
    .timeline-item.right::after {
        right: auto;
        left: -25px;
    }

    .timeline-item .fusion-builder-row .fusion-layout-column {
        margin-top: -25px !important;
    }
}

/* -------------------------------------------------------------------------------- */
/* ! La filiera
/* -------------------------------------------------------------------------------- */

@media (min-width: 1200px) {
    .testo-carousel {
        gap: clamp(2rem, 4vw, 3rem) !important;
    }

    .testo-carousel.reverse {
        flex-direction: row-reverse !important;
    }

    .testo-carousel .testo {
        flex: 0 0 min(700px, 50%) !important;
    }

    .testo-carousel .immagini {
        position: relative !important;
        flex: 1 !important;
        overflow: visible !important;
        display: block !important;
    }
}

@media (min-width: 1600px) and (max-width: 1699px) {
    .testo-carousel .immagini .fusion-column-wrapper {
        position: relative !important;
        width: 110% !important;
        max-width: none !important;
    }
}

@media (min-width: 1700px) {
    .testo-carousel .immagini .fusion-column-wrapper {
        position: relative !important;
        width: 120% !important;
        max-width: none !important;
    }
}

/* -------------------------------------------------------------------------------- */
/* ! Contatti
/* -------------------------------------------------------------------------------- */

#contatti .mappa p,
#contatti .brebemi p,
#contatti .telefono p,
#contatti .email p,
#contatti .orari p {
    padding-left: 55px;
    padding-top: 5px;
    min-height: 37px;
    background: url(img/indirizzo.png) no-repeat left center; 
    background-size: 37px 37px;
}

#contatti .brebemi p {
    background: url(img/autostrada-a35.svg) no-repeat left center;
    background-size: 37px 37px;
}

#contatti .telefono p {
    background: url(img/phone.png) no-repeat left center;
    background-size: 37px 37px;
}

#contatti .email p {
    background: url(img/mail.png) no-repeat left center;
    background-size: 37px 37px;
}

#contatti .orari p {
    background: url(img/orari.png) no-repeat left center;
    background-size: 37px 37px;
}

.wpcf7 label {
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

.wpcf7 br {
    display: none;
}

.wpcf7-acceptance label {
    font-weight: 400;
    font-size: 14px;
}

.wpcf7-list-item {
    margin-left: 0;
}