* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Calibri', 'Century Gothic', sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #faf9f8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #1a1a1a;
    color: #e6c87c;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-img {
    height: 70px;
    width: auto;
    display: block;
}

/* Navigazione */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #e6c87c;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown > a::after {
    content: " ▼";
    font-size: 10px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a1a;
    min-width: 200px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0;
    margin: 0;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    display: block !important;
    border-bottom: 1px solid #333;
}

.dropdown-menu li a {
    display: block !important;
    padding: 12px 20px !important;
    color: white !important;
    text-decoration: none !important;
}

.dropdown-menu li a:hover {
    background: #e6c87c !important;
    color: #1a1a1a !important;
}

/* Menu hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #e6c87c;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://placehold.co/1920x600/2c3e50/e6c87c?text=Progetto HAR');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 5rem 0;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #e6c87c;
}

/* Sezione titoli */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin: 3rem 0 2rem;
    color: #1a1a1a;
    border-bottom: 3px solid #e6c87c;
    display: inline-block;
    padding-bottom: 0.5rem;
}

/* Card generiche */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    height: 250px;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 1.5rem;
}

.card h3 {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #1a1a1a;
    color: #e6c87c;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn:hover {
    background: #333;
}

/* Eventi container (card con immagini grandi) */
.eventi-container .card-img {
    height: 320px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #ffffff;
}

.eventi-container .card-content {
    padding: 0.8rem 1rem;
}

.eventi-container .card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.eventi-container .btn {
    margin-top: 0.5rem;
    padding: 0.25rem 0.7rem;
    font-size: 0.75rem;
}

/* Card home compatte */
.home-eventi-container .card-content {
    padding: 0.8rem 1rem;
}

.home-eventi-container .card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.home-eventi-container .btn {
    margin-top: 0.5rem;
    padding: 0.25rem 0.7rem;
    font-size: 0.75rem;
}

.home-eventi-container .card-img {
    height: 320px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #ffffff;
}

/* Data */
.evento-data {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    color: #666;
}

/* Page header (titoli pagina) */
.page-header {
    background: linear-gradient(135deg, #1a1a1a, #2c3e50);
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: #e6c87c;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #cccccc;
    font-size: 1.1rem;
}

/* Box contenuti testuali */
.content-section,
.riconoscimento-box {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.content-section p,
.riconoscimento-box p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 0.3rem;
    color: #333;
}

.content-section p:last-child,
.riconoscimento-box p:last-child {
    margin-bottom: 0;
}

.riconoscimento-box {
    border-left: 5px solid #e6c87c;
}

.riconoscimento-box h3 {
    color: #e6c87c;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.riconoscimento-box strong {
    color: #e6c87c;
}

/* Social links */
.social-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links a {
    color: #e6c87c;
    text-decoration: none;
    font-weight: 500;
}

.social-links a:hover {
    color: #d4b85c;
    text-decoration: underline;
}

.social-icon {
    color: #e6c87c;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.social-icon i {
    font-size: 1.2rem;
}

.social-icon:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-img {
        height: 40px;
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #1a1a1a;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 0;
        z-index: 100;
    }

    nav ul.active {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        width: 100%;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr !important;
    }
}