:root{
    --blue:#00a6df;
    --purple:#362B80;
    --cream:#F1EDE9;
    --text:#2b2b2b;
    --muted:#6d6d6d;
    --max: 1120px;
}

*{ box-sizing:border-box; }
body{
    margin:0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color:var(--text);
    background:#fff;
}
img{ display:block; max-width:100%; height:auto; }
a{ color:inherit; }

.container{
    width:min(var(--max), calc(100% - 48px));
    margin:0 auto;
}

/* =======================
    TOP BAR
    ======================= */
.topbar{
    background:var(--blue);
    padding:20px 0 22px;
}
.topbar .container{
    display:flex;
    align-items:flex-start;
    justify-content:flex-start;
}
.brand{
    width:120px;
    /* background:#fff; */
    /* border-radius:6px; */
    padding:10px 12px;
}

/* =======================
    HERO (CREAM)
    ======================= */
.hero{
    background:var(--cream);
    padding:52px 40px;
    position:relative;
    height: 45vh;
    overflow: visible;
}
@media (max-width: 768px){
    .hero{
        height: 50vh;

    }
}

/* Diagonale bianca (soft) tra hero e fiera */
.hero::after{
    content:"";
    position:absolute;
    width: 100%;
    height: 160px;
    left: 0;
    bottom: -158px;
    background: url('images/hero-after.png') center no-repeat;
    background-size: cover;
    z-index: 2;
}

.hero-inner{
    max-width:980px;
}

.scribble{
    width:62px;
    height:62px;
    margin:0px 10px -10px -60px;
}

@media (max-width: 768px){
    .scribble{
        width:32px;
        height:32px;
        margin:0px 10px -10px -20px;
    }
}

.h1{
    font-family:"Baloo 2", system-ui, sans-serif;
    font-weight:800;
    color:var(--purple);
    line-height:0.85;           /* mock: più compatto */
    letter-spacing:1px;
    text-transform:uppercase;
    font-size: clamp(68px, 7.5vw, 112px);
    margin:0;
}

.underline{
    width:64px;
    height:4px;
    background:var(--blue);
    border-radius:999px;
    margin:10px 0 18px;
}

.hero p{
    margin:0;
    color:var(--muted);
    font-size:14px;
    line-height:1.5;
    max-width:560px;
}

@media (max-width: 768px){
    .hero p{
        font-size:15px;
    }
}

/* =======================
    FAIR (STAND)
    ======================= */
.fair{
    position:relative;
    z-index:1;
    color:#fff;
    padding:110px 0 120px;
    background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url("images/stand.jpg") center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-items: center;
}



@media (max-width: 768px){
    .fair{
        padding:92px 0 110px;
        background:
            linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.65)),
            url("images/stand.jpg") center/cover no-repeat;
        }

}

.fair-grid{
    display:grid;
    grid-template-columns: 1.2fr .8fr;
    gap:34px;
    align-items:center;
}

.fair-title{
    font-family:"Baloo 2", system-ui, sans-serif;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.6px;
    font-size: clamp(28px, 3vw, 44px);
    line-height:1.05;
    margin:0 0 12px 0;
}

.fair-underline{
    width:60px;
    height:4px;
    background:var(--blue);
    border-radius:999px;
    margin:8px 0 18px;
}

.fair p{
    margin:0 0 18px 0;
    font-size:16px;
    line-height:1.55;
    max-width:640px;
    opacity:.95;
}

.highlight{ color:var(--blue); font-weight:800; }

.label{
    color:var(--blue);
    font-weight:900;
    margin-top:18px;
    font-size:18px;
}

.hall{
    font-family:"Baloo 2", system-ui, sans-serif;
    font-weight:800;
    font-size: clamp(36px, 3.4vw, 58px);
    letter-spacing:.5px;
    margin:6px 0 0 0;
    text-transform:uppercase;
    line-height:1.0;
}

.badge{
    justify-self:end;           /* desktop: a destra */
    background:#fff;
    border-radius:34px;
    padding:22px 26px;
    width:min(380px, 100%);
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
}



/* =======================
    CONTACT (PURPLE BAND)
    ======================= */
.contact{
    position:relative;
    z-index:3;
    color:#fff;
    height: 37vh;
    background-color: var(--purple);
    padding:52px 40px;        /* mock: più bassa */
}

/* triangolo viola sopra*/
.contact::before{
    content:"";
    position:absolute;
    width: 100%;
    height: 130px;
    right: 0;
    top: -128px;
    background: url('images/contact-before.png') center no-repeat;
    background-size: cover;
}
/* triangolo viola sotto*/
.contact::after{
    content:"";
    position:absolute;
    width: 100%;
    height: 130px;
    right: 0;
    bottom: -128px;
    background: url('images/contact-after.png') center no-repeat;
    background-size: cover;
}

.contact .container{ position:relative; z-index:2; }

.contact .drawings{
    position: absolute;
    width: 50%;
    right: 130px;
    top: -4vw;
}
@media (max-width: 768px){
    .contact .drawings{
        display: none;
    }
}
.contact-head{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin:0 0 18px 0;
}
.contact-title{
    font-family:"Baloo 2", system-ui, sans-serif;
    font-weight:800;
    font-size: clamp(28px, 3vw, 44px);
    margin:0;
    text-transform:uppercase;
    letter-spacing:.6px;
    line-height:1;
    display:flex;
    align-items:center;
    gap:14px;
}
.contact-underline{
    width:58px;
    height:4px;
    background:var(--blue);
    border-radius:999px;
}
.contact p{
    margin:0;
    font-size:18px;
    line-height:1.5;
    opacity:.95;
}
.contact a{
    font-weight:800;
    text-decoration:underline;
    text-underline-offset:3px;
}


/* =======================
    FACTORY IMAGE
    ======================= */
.factory{
    position:relative;
    background: url("images/factory.jpg") center/cover no-repeat;
    margin-top:-25vh;
    overflow:hidden;
    height: 100vh;
}
@media (max-width: 768px){
    .factory{
        height:100vh;
        background: url("images/factory.jpg") center/cover no-repeat;
        margin-top:-45px;
    }
}



/* =======================
    FOOTER
    ======================= */
footer{
    background:var(--purple);
    color:#fff;
    padding:46px 0 26px;
    position:relative;
    z-index:2;
}

/* diagonale viola che entra nel footer */
footer::before{
    content:"";
    position:absolute;
    width: 100%;
    height: 130px;
    right: 0;
    top: -128px;
    background: url('images/contact-before.png') center no-repeat;
    background-size: cover;
}

.footer-grid{
    display:grid;
    grid-template-columns: 220px 1fr;
    gap:30px;
    align-items:start;
}

.footer-logo{
    width:180px;
}
.footer-right{
    padding-left: 20px;
    position: relative;
}

.footer-right h3{
    margin:0 0 10px 0;
    font-size:18px;
    letter-spacing:.2px;
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:800;
}

.tri{
    width:0;
    height:0;
    border-left:9px solid transparent;
    border-right:9px solid transparent;
    border-top:15px solid var(--blue);
    transform: rotate(-220deg);
    display:inline-block;
    position: absolute;
    left: -20px;
}

.footer-underline{
    width:33px;
    height:2px;
    background:var(--blue);
    border-radius:999px;
    margin:-5px 0 12px -5px;
}

.footer-meta{
    font-size:15px;
    line-height:2em;
    opacity:.95;
}

.footer-meta a{ text-decoration:none; }
.footer-meta a:hover{ text-decoration:underline; text-underline-offset:3px; }

.social{
    margin-top:12px;
    display:flex;
    gap:10px;
    align-items:center;
}
.in-btn{
    width:34px; height:34px;
    border-radius:6px;
    background:#0a66c2;
    display:grid;
    place-items:center;
    color:#fff;
    font-weight:900;
    text-decoration:none;
    line-height:1;
    font-size: 20px;
}

.copyright{
    margin-top:16px;
    font-size:12px;
    opacity:.9;
}

/* =======================
    RESPONSIVE LAYOUT
    ======================= */

/* Mobile/tablet: badge sotto e centrato (mock) */
@media (max-width: 900px){
    .fair-grid{
    grid-template-columns:1fr;
    }
    .badge{
    justify-self:center;
    margin-top:24px;
    }
    .footer-grid{ grid-template-columns:1fr; }
}

/* Mobile spacing (mock) */
@media (max-width: 520px){
    .container{ width: calc(100% - 36px); }
    .topbar{ padding:16px 0 18px; }
    .brand{ width:112px; }

    .fair{ padding:178px 20px; }
    .contact{ padding:46px 40px; }
    .factory{ margin-top:-36px; }

    .badge{
    border-radius:28px;
    padding:18px 20px;
    width:min(340px, 100%);
    }
    footer{ padding:40px; }
    .footer-logo{ width:160px; }
}