/* Reset e Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Open Sans', sans-serif; line-height: 1.6; color: #333; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; text-transform: uppercase; }
.container { width: 90%; max-width: 1200px; margin: auto; overflow: hidden; }
.section { padding: 60px 0; }
.bg-light { background: #f4f4f4; }
.center { text-align: center; margin-top: 20px; }

/* Navigazione */
.navbar { background: #fff; height: 80px; display: flex; align-items: center; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 60px; }
.nav-links { display: flex; list-style: none; }
.nav-links li a { text-decoration: none; color: #004a99; font-weight: bold; margin-left: 20px; transition: 0.3s; }
.nav-links li a:hover { color: #e67e22; }

/* Hero */
.hero { 
    background: linear-gradient(rgba(0,74,153,0.7), rgba(0,74,153,0.7)), url('arezzo-bg.jpg') no-repeat center center/cover;
    height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; 
}
.hero h1 { font-size: 3.5rem; margin-bottom: 10px; }
.btn { background: #e67e22; color: #fff; padding: 15px 30px; text-decoration: none; border-radius: 5px; font-weight: bold; }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-candidati { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }

/* Cards */
.card { background: #fff; padding: 20px; border-bottom: 5px solid #004a99; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.candidato-card { text-align: center; }
.candidato-img { background: #ddd; width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 15px; }
.link-cv { font-size: 0.8rem; color: #004a99; text-decoration: none; border: 1px solid #004a99; padding: 5px 10px; border-radius: 3px; display: inline-block; margin-top: 10px; }
.link-casellario { font-size: 0.8rem; color: #f2921d; text-decoration: none; border: 1px solid #f2921d; padding: 5px 10px; border-radius: 3px; display: inline-block; margin-top: 10px; }
/* Responsive Mobile */
@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 80px; left: 0; width: 100%; background: #fff; text-align: center; }
    .nav-links.active { display: flex; }
    .nav-links li { padding: 15px 0; border-top: 1px solid #eee; }
    .burger { cursor: pointer; display: block; }
    .burger span { display: block; width: 25px; height: 3px; background: #004a99; margin: 5px; transition: 0.3s; }
}

/* Footer */
footer { background: #004a99; color: #fff; padding: 40px 0; text-align: center; }
.social-icons a { color: #fff; margin: 0 10px; text-decoration: underline; }

:root {
    --primary-blue: #004a99;
    --accent-orange: #f39c12;
    --text-dark: #2c3e50;
    --white: #ffffff;
}

/* Header & Nav */
.header-modern {
    background: linear-gradient(135deg, #f8f9fa 60%, var(--primary-blue) 60%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: absolute;
    width: 100%;
    z-index: 10;
}

.logo-img { height: 65px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); } 

.nav-menu { display: flex; list-style: none; align-items: center; }
.nav-menu li a { 
    text-decoration: none; 
    color: var(--text-dark); 
    font-weight: 600; 
    margin: 0 20px;
    transition: 0.3s;
}

.nav-cta {
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 50px;
}

/* Hero Split Layout */
.hero-split {
    display: flex;
    align-items: center;
    padding: 150px 5% 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text { flex: 1; padding-right: 50px; }
.tagline { color: var(--accent-orange); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.hero-text h1 { font-size: 4rem; color: var(--text-dark); line-height: 1.1; margin: 20px 0; }
.highlight { color: var(--primary-blue); }

.hero-btns { margin-top: 40px; display: flex; gap: 20px; }
.btn-primary { background: var(--accent-orange); color: white; padding: 15px 35px; border-radius: 8px; text-decoration: none; font-weight: bold; box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3); }
.btn-secondary { border: 2px solid var(--primary-blue); color: var(--primary-blue); padding: 15px 35px; border-radius: 8px; text-decoration: none; font-weight: bold; }

/* Visual con Simbolo */
.hero-visual { flex: 1; display: flex; justify-content: center; position: relative; }
.symbol-overlay img { 
    width: 450px; 
    height: 450px; 
    background: white; 
    border-radius: 50%; 
    padding: 20px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    animation: float 6s ease-in-out infinite;
} 

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .header-modern { background: #f8f9fa; }
    .hero-split { flex-direction: column; text-align: center; padding-top: 120px; }
    .hero-text { padding-right: 0; margin-bottom: 50px; }
    .hero-text h1 { font-size: 2.8rem; }
    .hero-btns { justify-content: center; flex-direction: column; }
    .symbol-overlay img { width: 280px; height: 280px; } 
}