/* 
Theme Name: Tecno Solar | Hello Elementor
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/**
 * COLORI
 * Blu: #443A95
 * Arancio: #D16923
 */

/* Golden rules */
.elementor-widget { margin-bottom: 0px !Important; }
p:last-child { margin-bottom: 0; }

/* Desktop | Testata solida / trasparente */
.testata-solida .testata-desktop { background: white !important; }
.testata-solida .testata-desktop svg :is(path, polygon, rect) { /* fill: black !important; */ }
.testata-solida .testata-desktop  .testata-desktop-interna nav span { color: black !important; cursor: pointer; }
.testata-trasparente .testata-desktop i { color: black !important; }

.testata-trasparente .testata-desktop { z-index: 1; background: transparent !important; margin-bottom: -70px !important; border-bottom: 1px white solid; }
.testata-trasparente .testata-desktop  .testata-desktop-interna nav span { color: white !important; cursor: pointer; }
.testata-trasparente .testata-desktop svg :is(path, polygon, rect, g) { fill: white !important; }
.testata-trasparente .testata-desktop i { color: white !important; }

/* Bordo grigio a dx voci menu mobile */
.elementor-nav-menu li { margin: 2px !important; }

/* Breadcrumbs Yoast */
p#breadcrumbs :is(span, span a) { font-size: 13px !important; font-weight: normal !important; }



/**
 * Pagetitle allineamento testi
 */

/* Allineamento orizzontale */
.acf-pagetitle-allineamento-orizzontale-sinistra .pagetitle-base-interno :is(.breadcrumbs, .pretitolo, .titolo, .sottotitolo, .pulsante) { text-align:left !important; }
.acf-pagetitle-allineamento-orizzontale-centro .pagetitle-base-interno :is(.breadcrumbs, .pretitolo, .titolo, .sottotitolo, .pulsante) { text-align:center !important; }
.acf-pagetitle-allineamento-orizzontale-centro .pagetitle-base-interno p#breadcrumbs > span { text-align:center !important; display:block !important; }
.acf-pagetitle-allineamento-orizzontale-centro .pagetitle-base-interno :is(div.e-con-inner, div.e-con-inner div) { align-items:center !important; }
.acf-pagetitle-allineamento-orizzontale-destra .pagetitle-base-interno :is(.breadcrumbs, .pretitolo, .titolo, .sottotitolo, .pulsante) { text-align:right !important; }
.acf-pagetitle-allineamento-orizzontale-destra .pagetitle-base-interno p#breadcrumbs > span { text-align:right !important; display:block !important; }
.acf-pagetitle-allineamento-orizzontale-destra .pagetitle-base-interno :is(div.e-con-inner, div.e-con-inner div) { align-items:flex-end !important; }
.pagetitle-base-interno .pulsante { width:100% !important; }

/* Allineamento verticale */
.acf-pagetitle-allineamento-verticale-top .pagetitle-base-interno > div { justify-content:flex-start !important; }
.acf-pagetitle-allineamento-verticale-center .pagetitle-base-interno > div { justify-content:center !important; }
.acf-pagetitle-allineamento-verticale-bottom .pagetitle-base-interno > div { justify-content:flex-end !important; }

/* Altezza Desktop */
.desktop.acf-pagetitle-altezza-alto .pagetitle-base { height:600px !important; }
.desktop.acf-pagetitle-altezza-moltoalto .pagetitle-base { height:800px !important; }
.desktop.acf-pagetitle-altezza-altissimo .pagetitle-base { height:1080px !important; }

/* Altezza Tablet */
.tablet.acf-pagetitle-altezza-alto .pagetitle-base { height:600px !important; }
.tablet.acf-pagetitle-altezza-moltoalto .pagetitle-base { height:800px !important; }
.tablet.acf-pagetitle-altezza-altissimo .pagetitle-base { height:1080px !important; }

/* Altezza Mobile */
.mobile.acf-pagetitle-altezza-alto-mobile .pagetitle-base { height:400px !important; }
.mobile.acf-pagetitle-altezza-moltoalto-mobile .pagetitle-base { height:550px !important; }
.mobile.acf-pagetitle-altezza-altissimo-mobile .pagetitle-base { height:700px !important; }

/* Fine pagetitle allineamento testi */



/**
 * Pagetitle velo
 */

/* Velo nero + testo bianco */
.pagetitle_veloneroleggero_testobianco .pagetitle-base::before {
	background-color: transparent !important;
	--background-overlay: '' !important;
	background-image: linear-gradient(180deg, #00000015 0%, #00000015 100%) !important;
}
.pagetitle_veloneromedio_testobianco .pagetitle-base::before {
	background-color: transparent !important;
	--background-overlay: '' !important;
	background-image: linear-gradient(180deg, #00000035 0%, #00000035 100%) !important;
}
.pagetitle_veloneropesante_testobianco .pagetitle-base::before {
	background-color: transparent !important;
	--background-overlay: '' !important;
	background-image: linear-gradient(180deg, #00000060 0%, #00000060 100%) !important;
}
:is(.pagetitle_veloneroleggero_testobianco, .pagetitle_veloneromedio_testobianco, .pagetitle_veloneropesante_testobianco) .pagetitle-base :is(.pretitolo, .titolo h1, .sottotitolo, #breadcrumbs, .breadcrumbs span a, p#breadcrumbs span, p#breadcrumbs span a ) { color: #FFFFFF !important; }
:is(.pagetitle_veloneroleggero_testobianco, .pagetitle_veloneromedio_testobianco, .pagetitle_veloneropesante_testobianco) .pagetitle-base .pulsante a { background-color: transparent !important; border-color: white !important; color: white !important; }

/* Velo bianco + testo nero */
.pagetitle_velobiancoleggero_testonero .pagetitle-base::before {
	background-color: transparent !important;
	--background-overlay: '' !important;
	background-image: linear-gradient(180deg, #FFFFFF15 0%, #FFFFFF15 100%) !important;
}
.pagetitle_velobiancomedio_testonero .pagetitle-base::before {
	background-color: transparent !important;
	--background-overlay: '' !important;
	background-image: linear-gradient(180deg, #FFFFFF35 0%, #FFFFFF35 100%) !important;
}
.pagetitle_velobiancopesante_testonero .pagetitle-base::before {
	background-color: transparent !important;
	--background-overlay: '' !important;
	background-image: linear-gradient(180deg, #FFFFFF70 0%, #FFFFFF70 100%) !important;
}
:is(.pagetitle_velobiancoleggero_testonero, .pagetitle_velobiancomedio_testonero, .pagetitle_velobiancopesante_testonero) .pagetitle-base :is(.pretitolo, .titolo h1, .sottotitolo, #breadcrumbs, .breadcrumbs span a, p#breadcrumbs span, p#breadcrumbs span a ) { color: black !important; }
:is(.pagetitle_velobiancoleggero_testonero, .pagetitle_velobiancomedio_testonero, .pagetitle_velobiancopesante_testonero) .pagetitle-base .pulsante a { background-color: transparent !important; border-color: black !important; color: black !important; }

/* Fine pagetitle velo */



/**
 * Pagetitle allineamento foto
 */

/* Allineamento verticale desktop */
.acf-pagetitle-posizionefoto-dt-top-3 .pagetitle-base { background-position-y: 0% !important; }
.acf-pagetitle-posizionefoto-dt-top-2 .pagetitle-base { background-position-y: 16% !important; }
.acf-pagetitle-posizionefoto-dt-top-1 .pagetitle-base { background-position-y: 33% !important; }
.acf-pagetitle-posizionefoto-dt-bottom-1 .pagetitle-base { background-position-y: 66% !important; }
.acf-pagetitle-posizionefoto-dt-bottom-2 .pagetitle-base { background-position-y: 83% !important; }
.acf-pagetitle-posizionefoto-dt-bottom-3 .pagetitle-base { background-position-y: 100% !important; }

/* Allineamento orizzontale mobile */
.acf-pagetitle-posizionefoto-mb-left-3 .pagetitle-base { background-position-x: 0% !important; }
.acf-pagetitle-posizionefoto-mb-left-2 .pagetitle-base { background-position-x: 16% !important; }
.acf-pagetitle-posizionefoto-mb-left-1 .pagetitle-base { background-position-x: 33% !important; }
.acf-pagetitle-posizionefoto-mb-right-1 .pagetitle-base { background-position-x: 66% !important; }
.acf-pagetitle-posizionefoto-mb-right-2 .pagetitle-base { background-position-x: 83% !important; }
.acf-pagetitle-posizionefoto-mb-right-3 .pagetitle-base { background-position-x: 100% !important; }

/* Fine pagetitle allineamento foto */



/**
 * PAGETITLE: INSERISCO MARGIN BOTTOM SE C'E' LA FOTO DI SFONDO
 * Controllo se il campo acf_pagetitle_fotosfondo ha un valore
 * Vedi anche il codice nel CSS
 */
.acf-pagetitle-con-foto-sfondo .pagetitle-base-principale {margin-bottom: 30px;}
/* Fine */


/**
 * SINGLE PAGE TEMPLATE
 * Nelle pagina applica “boxed” al contenuto tramite la body class "forza-content-boxed"
 * IMPORTANTE: vedere anche il codice aggiunto in functions.php
 * Serve il campo ACF (Vero/Falso) "acf_common_contenutoboxed"
 */

/* Boxed solo se la classe è presente sul body */
.forza-content-boxed .elementor .elementor-widget-theme-post-content > .elementor-widget-container {
  max-width: var(--container-max-width, var(--content-width, 1140px));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Evita che i blocchi Gutenberg .alignfull/.alignwide escano dal box */
.forza-content-boxed .elementor-widget-theme-post-content .alignfull,
.forza-content-boxed .elementor-widget-theme-post-content .alignwide {
  max-width: var(--container-max-width, var(--content-width, 1140px));
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}
/* Fine */
