/*
Theme Name: Colombo Pietro 2025
Theme URI:  https://www.wpserveur.net
Author:     AVANTI
Author URI: https://avanti-agency.fr
Template:   hello-elementor
Version:    1.0
License:    GNU General Public License v2 or later
*/
.prodotto-immagine {
    width: 100%;
}

.prodotto-immagine__img {
    display: block;
    width: 100%;
    height: auto;
}
/* Image detouree : flottante, centree, avec de l air autour */
.prodotto-immagine--ritagliata {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.prodotto-immagine--ritagliata .prodotto-immagine__img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    object-fit: contain;
}

/* Image avec fond / en situation : bandeau 16:9 pleine largeur */
.prodotto-immagine--con-sfondo {
    padding: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.prodotto-immagine--con-sfondo .prodotto-immagine__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Grille adaptative pour les blocs informatifs */
/* Par defaut : 1 colonne (pour 1 a 4 blocs) */
.prodotto-blocchi {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* 5 blocs ou plus : passe en 2 colonnes (desktop uniquement) */
.prodotto-blocchi:has(> .prodotto-blocchi__item:nth-child(5)) {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 3rem;
}

/* Mobile : toujours 1 colonne, peu importe le nombre */
@media (max-width: 767px) {
    .prodotto-blocchi,
    .prodotto-blocchi:has(> .prodotto-blocchi__item:nth-child(5)) {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Blocchi informativi */

.prodotto-blocchi__titolo {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem;
}

.prodotto-blocchi__elenco {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prodotto-blocchi__elenco li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.prodotto-blocchi__elenco li::before {
    content: "\203A";
    position: absolute;
    left: 0;
    top: 0;
    color: #0f5499;
    font-weight: 700;
}

/* Sous-listes imbriquees des blocchi informativi */
.prodotto-blocchi__elenco--sub {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
}

/* Marqueur tiret (\2013) pour les sous-points, au lieu du chevron */
.prodotto-blocchi__elenco--sub li::before {
    content: "\2013";
    color: #6c757d;
}

.prodotto-blocchi__titolo {
    border-bottom: 2px solid #0f5499;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    width:55%;
}
.prodotto-blocco {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 4px;
    height: 100%;
}
/* Certificazioni */

.prodotto-certificazioni {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.prodotto-certificazione {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    min-width: 100px;
}

.prodotto-certificazione__logo {
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.prodotto-certificazione__nome {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
/* Pittogrammi */

.prodotto-pittogrammi {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.prodotto-pittogramma {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    min-width: 80px;
    max-width: 90px;
}

.prodotto-pittogramma__logo {
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.prodotto-pittogramma__nome {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.3;
}
/* === Diagramma (schemi tecnici en carrousel) === */
.prodotto-diagramma {
    text-align: center;
}

.prodotto-diagramma__titolo {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem 0;
    text-align: left;
}

.prodotto-diagramma-carousel {
    max-width: 100%;
}

/* Carrousel principal */
.prodotto-diagramma-carousel .splide.is-main {
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 1rem;
}

.prodotto-diagramma-carousel .splide.is-main .splide__slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.prodotto-diagramma-carousel .splide.is-main .splide__slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
}

/* Fleches */
.prodotto-diagramma-carousel .splide__arrow {
    background: #0f5499;
    opacity: 1;
    width: 2.5rem;
    height: 2.5rem;
}

.prodotto-diagramma-carousel .splide__arrow:hover:not(:disabled) {
    background: #0a3d6f;
}

.prodotto-diagramma-carousel .splide__arrow svg {
    fill: #fff;
}

.prodotto-diagramma-carousel .splide__arrow:disabled {
    opacity: 0.3;
}

/* Miniatures */
.prodotto-diagramma-carousel .splide.is-thumbs {
    padding: 0;
}

.prodotto-diagramma-carousel .splide.is-thumbs .splide__slide {
    opacity: 0.5;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.prodotto-diagramma-carousel .splide.is-thumbs .splide__slide:hover {
    opacity: 0.8;
}

.prodotto-diagramma-carousel .splide.is-thumbs .splide__slide.is-active {
    opacity: 1;
    border-color: #0f5499;
}

.prodotto-diagramma-carousel .splide.is-thumbs .splide__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile : reduit la hauteur du carrousel principal */
@media (max-width: 767px) {
    .prodotto-diagramma-carousel .splide.is-main {
        padding: 0.5rem;
    }

    .prodotto-diagramma-carousel .splide__arrow {
        width: 2rem;
        height: 2rem;
    }
}

/* === Galleria (grille de vignettes) === */
.prodotto-galleria__griglia {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.prodotto-galleria__item {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
}

.prodotto-galleria .prodotto-galleria__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.prodotto-galleria .prodotto-galleria__item:hover .prodotto-galleria__img {
    transform: scale(1.05);
}

/* Tablette : 3 colonnes */
@media (max-width: 1023px) {
    .prodotto-galleria__griglia {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile : 2 colonnes */
@media (max-width: 767px) {
    .prodotto-galleria__griglia {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}
/* === Settori di applicazione (chips) === */
.prodotto-settori__titolo {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem 0;
    border-bottom: 2px solid #0f5499;
    padding-bottom: 0.5rem;
    width: 55%;
}

.prodotto-settori__lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.prodotto-settori__item {
    margin: 0;
    padding: 0;
}

.prodotto-settori__chip {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: #eef3f9;
    color: #0f5499;
    border: 1px solid #d4e0ef;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

a.prodotto-settori__chip:hover {
    background: #0f5499;
    color: #fff;
    border-color: #0f5499;
}

/* === Video === */
.prodotto-video {
    width: 100%;
}

.prodotto-video__embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
}

.prodotto-video__embed iframe,
.prodotto-video__embed video,
.prodotto-video__embed object,
.prodotto-video__embed embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* === Settori di applicazione dans l en-tete bleu des fiches produit === */
.prodotto-settori .prodotto-settori__titolo {
color: #ffffff;
border-bottom-color: rgba(255, 255, 255, 0.35);
}

body .prodotto-settori .prodotto-settori__lista .prodotto-settori__chip {
background: rgba(255, 255, 255, 0.08);
color: #ffffff;
border: 1px solid rgba(255, 255, 255, 0.55);
font-size: 0.875rem;
font-weight: 500;
}

body .prodotto-settori .prodotto-settori__lista a.prodotto-settori__chip:hover,
body .prodotto-settori .prodotto-settori__lista a.prodotto-settori__chip:focus-visible {
background: #ffde00;
color: #051b33;
border-color: #ffde00;
}

/* === News et Eventi : contenu (shortcode [colombo_contenuto]) === */
.colombo-contenuto {
display: flex;
flex-direction: column;
gap: 2.5rem;
}

.colombo-sezione {
margin: 0;
}

.colombo-sezione__titolo {
font-size: 1.375rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.04em;
color: #0f5499;
margin: 0 0 1rem;
}

.colombo-sezione__testo p {
margin: 0 0 1em;
line-height: 1.7;
}

.colombo-sezione__testo p:last-child {
margin-bottom: 0;
}

.colombo-sezione--immagine .colombo-sezione__img {
display: block;
width: 100%;
height: auto;
border-radius: 8px;
}

.colombo-sezione__didascalia {
margin-top: 0.5rem;
font-size: 0.875rem;
color: #6c757d;
}

.colombo-galleria {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
}

.colombo-galleria__item {
display: block;
aspect-ratio: 4 / 3;
overflow: hidden;
border-radius: 8px;
background: #f5f5f5;
}

.colombo-galleria__img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: transform 0.3s ease;
}

.colombo-galleria__item:hover .colombo-galleria__img {
transform: scale(1.05);
}

.colombo-video {
position: relative;
aspect-ratio: 16 / 9;
border-radius: 8px;
overflow: hidden;
}

.colombo-video iframe {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
border: 0;
}

.colombo-documenti {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 0.5rem;
}

body a.colombo-documenti__link {
display: inline-flex;
align-items: center;
gap: 0.5rem;
font-weight: 600;
color: #0f5499;
text-decoration: none;
}

body a.colombo-documenti__link::before {
content: "\2193";
font-weight: 700;
}

body a.colombo-documenti__link:hover {
color: #051b33;
text-decoration: underline;
}

/* === Eventi : badge des cartes (shortcode [colombo_evento_data]) === */
.colombo-evento-data {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.35rem 0.75rem;
font-size: 0.875rem;
color: #051b33;
}

.colombo-evento-data__stato {
display: inline-block;
padding: 0.15rem 0.6rem;
border-radius: 999px;
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.04em;
background: #e9ecef;
color: #495057;
}

.colombo-evento-data--in-programma .colombo-evento-data__stato,
.colombo-evento-data--in-corso .colombo-evento-data__stato {
background: #ffde00;
color: #051b33;
}

.colombo-evento-data__date {
font-weight: 600;
}

.colombo-evento-data__citta::before {
content: "\00B7";
margin-right: 0.75rem;
}

/* === Eventi : fiche pratique (shortcode [colombo_evento_info]) === */
.colombo-evento-info {
background: #f8f9fa;
border-top: 4px solid #0f5499;
border-radius: 8px;
padding: 1.75rem;
}

.colombo-evento-info__stato {
display: inline-block;
margin-bottom: 1.25rem;
padding: 0.2rem 0.75rem;
border-radius: 999px;
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.04em;
background: #e9ecef;
color: #495057;
}

.colombo-evento-info__stato--in-programma,
.colombo-evento-info__stato--in-corso {
background: #ffde00;
color: #051b33;
}

.colombo-evento-info__lista {
margin: 0;
display: flex;
flex-direction: column;
gap: 1rem;
}

.colombo-evento-info__riga dt {
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
color: #6c757d;
margin: 0 0 0.15rem;
}

.colombo-evento-info__riga dd {
margin: 0;
font-size: 1rem;
font-weight: 600;
color: #051b33;
}

body a.colombo-evento-info__sito {
display: inline-block;
margin-top: 1.5rem;
padding: 0.6rem 1.25rem;
background: #0f5499;
color: #ffffff;
border-radius: 4px;
font-weight: 600;
text-decoration: none;
transition: background-color 0.2s ease;
}

body a.colombo-evento-info__sito:hover {
background: #051b33;
color: #ffffff;
}

/* === Lien de retour (shortcode [colombo_torna]) === */
body a.colombo-torna {
display: inline-flex;
align-items: center;
gap: 0.5rem;
font-weight: 600;
color: #ffffff;
text-decoration: none;
}

body a.colombo-torna::before {
content: "\2190";
}

body a.colombo-torna:hover {
color: #ffde00;
}

@media (max-width: 767px) {
.colombo-galleria {
grid-template-columns: repeat(2, 1fr);
gap: 0.5rem;
}
.colombo-evento-info {
padding: 1.25rem;
}
}

/* === Lien "Tous les evenements" (shortcode [colombo_tutti_eventi]) === */
body a.colombo-tutti-eventi {
display: inline-block;
padding: 0.6rem 1.25rem;
border: 2px solid #0f5499;
border-radius: 4px;
color: #0f5499;
font-weight: 600;
text-decoration: none;
transition: background-color 0.2s ease, color 0.2s ease;
}

body a.colombo-tutti-eventi:hover {
background: #0f5499;
color: #ffffff;
}

/* === Image de couverture dans l en-tete des News et Eventi === */
.colombo-hero-img img {
width: 100%;
max-height: 420px;
object-fit: cover;
border-radius: 8px;
}

/* Les blocs de shortcode occupent toute la largeur de leur colonne */
.colombo-evento-info,
.colombo-contenuto {
width: 100%;
box-sizing: border-box;
}

/* Widgets de shortcode en pleine largeur dans une colonne a largeur fixee (fiche Evento) */
.e-con .elementor-widget.colombo-larghezza-piena {
--width: 100%;
width: 100%;
}

/* === Gammes : cartes des sous-gammes (shortcode [colombo_sottogamme]) === */
.colombo-sottogamme {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 30px;
max-width: 1140px;
margin: 0 auto;
}

body a.colombo-sottogamma {
display: flex;
flex-direction: column;
background: #ffffff;
border-radius: 15px;
box-shadow: 0 0 10px 0 rgba(218, 218, 218, 0.5);
overflow: hidden;
color: #0f5499;
text-decoration: none;
transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body a.colombo-sottogamma:hover,
body a.colombo-sottogamma:focus-visible {
box-shadow: 0 6px 20px 0 rgba(15, 84, 153, 0.18);
transform: translateY(-2px);
color: #0f5499;
}

.colombo-sottogamma__media {
display: block;
aspect-ratio: 1 / 1;
background: #ffffff;
}

.colombo-sottogamma .colombo-sottogamma__img {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
}

.colombo-sottogamma__corpo {
display: flex;
flex-direction: column;
gap: 12px;
padding: 16px 20px 22px;
flex: 1;
}

.colombo-sottogamma__titolo {
font-family: "Jost", sans-serif;
font-size: 18px;
line-height: 1.2;
font-weight: 400;
text-transform: uppercase;
color: #0f5499;
}

.colombo-sottogamma__link {
margin-top: auto;
font-family: "Jost", sans-serif;
font-size: 12px;
font-weight: 500;
color: #0f5499;
}

.colombo-sottogamma__link::after {
content: "\2192";
margin-left: 6px;
}

@media (max-width: 1023px) {
.colombo-sottogamme {
grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 767px) {
.colombo-sottogamme {
grid-template-columns: 1fr;
gap: 20px;
}
}

/* Gamme avec sous-gammes ET produits directs : pas de double espacement entre les deux grilles */
body .elementor-302 .js-gamma-sottogamme + .js-gamma-prodotti {
--padding-top: 0px;
}

/* =========================================================================
 * Affichage compact sur ordinateur (>= 1025 px) - demande client oct. 2026.
 * Tablette et mobile inchanges. Les tailles de texte globales (titres 34/22 px,
 * texte 16 px) sont reglees dans le kit Elementor ; ici : en-tete, hauteurs des
 * bandeaux et sections. Ces regles priment sur les hauteurs saisies dans Elementor.
 * ====================================================================== */
@media (min-width: 1025px) {
	/* En-tete : barre de contact et bandeau du logo plus bas. */
	body .elementor-29 .elementor-element.elementor-element-6a98bc7c {
		--padding-top: 9px;
		--padding-bottom: 9px;
	}
	body .elementor-29 .elementor-element.elementor-element-79cf0a20 {
		--padding-top: 12px;
		--padding-bottom: 12px;
	}
	body .elementor-29 .elementor-element.elementor-element-617a6d0b img {
		height: 90px;
		width: auto;
	}

	/* Bandeaux en haut des fiches produit, gammes, news et evenements. */
	body .elementor .elementor-element.elementor-element-dbaff77,
	body .elementor .elementor-element.elementor-element-1983bd3,
	body .elementor .elementor-element.elementor-element-fbc8b94,
	body .elementor .elementor-element.elementor-element-56844ab,
	body .elementor .elementor-element.elementor-element-6818f86,
	body .elementor .elementor-element.elementor-element-9dd912e {
		--min-height: 38vh;
	}

	/* Pages Storia et Contatti. */
	body .elementor .elementor-element.elementor-element-a0c41d6 {
		--min-height: 32vh;
	}
	body .elementor .elementor-element.elementor-element-76a23be {
		--min-height: 38vh;
	}

	/* Accueil. */
	body .elementor .elementor-element.elementor-element-7c79487 {
		--min-height: 45vh;
	}
	body .elementor .elementor-element.elementor-element-9ab9038,
	body .elementor .elementor-element.elementor-element-e5cf842,
	body .elementor .elementor-element.elementor-element-55693af {
		--min-height: 24vh;
	}
	body .elementor .elementor-element.elementor-element-c1bde0c,
	body .elementor .elementor-element.elementor-element-d28b99e,
	body .elementor .elementor-element.elementor-element-e30004f,
	body .elementor .elementor-element.elementor-element-6c0e6ae {
		--min-height: 38vh;
	}

	/* Page Prodotti. */
	body .elementor .elementor-element.elementor-element-98a5df7 {
		--min-height: 38vh;
	}
	body .elementor .elementor-element.elementor-element-1c13ade,
	body .elementor .elementor-element.elementor-element-6ea57ad,
	body .elementor .elementor-element.elementor-element-05cfe00,
	body .elementor .elementor-element.elementor-element-9f33ab2,
	body .elementor .elementor-element.elementor-element-798af6f,
	body .elementor .elementor-element.elementor-element-e878e6e,
	body .elementor .elementor-element.elementor-element-700e586 {
		--min-height: 24vh;
	}

	/* Fiche produit : image detouree (sans fond) moins haute, sans recadrage. */
	body .prodotto-immagine--ritagliata {
		padding: 16px;
	}
	body .prodotto-immagine--ritagliata .prodotto-immagine__img {
		max-height: 230px;
	}
	/* Fiche produit : espacement de la section sous le bandeau. */
	body .elementor-66 .elementor-element.elementor-element-fbff425 {
		--padding-top: 36px;
		--padding-bottom: 24px;
	}

	/* Pied de page. */
	body .elementor-166 .elementor-element.elementor-element-b8017af {
		--min-height: 28vh;
	}
}

/* Cartes de gammes (modele de boucle 1393) : la remontee de 60 px sur le bandeau etait
   une marge negative sur chaque carte ; avec les hauteurs egales de la grille, la carte
   devenait trop courte (image hors du cadre) et les rangees suivantes se chevauchaient.
   La remontee est portee par la grille entiere, les cartes n'ont plus de marge. */
body .elementor .elementor-element .e-loop-item.elementor-1393 > .elementor-element.elementor-element-8004a2d {
--margin-top: 0px;
}
body .elementor .elementor-widget-loop-grid:has(> .elementor-widget-container > .elementor-loop-container > .e-loop-item.elementor-1393),
body .elementor .elementor-widget-loop-grid:has(> .elementor-loop-container > .e-loop-item.elementor-1393) {
margin-top: -60px;
}

/* ==========================================================================
   Pied de page : mentions legales [colombo_footer_legale]
   ========================================================================== */
.colombo-footer-legale {
	margin: 0;
	text-align: center;
	font-size: 13px;
	line-height: 1.6;
	color: var(--e-global-color-7ae3295, #fff);
}
.colombo-footer-legale a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.colombo-footer-legale a:hover,
.colombo-footer-legale a:focus-visible {
	opacity: .8;
}
.colombo-footer-legale__sep {
	opacity: .5;
}

/* ==========================================================================
   tarteaucitron : emplacements des contenus tiers avant consentement
   ========================================================================== */
.prodotto-video__embed .youtube_player,
.prodotto-video__embed .vimeo_player {
	position: absolute;
	inset: 0;
}
.prodotto-video__embed .tac_activate,
.elementor-widget-google_maps .tac_activate {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100% !important;
	height: 100%;
	padding: 20px;
	box-sizing: border-box;
	line-height: 1.4;
	text-align: center;
	background: var(--e-global-color-secondary, #051B33) !important;
	color: #fff !important;
}
/* Meme hauteur que la carte Elementor (40vh) avant et apres consentement. */
.elementor-widget-google_maps .googlemapsembed {
	width: 100% !important;
	height: 40vh !important;
	min-height: 300px;
}
.elementor-widget-google_maps .googlemapsembed iframe {
	display: block;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}
.prodotto-video__embed .tac_activate .tac_float,
.elementor-widget-google_maps .tac_activate .tac_float {
	line-height: 1.4;
}
