/* =====================================================
   VARIABILI
===================================================== */

:root{
    --navy:#062f4f;
    --ink:#102d44;
    --red:#d9383f;
    --orange:#f5822a;
    --cream:#f6f1e8;
    --paper:#fff;
    --muted:#637381;
    --line:#dfe6e9;
    --shadow:0 18px 45px rgba(6,47,79,.12);
}


/* =====================================================
   RESET E STILI GENERALI
===================================================== */

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    color:var(--ink);
    background:var(--cream);
    font-family:Arial,Helvetica,sans-serif;
    line-height:1.6;
}

a{
    color:inherit;
}


/* =====================================================
   HEADER
===================================================== */

.site-header{
    min-height:84px;
    display:flex;
    align-items:center;
    gap:32px;
    padding:12px max(5vw,24px);
    background:rgba(255,255,255,.96);
    position:sticky;
    top:0;
    z-index:10;
    border-bottom:1px solid var(--line);
}

.brand{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    margin-right:auto;
}

.brand img{
    object-fit:contain;
}

.brand span{
    display:grid;
    line-height:1.2;
}

.brand strong{
    font-family:Georgia,serif;
    font-size:21px;
    color:var(--navy);
}

.brand small{
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.13em;
    color:var(--muted);
    font-weight:700;
    margin-top:5px;
}

.site-header nav{
    display:flex;
    gap:25px;
}

.site-header nav a{
    text-decoration:none;
    font-size:14px;
    font-weight:700;
}

.site-header nav a:hover{
    color:var(--red);
}

.language select{
    border:1px solid #b8c5cc;
    background:#fff;
    border-radius:999px;
    padding:9px 12px;
    font-weight:800;
    color:var(--navy);
}


/* =====================================================
   HERO
===================================================== */

.hero{
    min-height:610px;
    padding:90px max(7vw,35px);
    display:grid;
    grid-template-columns:minmax(0,1.16fr) minmax(300px,.84fr);
    align-items:center;
    gap:60px;
    overflow:hidden;
    color:#fff;
    background:
        radial-gradient(circle at 82% 28%,rgba(35,125,141,.72),transparent 34%),
        linear-gradient(135deg,#032945 0%,#063c62 72%,#075c6c 100%);
    position:relative;
}

.hero:after{
    content:"";
    position:absolute;
    width:250px;
    height:250px;
    border:2px solid rgba(245,130,42,.65);
    border-radius:50%;
    left:-90px;
    bottom:-125px;
}

.hero-copy{
    max-width:820px;
    position:relative;
    z-index:1;
}

.eyebrow{
    margin:0 0 18px;
    color:var(--orange);
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.18em;
}

.hero h1,
.notice h2,
.section-heading h2{
    font-family:Georgia,"Times New Roman",serif;
    font-weight:400;
    line-height:1.04;
    margin:0;
}

.hero h1{
    font-size:clamp(48px,6.5vw,92px);
    letter-spacing:-.035em;
}

.hero-lead{
    font-size:clamp(18px,2vw,24px);
    max-width:690px;
    color:#dce8ee;
    margin:28px 0 34px;
}

.button{
    display:inline-block;
    text-decoration:none;
    background:var(--orange);
    color:#092c46;
    border-radius:999px;
    padding:15px 24px;
    font-weight:800;
}

.button:hover{
    background:#ffa04f;
}

.hero-symbol{
    width:min(34vw,430px);
    aspect-ratio:1;
    justify-self:center;

    display:flex;
    align-items:center;
    justify-content:center;

    position:relative;

    /* Nessun cerchio esterno */
    border:none;
    border-radius:0;
    background:transparent;
    box-shadow:none;
}

/* Elimina il cerchio bianco interno */
.hero-symbol::before{
    display:none;
}

.hero-symbol img{
    width:100%;
    height:100%;

    object-fit:contain;
    display:block;

    position:relative;
    z-index:1;

    filter:drop-shadow(0 22px 38px rgba(0,0,0,.30));

    animation:floating 5s ease-in-out infinite;
}

.hero-symbol img:hover{
    transform:scale(1.04);
}

@keyframes floating{
    0%{
        transform:translateY(0);
    }
    50%{
        transform:translateY(-8px) scale(1.02);
    }
    100%{
        transform:translateY(0);
    }
}


/* =====================================================
   NOTICE / APPROCCIO
===================================================== */

.notice{
    padding:72px max(7vw,35px);
    background:var(--paper);
    display:grid;
    grid-template-columns:minmax(180px,.42fr) minmax(0,1.58fr);
    gap:45px;
}

.notice h2,
.section-heading h2{
    font-size:clamp(36px,4.5vw,62px);
    color:var(--navy);
}

.notice div p{
    max-width:920px;
    font-size:19px;
    color:var(--muted);
    margin:22px 0 0;
}


/* =====================================================
   SEZIONE PROGETTI
===================================================== */

.projects{
    padding:100px max(5vw,24px);
}

.section-heading{
    max-width:920px;
    margin:0 auto 55px;
    text-align:center;
}

.section-heading > p:last-child{
    color:var(--muted);
    font-size:18px;
}

.cards{
    max-width:1440px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px;
}


/* =====================================================
   SCHEDE PROGETTO
===================================================== */

.card{
    --card-bg:#fff;
    --card-accent:var(--red);
    min-height:450px;
    padding:30px;
    border-radius:24px;
    background:var(--card-bg);
    border:1px solid rgba(6,47,79,.09);
    box-shadow:0 14px 35px rgba(6,47,79,.08);
    display:flex;
    flex-direction:column;
    position:relative;
    overflow:hidden;
    transition:transform .25s ease,box-shadow .25s ease;
}

.card:after{
    content:"";
    position:absolute;
    width:210px;
    height:210px;
    right:-105px;
    top:-105px;
    border:1px solid rgba(6,47,79,.12);
    border-radius:50%;
    pointer-events:none;
}

.card:hover{
    transform:translateY(-5px);
    box-shadow:0 24px 50px rgba(6,47,79,.14);
}

.card-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    position:relative;
    z-index:1;
}

.card-number{
    padding-bottom:8px;
    border-bottom:2px solid var(--card-accent);
    color:var(--card-accent);
    font-size:11px;
    font-weight:800;
    letter-spacing:.12em;
}


/* =====================================================
   LOGO ROTONDO DEL PROGETTO
   Supporta sia immagini sia sigle testuali
===================================================== */

.project-mark{
    width:130px;
    height:130px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    overflow:hidden;
    border-radius:50%;
    background:#fff;
    color:var(--card-accent);
    border:1px solid rgba(6,47,79,.08);
    box-shadow:0 10px 26px rgba(6,47,79,.10);
    font-family:Georgia,serif;
    font-size:35px;
    letter-spacing:-.04em;
}

.project-mark img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}


/* =====================================================
   CONTENUTO DELLE SCHEDE
===================================================== */

.card-body{
    margin-top:28px;
    position:relative;
    z-index:1;
}

.tag{
    margin:0 0 12px;
    color:var(--card-accent);
    text-transform:uppercase;
    letter-spacing:.14em;
    font-size:10px;
    font-weight:800;
}

.card h3{
    max-width:90%;
    margin:0;
    font-family:Georgia,serif;
    font-size:clamp(30px,3.1vw,44px);
    line-height:1.08;
    color:var(--navy);
    font-weight:400;
}

.card-body > p:not(.tag){
    max-width:580px;
    margin:18px 0 0;
    color:var(--muted);
    font-size:16px;
}

.card-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-top:auto;
    padding-top:24px;
    border-top:1px solid rgba(6,47,79,.12);
    position:relative;
    z-index:1;
}

.status{
    color:var(--card-accent);
    font-size:11px;
    font-weight:800;
    letter-spacing:.09em;
    text-transform:uppercase;
}

.project-link{
    display:flex;
    align-items:center;
    gap:12px;
    color:var(--navy);
    font-size:13px;
    font-weight:800;
}

.project-link b{
    width:37px;
    height:37px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:var(--card-accent);
    color:#fff;
    font-size:16px;
}


/* =====================================================
   COLORI DELLE SCHEDE
===================================================== */

.card-red{
    --card-bg:#fff8f6;
    --card-accent:#d9383f;
}

.card-navy{
    --card-bg:#062f4f;
    --card-accent:#f58b2a;
    color:#fff;
}

.card-teal{
    --card-bg:#eef7f6;
    --card-accent:#087780;
}

.card-sand{
    --card-bg:#f7f1e8;
    --card-accent:#b76131;
}

.card-blue{
    --card-bg:#f0f5f8;
    --card-accent:#176894;
}

.card-orange{
    --card-bg:#fff4e9;
    --card-accent:#d66e24;
}

.card-navy h3,
.card-navy .project-link{
    color:#fff;
}

.card-navy .card-body > p:not(.tag){
    color:#bed0db;
}

.card-navy .card-footer{
    border-color:rgba(255,255,255,.18);
}

.card-navy .project-mark{
    background:rgba(255,255,255,.10);
    border-color:rgba(255,255,255,.16);
}


/* =====================================================
   FOOTER
===================================================== */

footer{
    background:#032945;
    color:#fff;
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:35px;
    padding:55px max(7vw,35px);
}

footer strong{
    font-family:Georgia,serif;
    font-size:25px;
}

footer p{
    color:#bdced9;
    margin:8px 0 0;
}

footer a{
    font-weight:800;
    text-decoration-color:var(--orange);
    text-underline-offset:5px;
}


/* =====================================================
   RESPONSIVE — TABLET
===================================================== */

@media (max-width:900px){

    .site-header{
        flex-wrap:wrap;
        gap:14px 20px;
    }

    .site-header nav{
        order:3;
        width:100%;
        justify-content:center;
        border-top:1px solid var(--line);
        padding-top:11px;
    }

    .hero{
        grid-template-columns:1fr;
        min-height:auto;
        padding-top:65px;
    }

    .hero-symbol{
        display:none;
    }

    .notice{
        grid-template-columns:1fr;
        gap:8px;
    }

    .cards{
        grid-template-columns:1fr;
    }
}


/* =====================================================
   RESPONSIVE — SMARTPHONE
===================================================== */

@media (max-width:560px){

    .site-header{
        padding:10px 16px;
    }

    .brand img{
        width:46px;
        height:46px;
    }

    .brand strong{
        font-size:19px;
    }

    .brand small{
        font-size:9px;
    }

    .site-header nav{
        gap:14px;
        overflow-x:auto;
        justify-content:flex-start;
    }

    .site-header nav a{
        white-space:nowrap;
        font-size:12px;
    }

    .hero{
        padding:58px 22px 70px;
    }

    .hero h1{
        font-size:43px;
    }

    .notice,
    .projects{
        padding:65px 22px;
    }

    .notice div p{
        font-size:17px;
    }

    .cards{
        gap:20px;
    }

    .card{
        min-height:410px;
        padding:24px;
    }

    .project-mark{
        width:96px;
        height:96px;
        font-size:28px;
    }

    .card-body{
        margin-top:28px;
    }

    .card h3{
        font-size:31px;
    }

    .card-footer{
        align-items:flex-start;
        flex-direction:column;
    }

    .project-link{
        width:100%;
        justify-content:space-between;
    }

    footer{
        align-items:flex-start;
        flex-direction:column;
        padding:45px 22px;
    }
}


/* =====================================================
   ACCESSIBILITÀ
===================================================== */

@media (prefers-reduced-motion:reduce){

    html{
        scroll-behavior:auto;
    }

    .card{
        transition:none;
    }
}
