.bg2{
    background-color: #e7e7e7;
    padding: 80px 0 80px;
}

.bg3{
    background-color: #fbe7c5;
    padding: 80px 0 80px;
}

.section-white,
.section-gray,
.section-dark{
    padding: 80px 0 80px;
}

.section-white{
    background-color: #fff;
    color: #000;
}

.section-dark{
    background-color: #ddd;
    color: #000;
}

section .section-title{
    font-size: 38px;
    line-height:1.15;
    letter-spacing: 0.4px;
    font-weight:800;
    margin:0 0 14px;
    text-transform: uppercase;
    color: #000;
}
section .section-text{
    line-height:1.7;
    font-size: 17px;
    color: #000;
}

.subsection-title{
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 800;
    margin: 0 0 10px;
    position: relative;
    display: inline-block;
}
.subsection-title::after{
    content:"";
    display:block;
    height:3px; width: 56px;
    background: var(--brand);
    margin-top: 6px;
    border-radius: 999px;
    opacity:.25;
}

.subsection-text{
    line-height: 1.7;
    font-size: clamp(15px, 1.4vw, 17px);
    margin: 0;
    max-width: 58ch;
}


.grid{
    display: grid;
    grid-template-columns:1fr 1fr 1fr 1fr;
    grid-template-rows: auto;
    gap: 15px;
}

.grid-element{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 980px){
    .grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px){
    .grid{
        grid-template-columns: 1fr;
    }
}

.text-center {
    text-align: center;
}

.d-none{
    display: none;
}

#content{
    padding: 0px !important;
}

/* ===========================
   Review Block – minimalist, responsive, themable
   =========================== */
.reviews {
    /* Theme tokens */
    --bg: #ffffff;
    --card: #e7e7e7;
    --border: #e5e7eb;
    --text: #111827;
    --muted: #6b7280;
    --accent: #0ea5e9;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0,0,0,.08);

    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: stretch;
}

.review-card {
    background: #e7e7e7;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.2rem 1.2rem 1rem;
    position: relative;
    isolation: isolate;
    min-height: 180px !important;
}

/* subtle quote mark */
.review-card::before{
    content: "“";
    position: absolute;
    top: .6rem;
    right: .9rem;
    font-size: 3.2rem;
    line-height: 1;
    color: color-mix(in oklab, var(--accent) 18%, transparent);
    font-family: ui-serif, Georgia, "Times New Roman", serif;
    pointer-events: none;
    z-index: -1;
}

/* header: avatar + name + stars + meta */
.review-head{
    display: grid;
    grid-template-columns: 1fr;
    gap: .8rem;
    align-items: center;
    margin-bottom: .6rem;
}
.review-avatar{
    width: 44px; height: 44px; border-radius: 50%;
    object-fit: cover; background:#f3f4f6; border:1px solid var(--border);
}
.review-id{
    display:flex; align-items:center; justify-content:space-between; gap:.6rem;
}
.review-name{
    font-weight: 700;
    font-size: .98rem;
}
.review-date, .review-source{
    color: var(--muted);
    font-size: .84rem;
}

/* Stars: set --rating: 0..5 on .review-stars */
.review-stars{
    --rating: 5;         /* default */
    --star-size: 18px;
    --star-gap: 2px;
    --star-color: #e5e7eb; /* empty */
    --star-active: #f59e0b;/* filled */

    display:inline-block;
    position: relative;
    width: calc(var(--star-size) * 5 + var(--star-gap) * 4);
    height: var(--star-size);
}
.review-stars::before,
.review-stars::after{
    content:"★★★★★";
    letter-spacing: var(--star-gap);
    font-size: var(--star-size);
    line-height: 1;
    font-family: "Apple Color Emoji","Segoe UI Symbol","Noto Color Emoji",sans-serif; /* fallback */
    position: absolute; inset:0;
    -webkit-text-stroke: .5px rgba(0,0,0,.08);
}
.review-stars::before{ color: var(--star-color); }
.review-stars::after{
    color: var(--star-active);
    width: calc( (var(--rating) / 5) * 100% );
    overflow: hidden;
    white-space: nowrap;
}

/* body text with clamp */
.review-text{
    margin-top: .4rem;
    line-height: 1.55;
    font-size: .98rem;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 6;      /* mostra 6 righe max */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* footer: badges / CTA / source */
.review-foot{
    display:flex; align-items:center; justify-content: space-between;
    gap:.6rem; margin-top:.9rem;
}
.review-badge{
    padding:.25rem .5rem; border-radius:999px;
    font-size:.75rem; font-weight:600;
    background: color-mix(in oklab, var(--accent) 12%, transparent);
    color: color-mix(in oklab, var(--accent) 75%, black);
    border: 1px solid color-mix(in oklab, var(--accent) 30%, var(--border));
}

/* Hover elevation */
.review-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,.10);
    transition: transform .25s ease, box-shadow .25s ease;
}

/* Horizontal scroll variant (mobile carrousel) */
.reviews.is-scroll{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(260px, 80vw, 360px);
    overflow-x: auto;
    padding-bottom: .4rem;
    scroll-snap-type: x mandatory;
}
.reviews.is-scroll .review-card{ scroll-snap-align: start; }

/* Dark mode */
@media (prefers-color-scheme: dark){
    .reviews{
        --bg:#0b0f14; --card:#0f141a; --border:#1f2937;
        --text:#e5e7eb; --muted:#9ca3af;
        --shadow: 0 10px 30px rgba(0,0,0,.35);
    }
}

/* Small tweaks */
@media (max-width: 480px){
    .review-card{ padding: 1rem; }
    .review-name{ font-size:.95rem; }
    .review-text{ -webkit-line-clamp: 7; }
}

/* ===========================
  HERO BANNER MODERNO
  =========================== */
.hero-banner {
    position: relative;
    min-height: 60vh; /* altezza minima per dare respiro */
    background: url('../img/slide_impermeabilizzazione_terrazzi.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: #fff;
    overflow: hidden;
}

/* Overlay scuro per migliorare contrasto testo */
.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.35)
    );
    z-index: 1;
}

/* Contenuto del banner */
.hero-banner > .container {
    z-index: 2;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.feature{
    background:#fff;
    border:1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 18px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover{
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(2,6,23,.10);
}

.feature-icon img{
    width:48px;
    height:48px;
    margin-bottom: 10px;

}
.feature h4{
    font-size:1.05rem;
    margin:2px 0 6px;
    font-weight:800;
    color: #fd8630;
}
.feature p{
    color:var(--muted); line-height:1.65; font-size:.95rem; margin:0;
}