
:root{
	
  --header-height: 70px;

/* --- COLORI --- */

    --yellow: #FFDD00;
    --black: #000000;
    --text: #333333;
    --light: #f8f9fa;
    --border: #f0f0f0;

/* --- LAYOUT --- */

    --content-width: 900px;

/* --- SPAZIATURE --- */

    --space-xs: 4px;
    --space-s: 8px;
    --space-m: 16px;
    --space-l: 24px;
    --space-xl: 32px;

/* --- OMBRE --- */

    --shadow-soft: 0 2px 6px rgba(0, 0, 0, .06);

/* --- FONTS --- */

    --font-body:"Poppins",sans-serif;

    --font-title:"Poppins",sans-serif;

    --font-subtitle:"Poppins",sans-serif;
}

*{
    box-sizing:border-box;
    margin:0;
    padding:0;
}

body{

    min-height:100vh;
    font-family:var(--font-body);

}

.wrapper{
    max-width:1200px;
    margin:0 auto;
}

header{

    width:100%;
    background:var(--yellow);

}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    cursor: pointer;
}


.logo img{

    width:80px;

    max-width:12%;

    min-width:40px;

    height:auto;

    display:block;

    margin:15px;

}

main{
    width:100%;
}


/* --- INTRO --- */

.intro {
	
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    font-family: var(--font-subtitle);
    font-size: 1.4rem;
    line-height: 1.5;
	color: var(--intro-text, var(--text));
    background: var(--intro-bg, transparent);
}

.intro.text-left {
    justify-content: flex-start;
    text-align: left;
}

.intro.text-center {
    justify-content: center;
    text-align: center;
}

.intro-image {
    flex: 0 0 auto;
    width: 80px;
    height: auto;
    display: block;
}

.intro-content {
    flex: 1;
}



/* --- DIVISORE GIALLO --- */

.yellow-divider {
    width: 100vw;
    height: 30px;
    background: var(--yellow);
    margin-left: calc(50% - 50vw);
}



/* --- DIVISORE BIANCO --- */

.white-divider {
    width: 100vw;
    height: 30px;
    background: white;
    margin-left: calc(50% - 50vw);
}



/* --- BANNER PROMOZIONALE --- */

.promo-banner {
    width: 100vw;
    margin-left: calc(50% - 50vw);

    background: var(--yellow);

    padding: 30px 24px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 12px;
}

.promo-banner-text {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

.promo-banner h2 {
    margin: 0;
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.promo-banner-button {
    display: inline-block;

    padding: 10px 22px;

    background: var(--black);
    color: #fff;

    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;

    text-decoration: none;

    border: none;
    cursor: pointer;
}


/* --- HERO --- */

.hero {
    position: relative;
    width: 100vw;
	max-height: 900px;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
}

.hero img{
    width:100%;
    height:auto;
    display:block;
}

.hero-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 30px 70px 25px;

    color: #fff;
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1;
}


.hero-title span {
    display: inline-block;
    background: var(--hero-title-bg, transparent);
    padding: 8px 14px;
}


/* --- CONTENT PRINCIPALE IN DUE, TRE o CINQUE COLONNE --- */


.content-grid{

    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
    padding:0 24px 24px;
}

.content-grid.two-blocks {
    grid-template-columns: repeat(2, 1fr);
}

.content-grid.five-blocks {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}


.content-block {
    width: 100%;
    padding: 24px;
	color: var(--block-text, var(--text));
    background: var(--block-bg, transparent);
}

.content-block p {
    margin-bottom: 15px;
}

.content-block h2{

    margin-bottom:16px;

}
.content-block > img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 16px;
}

.content-block > img.content-block-image-small {
    width: 50%;
    margin: 0 auto 16px;
}


.content-block.full-image {
    padding: 0;
}

.content-block.full-image h2,
.content-block.full-image p, 
.content-block.full-image ul{
    margin-left: 24px;
    margin-right: 24px;
}





/* --- FOOTER --- */

footer{

    width:100%;

    background:#000;

    color:#fff;

    padding:40px 24px;

}


.footer-content{

    max-width:1200px;

    margin:0 auto;

    text-align:center;

    font-size:.8rem;

    line-height:1.6;

}

.footer-links{

    margin-top:24px;

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:20px;

}

.footer-links a{

    color:#fff;

    text-decoration:none;

    font-size:.75rem;

    font-weight:600;

}

.footer-links a:hover{

    text-decoration:underline;

}

/* --- MOBILE --- */

@media (max-width: 768px) {

	.hero-title {
        padding: 20px 30px 18px;
        font-size: 1rem;
    }


    .content-grid,
    .content-grid.two-blocks {
        grid-template-columns: 1fr;
    }

    .content-grid.five-blocks {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        padding: 0 24px 24px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .content-grid.five-blocks .content-block {
        flex: 0 0 auto;
		max-width: 70%;
        scroll-snap-align: start;
    }
	
	.content-grid.five-blocks .content-block > img {
		max-width: 100%;
		max-height: auto;
		width: auto;
		height: auto;
		object-fit: contain;
}



}