/* 
Theme Name: Hello Elementor Child
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
*/

/* fix stronzate di elementor */
.elementor-widget-button .elementor-button {
    font-weight: 600 !important;
}

/* HEADER */
/**********/

/* Add your custom styles here */

/* --- 1. CAMBIO LOGO --- */
.logo-sticky {
    display: none !important;
}

/* Quando l'header si attiva, invertiamo i loghi */
.header-scrolled .logo-normale {
    display: none !important;
}
.header-scrolled .logo-sticky {
    display: inline-block !important;
}

/* --- 2. COMPORTAMENTO STICKY --- */
.main-nav {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Transizione morbida quando l'header torna normale in cima */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Stato attivo quando si scrolla oltre i 300px */
.main-nav.header-scrolled {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 999 !important; /* Molto alto per stare sopra a tutto */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    
    /* Animazione fluida di comparsa dall'alto */
    animation: scivolaGiu 0.3s ease-in-out forwards;
}

@keyframes scivolaGiu {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.contatto-head a.elementor-button.elementor-button-link.elementor-size-sm {
    height: 72px;
    display: flex;
    align-items: center;
}

.burger-icon {
	margin-block-end: 0;
    line-height: 0;
}

.top-header .elementor-icon-box-title, .ocmenu .elementor-icon-box-title {
	line-height: 0 !important;
    margin-block-end: 0;
}


/* TIPOGRAFIA */
/**************/

.footermenu a:hover {
	text-decoration: underline !important;
}
p a, label a, .elementor-widget-theme-post-content a {
	color: inherit;
	text-decoration: underline !important;
}
/*p a:hover {
	opacity: 0.8;
}*/

h1, h2, h3, h4, h5, h6 {
	margin-block-end: 0.1em;
}
.senza-spazio p {
 	margin-block-end: 0;
}

.titolosito h1{
	margin-block-end: 0;
}
.titolosito h3 {
	margin-block-start: 0;
}

span.arancio {
	color: #e84b0f;
}
span.petrolio {
	color: #124858;
}
span.bianco {
	color: white;
}
span.grigioceleste {
	color: #A5C1C0;
}
span.risultati {
    display: block;
    color: #124858;
}

ul {
    padding-inline-start: 20px;
    margin-block-end: 1.2em;
}
li {
    margin-block-end: 0.3em;
}

h2.numeroni {
	font-size: 160px; 
	line-height: 100px;
}

@media (max-width: 1024px) {
h2.numeroni {
	font-size: 100px; 
	line-height: 60px;
}
}

.titolo-download-correlati {
    color: #144858;
    font-family: 'Inter';
    font-size: 24px;
    font-weight: 800;
}
.contatore_download .elementor-shortcode {
	font-size: 12px !important;
	line-height: 12px;
	font-family: Inter, sans-serif;
}

.info_corso p {
    color: #fff;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    line-height: 20px;
}

/* VARIE */
/**************/

.btn-alt .elementor-button {
	color: #a5c1c0 !important;
	border-color: #a5c1c0;
}
.btn-alt .elementor-button:hover {
	color: white !important;
	border-color: white;
}

#elementor-popup-modal-122 {
    z-index: 9999 !important;
}

.page-header {
    padding: 50px 0;
}

.elementor-icon svg,
span.elementor-icon svg, span.elementor-icon {
    overflow: visible !important;
    overflow-clip-margin: unset !important;
}
/* CORSI */
/**************/

/*.img_corsi {
	overflow: hidden;
}*/

/*.img_corsi:after {
	content: url(https://cc.marcoresenterra.com/wp-content/uploads/2026/07/img-corsi-overlay.png);
	position: absolute;
	top: 0;
 	left: 0;
	width: 100%;
	height: 100%;
}*/

.cont_img_corsi {
	aspect-ratio: 45 / 30;
}
.cont_img_corsi_basso {
	aspect-ratio: 80 / 35 !important;
}


.info_corso h3{
    margin-block-start: 0;
}
.info_corso p {
    margin-block-end: 0;
}
.info_corso span.elementor-icon {
    border: 1px solid #fff !important;
    border-radius: 500px;
    padding: 10px;
}

.downloads span.elementor-button-icon {
    font-size: 28px;
}

.gm-style .gm-style-iw-d {
 color: var(--e-global-color-primary);
}



/* Nasconde il titolo duplicato e l'header di Enfold nel contenuto */
.entry-content .av-special-heading,
.elementor-post__content .av-special-heading,
.entry-content .av-special-heading-tag {
    display: none !important;
}
.\'av-special-heading, .\'avia-image-container:first-of-type {
    display: none;
}

/* Nasconde la prima immagine di Enfold nell'articolo */
.entry-content .avia-image-container:first-of-type,
.elementor-post__content .avia-image-container:first-of-type {
    display: none !important;
}

.link_utili a:after {
    content: "\f14d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
	padding-left: 8px;
}
.link_utili a {
	text-decoration: none !important;
}
.link_utili a:hover {
	text-decoration: underline !important;
}

.dati_progetto h6 {
    color: var(--e-global-color-primary);
    font-size: 14px;
	font-weight: 700;
}
.dati_progetto {
    color: var(--e-global-color-primary);
}

.loghi-partenariato div#gallery-1 {
    display: flex;
    align-items: center;
	flex-wrap: wrap;
}

.loghi-partenariato {
	overflow: hidden !important;
}

.acf-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.responsive-video-container {
    position: relative;
    padding-bottom: 56.25%; /* Rapporto 16:9 */
    height: 0;
    overflow: hidden;
    /*border-radius: 8px;*/
}

.responsive-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.elementor-122 .elementor-element.elementor-element-3943bcf .elementor-nav-menu--dropdown .elementor-item {
    line-height: 28px;
}
.ocmenu .elementor-nav-menu--dropdown .elementor-sub-item {
    font-size: 18px !important;
    line-height: 18px;
}

.ocmenu .elementor-nav-menu .sub-arrow .e-font-icon-svg {
    height: 0.6em;
    width: 0.6em;
}

.titolo-eventi-correlati {
    color: white;
    font-size: 24px;
    font-weight: 800;
}
.titolo-eventi-correlati-verde {
    color: var(--e-global-color-primary);
    font-size: 24px;
    font-weight: 800;
}

/* Nasconde l'intero container se non c'è il titolo generato dallo shortcode all'interno */
.container-eventi-correlati:not(:has(.titolo-eventi-correlati-verde)) {
    display: none !important;
}

/* Nasconde l'intero container se non c'è il titolo generato dallo shortcode all'interno */
.container-download-correlati:not(:has(.titolo-download-correlati)) {
    display: none !important;
}


