 :root{
    --bg: #FBF7F2; /* warm cream */
    --text: #2c2c2c;
    --muted: #6b6b6b;
    --accent: #8b3a29; /* terracotta */
    --accent-2: #3b6b5f; /* deep green */
    --gold: #D4AF37;
    --font-body: 'Source Sans 3', sans-serif;
    --font-heading: 'Libre Baskerville', serif;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:var(--font-body);
    color:var(--text);
    background:var(--bg);
}

/* Typography: headings and paragraphs */
h1,h2,h3,h4{
    margin:0 0 18px 0;
    line-height:1.05;
}

h1{
    font-family:var(--font-heading);
    font-weight:700;
    color:var(--text);
}

h2{
    font-family:var(--font-heading);
    font-weight:600;
    color:var(--accent-2);
}

h3{
    font-weight:700;
    color:var(--text);
}

p{
    margin-bottom:18px;
    color:var(--muted);
    line-height:1.8;
    font-size:1rem;
}

/* Lead paragraph for hero/intro */
.lead{
    font-size:1.15rem;
    color:var(--text);
    max-width:54ch;
    margin:auto;
}

/* Blockquote style */
blockquote{
    border-left:4px solid rgba(0,0,0,0.06);
    padding:18px 20px;
    background:rgba(255,255,255,0.6);
    border-radius:8px;
    color:var(--text);
    margin:18px 0;
}

/* Lists */
ul{ padding-left:20px; margin-bottom:18px; }
li{ margin-bottom:8px; }

/* Countdown styles */
.countdown-box span{
    display:block;
    font-family:var(--font-heading);
    font-size:2.4rem;
    color:var(--accent);
}
.countdown-box small{ color:var(--muted); }

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

.header{
position:fixed;
top:0;
left:0;
width:100%;
z-index:1000;
background:white;
box-shadow:0 2px 20px rgba(0,0,0,.05);
}

.header .container{
display:flex;
justify-content:space-between;
align-items:center;
gap:28px;
padding:0;
}

.logo{
    display:flex;
    align-items:center;
    min-width:0;
}

.logo-link{
    text-decoration:none;
    color:var(--text);
    display:flex;
    align-items:center;
    gap:12px;
    line-height:1;
    min-width:0;
}

.header-logo{
    flex:0 0 auto;
    width:46px;
    height:46px;
    object-fit:contain;
}

.logo-main{
    display:block;
    font-family:var(--font-heading);
    font-size:1.32rem;
    font-weight:700;
    letter-spacing:.04em;
    color:var(--text);
    line-height:1.08;
    transform:none;
    white-space:nowrap;
}

.logo-sub{
    display:block;
    font-size:0.75rem;
    color:var(--muted);
    margin-top:4px;
}

.menu{
    display:flex;
    align-items:center;
}

.menu ul{
    display:flex;
    align-items:center;
    list-style:none;
    gap:8px;
    margin:0;
    padding:0;
}

.menu li{
    margin:0;
}

.mobile-only-nav{
    display:none;
}

.menu a{
    text-decoration:none;
    color:var(--text);
    font-weight:700;
    display:flex;
    align-items:center;
    min-height:44px;
    padding:0 12px;
    font-size:.98rem;
    letter-spacing:.01em;
    line-height:1;
}

#mobile-btn{
    display:none;
    background:none;
    border:1px solid rgba(44,44,44,.18);
    border-radius:999px;
    font-size:0;
    cursor:pointer;
    padding:0;
    color:var(--text);
    z-index:1100;
}

#mobile-btn::before{
    content:"☰";
    display:block;
    font-family:Arial, sans-serif;
    font-size:1.55rem;
    font-weight:700;
    line-height:1;
    transform:translateY(-1px);
}

#mobile-btn[aria-expanded="true"]::before{
    content:"×";
    font-size:2rem;
    font-weight:400;
    transform:translateY(-2px);
}

.hero{
    position:relative;
    height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    background:
        linear-gradient(rgba(139,58,41,0.35), rgba(59,107,95,0.25)),
        url('../images/hero.jpg');
    background-size:cover;
    background-position:center;
    color:white;
}

/* Hero logo overlay */
.hero-logo{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    background:transparent;
    padding:0;
    border-radius:0;
    box-shadow:none;
    display:flex;
    align-items:center;
    gap:14px;
    z-index:15;
    pointer-events:none;
}

.hero-logo img{ width:320px; height:auto; display:block; }

/* Greetings / Saluti istituzionali */
.greetings{
    background:#FBF7F2;
    padding:50px 0;
    border-radius:12px;
    box-shadow:0 10px 30px rgba(0,0,0,0.04);
    margin-top:-60px;
    position:relative;
}

.greetings .container{
    display:grid;
    grid-template-columns:1fr 380px;
    gap:25px;
    align-items:start;
}

.greetings h2{ margin-top:0; }

.greetings .card{ background:transparent; box-shadow:none; padding:0; }

.officials-list{ list-style:none; padding:0; }
.officials-list li{ margin-bottom:14px; color:var(--muted); }

@media(max-width:992px){
    .hero-logo{ top:50%; transform:translate(-50%,-50%); }
    .greetings .container{ grid-template-columns:1fr; }
    .hero-logo img{ width:220px; }
}

.hero-content{
    max-width:900px;
    position:relative;
    z-index:20;
    color:white;
}

.hero-tag,
.badge{
    display:inline-block;
    padding:8px 18px;
    background:rgba(255,255,255,0.15);
    border-radius:999px;
    margin-bottom:18px;
    font-weight:600;
    color:white;
    backdrop-filter:blur(6px);
}

.hero h1{
    font-family:var(--font-heading);
    font-size:4.6rem;
    line-height:1.05;
    margin-bottom:18px;
    font-weight:700;
    color:white;
    letter-spacing:0.02em;
}

.hero p{
    font-size:1.3rem;
    margin-bottom:30px;
    color:rgba(255,255,255,0.9);
    max-width:720px;
}

.btn{
    display:inline-block;
    padding:14px 28px;
    background:var(--gold);
    color:var(--text);
    text-decoration:none;
    font-weight:700;
    border-radius:10px;
}

section{
    padding:20px 0;
}

.intro{
text-align:center;
}

.intro h2{
    font-family:var(--font-heading);
    font-size:2.6rem;
    margin-bottom:18px;
}

.cards{
display:grid;
grid-template-columns:
repeat(auto-fit,minmax(300px,1fr));
gap:30px;
}

.card{
    padding:34px;
    border-radius:18px;
    background:white;
    box-shadow:0 8px 24px rgba(0,0,0,.06);
}

.card h3{
margin-bottom:15px;
color:#003B7A;
}

.footer{
    background:#f3efe9; /* light cream */
    color:var(--text);
    padding:80px 0;
}

.footer-grid{
display:grid;
grid-template-columns:
repeat(auto-fit,minmax(250px,1fr));
gap:40px;
}

.footer ul{
list-style:none;
}

.footer a{
    color:var(--text);
    text-decoration:none;
}

.social-list{
    list-style:none;
    padding:0;
}

.social-list li{
    margin-bottom:8px;
}

.social-list a{
    color:var(--accent-2);
    font-weight:600;
}

.copyright{
margin-top:50px;
padding-top:30px;
border-top:1px solid rgba(255,255,255,.15);
text-align:center;
}
/* ======================================
   PAGE HERO
====================================== */

.page-hero{
    padding:180px 0 120px;
    background:linear-gradient(
        135deg,
        #003B7A 0%,
        #0F4C9A 100%
    );
    color:white;
    text-align:center;
}

.page-tag{
    display:inline-block;
    padding:10px 20px;
    border-radius:999px;
    background:rgba(255,255,255,.15);
    backdrop-filter:blur(10px);
    margin-bottom:20px;
    font-size:.9rem;
    font-weight:600;
    letter-spacing:1px;
}

.page-hero h1{
    font-size:4rem;
    margin-bottom:20px;
    font-weight:800;
}

.page-hero p{
    max-width:800px;
    margin:auto;
    font-size:1.2rem;
    opacity:.9;
}

/* ======================================
   LAYOUT
====================================== */

.narrow{
    max-width:800px;
    margin:auto;
}

.two-columns{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
}

.full-image{
    width:100%;
    border-radius:20px;
    display:block;
}

/* ======================================
   SECTION HEADING
====================================== */

.section-heading{
    text-align:center;
    margin-bottom:60px;
}

.section-heading span{
    color:var(--gold);
    font-weight:700;
    letter-spacing:2px;
    display:block;
    margin-bottom:10px;
}

.section-heading h2{
    font-family:var(--font-heading);
    font-size:2.8rem;
    color:var(--accent-2);
}

/* ======================================
   FEATURE CARDS
====================================== */

.cards-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
}

.feature-card{
    background:white;
    padding:30px;
    border-radius:18px;
    box-shadow:0 12px 30px rgba(0,0,0,.06);
    transition:.3s;
}

.feature-card:hover{
    transform:translateY(-8px);
}

.feature-card .icon{
    font-size:2.5rem;
    margin-bottom:20px;
}

.feature-card h3{
    margin-bottom:15px;
    color:#003B7A;
}

.feature-card p{
    color:#64748b;
    line-height:1.7;
}

/* ======================================
   THEME BOX
====================================== */

.theme-box{
    background:var(--accent-2);
    color:white;
    padding:60px;
    border-radius:20px;
    text-align:center;
}

.theme-box span{
    display:block;
    margin-bottom:20px;
    color:#D4AF37;
    font-weight:700;
}

.theme-box h2{
    font-size:3rem;
    margin-bottom:20px;
}

.theme-box p{
    max-width:700px;
    margin:auto;
    line-height:1.8;
}

/* ======================================
   CTA SECTION
====================================== */

.cta-section{
    background:#f8fafc;
    text-align:center;
}

.cta-section h2{
    font-size:3rem;
    margin-bottom:25px;
}

/* ======================================
   PROGRAMMA
====================================== */

.schedule{
    background:#f8fafc;
}

.day-block{
    background:white;
    border-radius:24px;
    overflow:hidden;
    margin-bottom:50px;
    box-shadow:
    0 15px 35px rgba(0,0,0,.06);
}

.day-header{
    background:#003B7A;
    color:white;
    padding:30px 40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.day-header h2{
    font-size:2rem;
}

.day-header span{
    opacity:.8;
}

.agenda{
    padding:20px 40px;
}

.agenda-item{
    display:flex;
    gap:40px;
    padding:30px 0;
    border-bottom:1px solid #e2e8f0;
}

.agenda-item:last-child{
    border-bottom:none;
}

.time{
    min-width:100px;
    font-weight:700;
    color:#003B7A;
    font-size:1.2rem;
}

.content h3{
    margin-bottom:10px;
    color:#1e293b;
}

.content p{
    color:#64748b;
}

/* ======================================
   DOWNLOAD BOX
====================================== */

.download-program{
    padding-top:40px;
}

.download-box{
    background:#003B7A;
    color:white;
    text-align:center;
    border-radius:30px;
    padding:70px;
}

.download-box h2{
    font-size:2.5rem;
    margin-bottom:15px;
}

.download-box p{
    margin-bottom:30px;
    opacity:.9;
}

/* ======================================
   BUTTONS
====================================== */

.btn-primary{
    display:inline-block;
    background:var(--accent);
    color:var(--bg);
    padding:12px 26px;
    border-radius:10px;
    text-decoration:none;
    font-weight:700;
    transition:.2s;
}

.btn-primary:hover{
    transform:translateY(-2px);
}

.btn-secondary{
    display:inline-block;
    padding:12px 26px;
    border:2px solid var(--bg);
    color:var(--bg);
    border-radius:10px;
    text-decoration:none;
    margin-left:14px;
    transition:.2s;
}

.btn-secondary:hover{
    background:white;
    color:#003B7A;
}

/* PAGE HERO */
.page-hero{
    padding:180px 0 120px;
    background-attachment:fixed;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.page-hero h1{
    font-size:3.5rem;
    color:white;
    margin-bottom:24px;
}

.page-hero .lead{
    color:rgba(255,255,255,0.95);
    max-width:600px;
    margin:auto;
}

/* PROGRAM DETAIL */
.program-detail{
    padding:80px 0;
}

.day-schedule{
    margin-bottom:60px;
    padding:40px;
    background:white;
    border-radius:16px;
    border-left:5px solid var(--accent);
}

.day-schedule h3{
    font-size:1.6rem;
    color:var(--accent);
    margin-bottom:30px;
}

.schedule-items{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.schedule-item{
    display:grid;
    grid-template-columns:140px 1fr;
    gap:30px;
    padding-bottom:20px;
    border-bottom:1px solid #f0f0f0;
}

.schedule-item:last-child{
    border-bottom:none;
}

.schedule-item .time{
    font-weight:700;
    color:var(--accent);
    font-size:0.9rem;
}

.schedule-item .activity h4{
    color:var(--text);
    margin-bottom:8px;
    font-size:1.05rem;
}

.schedule-item .activity p{
    color:var(--muted);
    margin-bottom:0;
    font-size:0.95rem;
}

/* INFO SECTION */
.info-section{
    padding:60px 0;
    background:var(--bg);
}

.info-boxes{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:30px;
    margin-top:40px;
}

.info-box{
    background:white;
    padding:30px;
    border-radius:12px;
    text-align:center;
    box-shadow:0 2px 12px rgba(0,0,0,0.06);
}

.info-box h3{
    color:var(--accent-2);
    margin-bottom:15px;
    font-size:1.2rem;
}

.info-box p{
    color:var(--muted);
    font-size:0.95rem;
    margin-bottom:0;
    line-height:1.6;
}

/* ======================================
   RESPONSIVE
====================================== */

@media(max-width:992px){

    .two-columns{
        grid-template-columns:1fr;
    }

    .page-hero h1{
        font-size:3rem;
    }

    .page-hero{
        padding:120px 0 80px;
    }

    .schedule-item{
        grid-template-columns:1fr;
        gap:10px;
    }

    .day-schedule{
        padding:30px 20px;
    }

    .day-schedule h3{
        font-size:1.4rem;
    }

    .section-heading h2{
        font-size:2.1rem;
    }

    .theme-box{
        padding:40px 20px;
    }

    /* Mobile nav */
    .menu{
        position:fixed;
        top:72px;
        right:20px;
        background:var(--bg);
        padding:18px;
        border-radius:12px;
        box-shadow:0 10px 30px rgba(0,0,0,.08);
        display:none;
        z-index:1200;
    }

    .menu.active{
        display:block;
    }

    #mobile-btn{
        display:inline-block;
    }

}

.media-fix{}

@media(max-width:768px){

    /* Typography */
    h1, .hero h1{
        font-size:2rem !important;
    }

    h2{
        font-size:1.6rem;
    }

    h3{
        font-size:1.1rem;
    }

    p, .lead{
        font-size:0.95rem;
    }

    /* Hero */
    .hero{
        padding:80px 0;
        min-height:auto;
        height:auto;
    }

    .hero-logo{
        width:auto;
    }

    .hero-logo img{
        width:200px;
        height:auto;
    }

    .hero-content{
        max-width:100%;
    }

    .hero h1{
        font-size:3.5rem;
    }

    .hero h2{
        font-size:1.8rem;
        color:white;
    }

    .hero p{
        font-size:0.95rem;
    }

    .hero-logo-inline{
        width:180px;
    }

    .hero-buttons{
        gap:12px;
    }

    .btn-primary, .btn-secondary{
        padding:12px 20px;
        font-size:0.9rem;
    }

    /* Page Hero */
    .page-hero{
        padding:100px 0 60px;
    }

    .page-hero h1{
        font-size:2rem;
    }

    .page-hero .lead{
        font-size:0.95rem;
    }

    /* Containers */
    .container{
        width:95%;
    }

    /* Sections */
    section{
        padding:40px 0;
    }

    /* Intro */
    .intro{
        padding:40px 0;
    }

    .intro h2{
        font-size:1.6rem;
    }

    /* Grids - mantieni layout desktop */
    .greetings .container{
        grid-template-columns:1fr 300px;
        gap:20px;
    }

    .full-image{
        max-height:350px;
    }

    /* Countdown - mantieni 4 colonne */
    .countdown-wrapper{
        gap:12px;
    }

    .countdown-box{
        padding:12px;
        min-width:auto;
    }

    .countdown-box span{
        font-size:1.8rem;
    }

    .countdown-box small{
        font-size:0.75rem;
    }

    /* Cards */
    .card{
        padding:20px;
    }

    .feature-card{
        padding:25px 20px;
    }

    .feature-card .icon{
        font-size:2.5rem;
        margin-bottom:12px;
    }

    /* Program schedule - mantieni 2 colonne */
    .day-schedule{
        padding:25px;
        margin-bottom:30px;
    }

    .day-schedule h3{
        font-size:1.3rem;
        margin-bottom:20px;
    }

    .schedule-item{
        grid-template-columns:110px 1fr;
        gap:20px;
        padding-bottom:15px;
    }

    .schedule-item .time{
        font-size:0.8rem;
    }

    .schedule-item .activity h4{
        font-size:0.95rem;
    }

    .schedule-item .activity p{
        font-size:0.85rem;
    }

    /* Info boxes - mantieni grid */
    .info-boxes{
        gap:18px;
    }

    .info-box{
        padding:25px;
    }

    .info-box h3{
        font-size:1rem;
    }

    .info-box p{
        font-size:0.85rem;
    }

    /* Header */
    .menu{
        position:fixed;
        top:72px;
        right:10px;
        background:var(--bg);
        padding:15px;
        border-radius:8px;
        box-shadow:0 10px 30px rgba(0,0,0,.08);
        display:none;
        z-index:1200;
        max-width:calc(100vw - 20px);
    }

    .menu.active{
        display:block;
    }

    .menu ul{
        flex-direction:column;
        gap:10px;
    }

    .menu a{
        display:block;
        padding:10px 15px;
        text-decoration:none;
        color:var(--text);
    }

    /* Footer */
    /* Footer - mantieni grid */
    .footer{
        padding:50px 0;
    }

    .footer-grid{
        gap:30px;
    }

    .footer h3{
        font-size:1.2rem;
    }

    .footer p, .footer a{
        font-size:0.9rem;
    }

    /* Section heading */
    .section-heading{
        margin-bottom:30px;
    }

    .section-heading span{
        font-size:0.7rem;
    }

    .section-heading h2{
        font-size:1.8rem;
    }

    /* Feature cards */
    .feature-card{
        padding:25px;
    }

    .feature-card .icon{
        font-size:2.5rem;
        margin-bottom:15px;
    }

    .feature-card h3{
        font-size:1.1rem;
    }

    /* Speaker grid - mantieni layout */
    .speaker-grid{
        gap:25px;
    }

    .speaker-card{
        padding:25px;
    }

    .speaker-card img{
        width:160px;
        height:160px;
    }

    .speaker-card h3{
        font-size:1rem;
    }

    /* Partners grid - mantieni layout */
    .partners-grid{
        gap:20px;
    }

    .partner-logo{
        height:120px;
        font-size:0.95rem;
    }

    /* Show mobile button */
    #mobile-btn{
        display:inline-block;
    }

    .logo-main{
        font-size:1.3rem;
    }

    .menu{
        width:auto;
        max-width:calc(100vw - 40px);
    }

    .menu ul{
        gap:15px;
    }

    .menu a{
        font-size:0.95rem;
    }

}

.speaker-grid{
display:grid;
grid-template-columns:
repeat(auto-fit,minmax(280px,1fr));
gap:40px;
}

.speaker-card{
background:white;
padding:30px;
border-radius:20px;
text-align:center;
box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.speaker-card img{
width:180px;
height:180px;
object-fit:cover;
border-radius:50%;
margin-bottom:20px;
}

.speaker-card span{
display:block;
margin:10px 0;
color:#D4AF37;
font-weight:700;
}

.partners-grid{
display:grid;
grid-template-columns:
repeat(auto-fit,minmax(200px,1fr));
gap:30px;
}

.partner-logo{
height:140px;
display:flex;
align-items:center;
justify-content:center;
border:2px solid #e5e7eb;
border-radius:20px;
font-weight:700;
}

.gallery-grid{
display:grid;
grid-template-columns:
repeat(auto-fit,minmax(300px,1fr));
gap:20px;
}

.gallery-grid img{
width:100%;
height:280px;
object-fit:cover;
border-radius:20px;
transition:.3s;
}

.gallery-grid img:hover{
transform:scale(1.03);
}

.contact-form{
display:flex;
flex-direction:column;
gap:20px;
}

.contact-form input,
.contact-form textarea{
padding:15px;
border:1px solid #d1d5db;
border-radius:12px;
font-size:1rem;
}

.location-list{
margin-top:30px;
list-style:none;
}

.location-list li{
margin-bottom:12px;
font-size:1.05rem;
}

/* ======================================
   SITE POLISH + MOBILE FIXES
====================================== */

html{
    scroll-behavior:smooth;
}

body{
    overflow-x:hidden;
}

img{
    max-width:100%;
    height:auto;
}

main{
    padding-top:76px;
}

.header .container{
    min-height:76px;
}

.home-hero{
    position:relative;
    overflow:hidden;
    min-height:calc(100svh - 76px);
    height:auto;
    padding:80px 0;
    background:
        linear-gradient(rgba(0,0,0,0.36), rgba(0,0,0,0.18)),
        url('../images/sfondo.jpg');
    background-size:cover;
    background-position:center;
}

.home-hero-logo{
    position:absolute;
    inset:0;
    z-index:1;
    display:flex;
    align-items:center;
    justify-content:center;
    pointer-events:none;
}

.home-hero-logo img{
    width:min(52vw, 520px);
    max-height:58%;
    object-fit:contain;
    opacity:.78;
    filter:drop-shadow(0 14px 24px rgba(0,0,0,.32));
}

.home-hero .hero-content{
    display:flex;
    min-height:360px;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    z-index:2;
}

.hero-buttons{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:14px;
}

.greetings{
    margin-top:0;
    border-radius:0;
}

.event-info-home{
    background:white;
    padding:72px 0 62px;
}

.event-info-grid{
    display:grid;
    grid-template-columns:minmax(250px, 340px) minmax(0, 1fr);
    gap:48px;
    align-items:center;
}

.event-info-date{
    display:flex;
    min-height:300px;
    flex-direction:column;
    justify-content:center;
    padding:32px 30px;
    border:1px solid rgba(59,107,95,.18);
    border-radius:10px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.86), rgba(251,247,242,.96));
    box-shadow:0 16px 34px rgba(0,0,0,.06);
    text-align:center;
}

.event-info-date span{
    margin-bottom:20px;
    color:var(--gold);
    font-weight:800;
    letter-spacing:3px;
    text-transform:uppercase;
}

.event-days{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    overflow:hidden;
    border-top:1px solid rgba(59,107,95,.16);
    border-bottom:1px solid rgba(59,107,95,.16);
}

.event-days strong{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:96px;
    font-family:var(--font-heading);
    color:var(--accent-2);
    font-size:clamp(2.6rem, 4vw, 3.7rem);
    line-height:1;
    font-weight:700;
}

.event-days strong + strong{
    border-left:1px solid rgba(59,107,95,.16);
}

.event-info-date small{
    margin-top:22px;
    color:var(--text);
    font-size:1rem;
    font-weight:800;
    letter-spacing:2.4px;
    text-transform:uppercase;
}

.event-info-date em{
    display:inline-flex;
    align-self:center;
    margin-top:12px;
    padding:8px 16px;
    border-radius:999px;
    background:rgba(139,58,41,.09);
    color:var(--accent);
    font-style:normal;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:1.4px;
}

.event-info-copy h2{
    font-size:clamp(2.4rem, 5vw, 4.2rem);
    max-width:12ch;
}

.event-info-copy p{
    max-width:68ch;
    font-size:1.08rem;
}

.location-content{
    display:grid;
    grid-template-columns:minmax(0, 1fr) minmax(320px, 480px);
    grid-template-areas:
        "copy media"
        "action media";
    gap:36px;
    align-items:center;
}

.location-copy{
    grid-area:copy;
}

.location-media{
    grid-area:media;
}

.location-action{
    grid-area:action;
    align-self:start;
}

.greetings .container{
    display:block;
}

.greetings-panels{
    display:grid;
    gap:42px;
    margin-top:24px;
}

.greetings-panel{
    display:grid;
    grid-template-columns:minmax(0, 1fr) minmax(280px, 420px);
    grid-template-areas:
        "copy media"
        "action media";
    gap:18px 34px;
    align-items:center;
    padding-bottom:42px;
    border-bottom:1px solid rgba(59,107,95,.14);
}

#saluti-vicepresidente{
    grid-template-columns:minmax(280px, 420px) minmax(0, 1fr);
    grid-template-areas:
        "media copy"
        "media action";
}

.greetings-panel:last-child{
    padding-bottom:0;
    border-bottom:0;
}

.greetings-copy{
    grid-area:copy;
}

.greetings-copy p{
    max-width:56ch;
}

.greetings-media{
    grid-area:media;
}

.greetings-action{
    grid-area:action;
    align-self:start;
}

.greetings .full-image{
    aspect-ratio:4 / 3;
    max-height:320px;
}

.full-image,
.location-content img{
    width:100%;
    aspect-ratio:4 / 3;
    object-fit:cover;
    border-radius:16px;
}

.countdown-section{
    text-align:center;
    background:var(--bg);
}

.countdown-section h2{
    margin-bottom:30px;
}

.countdown-wrapper{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:16px;
    max-width:760px;
    margin:0 auto;
}

.countdown-box{
    min-width:0;
    padding:22px 14px;
    border-radius:12px;
    background:white;
    box-shadow:0 8px 24px rgba(0,0,0,.05);
}

.timeline{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:24px;
}

.timeline-item{
    min-width:0;
    padding:28px;
    background:white;
    border-radius:16px;
    box-shadow:0 8px 24px rgba(0,0,0,.05);
}

.center-button,
.final-cta{
    text-align:center;
}

.center-button{
    margin-top:34px;
}

.section-label{
    display:block;
    margin-bottom:12px;
    color:var(--gold);
    font-weight:700;
    letter-spacing:2px;
}

.final-cta{
    background:var(--accent-2);
    color:white;
}

.final-cta h2,
.final-cta p{
    color:white;
}

.final-cta p{
    max-width:640px;
    margin:0 auto 24px;
}

.page-hero{
    min-height:360px;
    background:
        linear-gradient(rgba(0,0,0,0.42), rgba(0,0,0,0.22)),
        url('../images/sfondo.jpg');
    background-size:cover;
    background-position:center;
    background-attachment:scroll;
}

.page-hero .hero-logo{
    display:none;
}

.location-hero{
    background:
        linear-gradient(rgba(0,0,0,0.48), rgba(0,0,0,0.24)),
        url('../images/location.png');
    background-size:cover;
    background-position:center;
}

.location-photo{
    box-shadow:0 12px 30px rgba(0,0,0,.08);
}

.programma-hero{
    background:
        linear-gradient(rgba(0,0,0,0.54), rgba(0,0,0,0.24)),
        url('../images/programma.png');
    background-size:cover;
    background-position:center;
}

.program-evenings{
    background:white;
}

.program-evenings .section-heading{
    margin-bottom:46px;
}

.evening-card{
    display:grid;
    grid-template-columns:minmax(0, 1fr) minmax(340px, 500px);
    align-items:center;
    gap:42px;
    padding:42px 0;
    border-top:1px solid rgba(0,0,0,.08);
}

.evening-card-reverse{
    grid-template-columns:minmax(340px, 500px) minmax(0, 1fr);
}

.evening-card-reverse .evening-copy{
    order:2;
}

.evening-card-reverse .evening-media{
    order:1;
}

.evening-day{
    display:inline-block;
    margin-bottom:14px;
    color:var(--gold);
    font-weight:800;
    letter-spacing:4px;
    font-size:.92rem;
}

.evening-copy h2{
    font-size:clamp(2.2rem, 5vw, 4rem);
    margin-bottom:20px;
}

.evening-copy p{
    max-width:62ch;
}

.evening-highlight{
    display:inline-flex;
    align-items:center;
    width:auto;
    max-width:100%;
    margin-top:10px;
    padding:14px 18px;
    border-radius:10px;
    background:var(--accent);
    color:white;
    font-weight:800;
    line-height:1.35;
}

.evening-list{
    display:grid;
    gap:10px;
    padding:0;
    margin:0 0 18px;
    list-style:none;
}

.evening-list li{
    position:relative;
    margin:0;
    padding-left:24px;
    color:var(--muted);
    line-height:1.65;
}

.evening-list li::before{
    content:"";
    position:absolute;
    left:0;
    top:.72em;
    width:8px;
    height:8px;
    border-radius:50%;
    background:var(--gold);
}

.evening-media{
    position:relative;
    min-width:0;
}

.evening-photo{
    display:block;
    width:100%;
    aspect-ratio:4 / 3;
    object-fit:cover;
    border-radius:18px;
    box-shadow:0 18px 38px rgba(0,0,0,.12);
}

.friday-media{
    padding-top:56px;
}

.evening-character{
    position:absolute;
    top:0;
    right:22px;
    z-index:2;
    width:min(58%, 270px);
    height:auto;
    filter:drop-shadow(0 12px 18px rgba(0,0,0,.26));
}

.location-work{
    background:white;
}

.location-gala{
    overflow:hidden;
    background:#11100f;
    color:white;
}

.location-gala-grid{
    display:grid;
    grid-template-columns:minmax(0, 1fr) minmax(360px, 560px);
    gap:48px;
    align-items:center;
}

.location-gala .section-label{
    color:var(--gold);
}

.location-gala-copy h2{
    color:var(--gold);
    font-size:clamp(2.8rem, 6vw, 5.6rem);
    line-height:.95;
}

.location-gala-copy p{
    max-width:62ch;
    color:rgba(255,255,255,.84);
}

.location-gala-media{
    position:relative;
    min-height:460px;
}

.location-gala-photo{
    display:block;
    width:100%;
    aspect-ratio:4 / 3;
    object-fit:cover;
    border:1px solid rgba(212,175,55,.72);
    border-radius:10px;
    box-shadow:0 22px 46px rgba(0,0,0,.34);
}

.location-gala-detail{
    position:absolute;
    right:-18px;
    bottom:-24px;
    width:min(40%, 190px);
    aspect-ratio:3 / 4;
    object-fit:cover;
    border:3px solid var(--gold);
    border-radius:10px;
    box-shadow:0 16px 34px rgba(0,0,0,.45);
}

.location-highlights{
    background:var(--bg);
}

.trasporti-hero{
    background:
        linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.28)),
        url('../images/trasporti-pdf-5.png');
    background-size:cover;
    background-position:center;
}

.transport-intro{
    text-align:center;
}

.transport-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:28px;
}

.transport-card{
    display:grid;
    grid-template-rows:auto 1fr;
    overflow:hidden;
    background:white;
    border-radius:16px;
    box-shadow:0 12px 30px rgba(0,0,0,.07);
}

.transport-card img{
    width:100%;
    aspect-ratio:16 / 10;
    object-fit:cover;
}

.transport-card div{
    padding:26px;
}

.transport-schedule{
    background:white;
}

.schedule-table-wrap{
    overflow-x:auto;
}

.transport-table{
    width:100%;
    border-collapse:collapse;
    overflow:hidden;
    border-radius:14px;
    background:var(--bg);
}

.transport-table th,
.transport-table td{
    padding:22px;
    border:2px solid white;
    text-align:left;
}

.transport-table th{
    background:var(--gold);
    color:var(--text);
    text-transform:uppercase;
    letter-spacing:1px;
}

.transport-table td:first-child{
    font-weight:800;
    color:var(--accent-2);
}

.transport-note{
    margin:16px 0 0;
    text-align:right;
    font-size:.95rem;
}

.pacchetti-hero{
    background:
        linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.28)),
        url('../images/fermi.jpg');
    background-size:cover;
    background-position:center;
}

.packages-intro{
    text-align:center;
}

.packages-section{
    background:white;
}

.packages-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:20px;
}

.package-card{
    display:flex;
    min-height:100%;
    flex-direction:column;
    overflow:hidden;
    background:var(--bg);
    border:1px solid rgba(59,107,95,.12);
    border-radius:16px;
    box-shadow:0 10px 26px rgba(0,0,0,.05);
}

.package-image{
    width:100%;
    height:150px;
    object-fit:contain;
    object-position:center;
    background:#111;
}

.package-card.featured{
    background:var(--accent-2);
    color:white;
}

.package-card.featured h2,
.package-card.featured li,
.package-card.featured span{
    color:white;
}

.package-head span{
    display:block;
    min-height:20px;
    margin-bottom:8px;
    color:var(--gold);
    font-size:.78rem;
    font-weight:800;
    letter-spacing:1.3px;
    text-transform:uppercase;
}

.package-head{
    padding:22px 22px 0;
}

.package-head h2{
    margin-bottom:10px;
    font-size:2rem;
}

.package-head strong{
    display:inline-flex;
    align-items:center;
    min-height:46px;
    padding:8px 16px;
    border-radius:999px;
    background:var(--accent);
    color:white;
    font-size:1.3rem;
}

.package-card ul{
    margin:0;
    padding:0 22px 24px 40px;
}

.package-card li{
    color:var(--muted);
    line-height:1.45;
}

.menu a{
    border-radius:8px;
}

.menu a:hover{
    background:rgba(139,58,41,.08);
}

@media(max-width:992px){
    main{
        padding-top:78px;
    }

    .header .container{
        min-height:78px;
        padding:12px 0;
    }

    .greetings-panel,
    .location-content,
    .location-gala-grid,
    .event-info-grid,
    .two-columns{
        grid-template-columns:1fr;
    }

    .location-content{
        grid-template-areas:
            "copy"
            "media"
            "action";
    }

    .greetings-panel,
    #saluti-vicepresidente{
        grid-template-columns:1fr;
        grid-template-areas:
            "copy"
            "media"
            "action";
    }

    .timeline{
        grid-template-columns:1fr;
    }

    .transport-grid{
        grid-template-columns:1fr;
    }

    .packages-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .package-image{
        display:none;
    }

    .menu{
        top:78px;
        left:16px;
        right:16px;
        width:auto;
        max-width:none;
        background:white;
    }

    .menu ul{
        flex-direction:column;
        gap:6px;
        padding-left:0;
        margin-bottom:0;
    }

    .menu li{
        margin-bottom:0;
    }
}

@media(max-width:768px){
    .container{
        width:min(100% - 32px, 1200px);
    }

    section{
        padding:44px 0;
    }

    .logo-main{
        max-width:260px;
        font-size:1.15rem;
        line-height:1.1;
        letter-spacing:0;
    }

    #mobile-btn{
        flex:0 0 auto;
        width:44px;
        height:44px;
        padding:0;
        line-height:1;
    }

    .home-hero{
        min-height:420px;
        padding:48px 0;
        background-position:center top;
    }

    .home-hero .hero-content{
        min-height:320px;
    }

    .home-hero-logo img{
        width:min(78vw, 320px);
        max-height:52%;
        opacity:.72;
    }

    .hero h1,
    .page-hero h1{
        max-width:11ch;
        margin-left:auto;
        margin-right:auto;
        font-size:clamp(2.2rem, 13vw, 3.7rem) !important;
        line-height:.96;
    }

    .page-hero{
        min-height:300px;
        padding:72px 0 58px;
    }

    .page-hero p,
    .page-hero .lead{
        font-size:1rem;
        line-height:1.6;
    }

    .btn-primary,
    .btn-secondary{
        width:auto;
        max-width:100%;
        min-height:48px;
        padding:14px 22px;
        white-space:normal;
        text-align:center;
    }

    .greetings{
        padding-top:42px;
    }

    .event-info-home{
        padding:48px 0 42px;
    }

    .event-info-grid{
        gap:28px;
    }

    .event-info-date{
        min-height:auto;
        padding:28px;
        border-radius:14px;
    }

    .event-days strong{
        min-height:78px;
        font-size:clamp(2.2rem, 10vw, 3.2rem);
    }

    .event-info-copy h2{
        max-width:none;
        font-size:clamp(2rem, 10vw, 3rem);
    }

    .event-info-copy p{
        font-size:1rem;
    }

    .greetings .container{
        display:block;
    }

    .greetings-panels{
        gap:50px;
        margin-top:20px;
    }

    .greetings-action .btn-primary{
        display:table;
        margin:0 auto;
    }

    .location-action .btn-primary{
        display:table;
        margin:0 auto;
    }

    .greetings-media{
        margin-top:0;
    }

    .greetings h2,
    .section-heading h2,
    .countdown-section h2,
    .final-cta h2{
        font-size:clamp(1.85rem, 9vw, 2.45rem);
        line-height:1.05;
    }

    .card,
    .speaker-card,
    .timeline-item{
        padding:24px;
        border-radius:14px;
    }

    .full-image,
    .location-content img{
        max-height:none;
        aspect-ratio:16 / 11;
        border-radius:14px;
    }

    .location-gala-grid{
        gap:28px;
    }

    .location-gala-copy h2{
        font-size:clamp(2.4rem, 13vw, 4rem);
    }

    .location-gala-media{
        min-height:0;
        padding-bottom:54px;
    }

    .location-gala-photo{
        aspect-ratio:16 / 11;
        border-radius:10px;
    }

    .location-gala-detail{
        right:18px;
        bottom:0;
        width:min(32%, 128px);
        border-width:2px;
    }

    .program-evenings .section-heading{
        margin-bottom:22px;
    }

    .evening-card,
    .evening-card-reverse{
        grid-template-columns:1fr;
        gap:24px;
        padding:34px 0;
    }

    .evening-card-reverse .evening-copy,
    .evening-card-reverse .evening-media{
        order:initial;
    }

    .evening-day{
        letter-spacing:3px;
    }

    .evening-copy h2{
        font-size:clamp(2rem, 10vw, 3rem);
    }

    .evening-highlight{
        display:flex;
        justify-content:center;
        text-align:center;
    }

    .evening-photo{
        aspect-ratio:16 / 11;
        border-radius:14px;
    }

    .friday-media{
        padding-top:42px;
    }

    .evening-character{
        right:14px;
        width:min(56%, 210px);
    }

    .countdown-wrapper{
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:12px;
    }

    .countdown-box{
        padding:18px 10px;
    }

    .countdown-box span{
        font-size:2rem;
    }

    .speaker-grid,
    .partners-grid,
    .gallery-grid,
    .cards-grid,
    .cards,
    .info-boxes{
        grid-template-columns:1fr;
    }

    .speaker-card img{
        width:150px;
        height:150px;
    }

    .partner-logo{
        height:96px;
        border-radius:14px;
    }

    .gallery-grid img{
        height:auto;
        aspect-ratio:4 / 3;
    }

    .transport-card div{
        padding:22px;
    }

    .transport-table th,
    .transport-table td{
        padding:16px 14px;
    }

    .transport-note{
        text-align:left;
    }

    .packages-grid{
        grid-template-columns:1fr;
    }

    .package-card{
        padding:22px;
    }

    .schedule-item{
        grid-template-columns:1fr;
        gap:8px;
    }

    .day-header,
    .agenda-item{
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
    }

    .download-box,
    .theme-box{
        padding:34px 22px;
        border-radius:16px;
    }
}

@media(max-width:420px){
    .container{
        width:min(100% - 24px, 1200px);
    }

    .logo-main{
        max-width:220px;
        font-size:1rem;
    }

    .home-hero{
        min-height:370px;
    }

    .hero h1,
    .page-hero h1{
        font-size:clamp(2rem, 12vw, 3rem) !important;
    }

    .countdown-wrapper{
        grid-template-columns:1fr 1fr;
    }
}

/* Header refinement */
@media(min-width:993px){
    .header .container{
        min-height:76px;
    }

    .menu{
        display:block;
    }
}

@media(max-width:992px){
    body.menu-open{
        overflow:hidden;
    }

    .header .container{
        min-height:76px;
        padding:0;
    }

    .header-logo{
        width:42px;
        height:42px;
    }

    .logo-main{
        max-width:min(58vw, 300px);
        white-space:normal;
        font-size:1.05rem;
        line-height:1.1;
        letter-spacing:.02em;
    }

    #mobile-btn{
        position:relative;
        z-index:1301;
        display:flex;
        flex:0 0 auto;
        align-items:center;
        justify-content:center;
        width:46px;
        height:46px;
        background:white;
        line-height:1;
    }

    .menu{
        position:fixed;
        inset:0;
        top:0;
        left:0;
        right:0;
        display:flex;
        width:100%;
        max-width:none;
        height:100dvh;
        padding:112px 28px 36px;
        border-radius:0;
        background:rgba(251,247,242,.98);
        box-shadow:none;
        opacity:0;
        visibility:hidden;
        pointer-events:none;
        z-index:1200;
    }

    .menu.active{
        display:flex;
        opacity:1;
        visibility:visible;
        pointer-events:auto;
    }

    .menu ul{
        display:flex;
        width:100%;
        flex-direction:column;
        align-items:stretch;
        justify-content:flex-start;
        gap:0;
        padding:0;
        margin:0;
    }

    .menu li{
        display:block;
        margin:0;
        border-bottom:1px solid rgba(59,107,95,.16);
    }

    .menu a{
        justify-content:center;
        min-height:68px;
        padding:0;
        font-size:1.38rem;
        font-weight:800;
        color:var(--text);
        border-radius:0;
    }

    .menu a:hover{
        background:rgba(139,58,41,.08);
    }
}

@media(max-width:420px){
    .header-logo{
        width:38px;
        height:38px;
    }

    .logo-main{
        max-width:190px;
        font-size:.9rem;
    }

    .menu{
        padding-top:104px;
    }

    .menu a{
        min-height:62px;
        font-size:1.24rem;
    }
}
