* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    background-color: #2c3e50;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
}

.menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
}

.menu li a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: background-color 0.3s ease;
    border-radius: 4px;
    white-space: nowrap;
}

.menu li a:hover {
    background-color: #34495e;
}

.menu li a.active {
    background-color: #3498db;
}

/* Dropdown submenu */
.has-dropdown {
    position: relative;
}

.has-dropdown .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2c3e50;
    min-width: 190px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 200;
    flex-direction: column;
    gap: 0;
    padding: 0.3rem 0;
    list-style: none;
}

.has-dropdown:hover .dropdown {
    display: flex;
}

.has-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.has-dropdown .dropdown-toggle .arrow {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.has-dropdown.open .dropdown-toggle .arrow {
    transform: rotate(180deg);
}

.has-dropdown .dropdown li a {
    padding: 0.5rem 1.2rem;
    border-radius: 0;
    white-space: nowrap;
}

/* Pulsante hamburger - nascosto su desktop */
.hamburger {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ecf0f1;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Overlay mobile */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.mobile-overlay.active {
    display: block;
}

/* Responsive menu per mobile */
/* ...existing code... */

/* Responsive menu per mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: fixed;
        top: 15px;
        right: 15px;
        background-color: rgba(44, 62, 80, 0.9);
        border-radius: 4px;
        padding: 8px;
    }
    
    .hamburger span {
        background-color: #fff;
    }
    

    .menu {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        gap: 0;
        background-color: #2c3e50;
        padding: 60px 0 20px 0;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    /* ...existing code... */
    
    .menu.active {
        left: 0;
    }
    
    .menu li {
        width: 100%;
    }
    
    .menu li a {
        text-align: left;
        padding: 1rem 1.5rem;
        border-radius: 0;
        width: 100%;
    }
    
    nav {
        padding: 0;
    }
    
    header {
        padding: 0.25rem 0;
    }

    /* Dropdown mobile */
    .has-dropdown .dropdown {
        position: static;
        display: none;
        box-shadow: none;
        background-color: #1a252f;
        padding: 0;
        min-width: unset;
        border-radius: 0;
    }

    .has-dropdown.open .dropdown {
        display: flex;
    }

    .has-dropdown .dropdown li a {
        padding-left: 2.5rem;
    }
}

main {
    min-height: calc(100vh - 180px);
}

/* Chi siamo */
.chisiamo-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}

.chisiamo-foto {
    flex: 0 0 auto;
    max-width: 380px;
    width: 100%;
}

.chisiamo-foto img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: block;
    margin: 0;
}

.chisiamo-descrizione {
    flex: 1 1 0;
    min-width: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    min-height: 200px;
}

.chisiamo-biografie {
    margin-top: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    text-align: left;
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (max-width: 768px) {
    .chisiamo-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .chisiamo-foto {
        max-width: 100%;
    }

    .chisiamo-descrizione {
        flex: none;
        width: 100%;
    }

    .chisiamo-biografie {
        padding-left: 4px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.container.text-center {
    text-align: center;
}

.container img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

h3 + p, h3 + ul {
    margin-left: 20px;
}

h4 {
    margin-left: 20px;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

h4 + p, h4 + ul {
    margin-left: 40px;
}

.container p {
    margin-left: 0;
}

.evento-card {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.evento-img {
    width: 45%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.evento-desc {
    flex: 1;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .evento-card {
        flex-direction: column;
    }

    .evento-img {
        width: 100%;
    }
}

.container ul {
    list-style-position: inside;
    padding-left: 10px;
    margin: 1rem 0;
    margin-left: 20px;
}

h4 ~ ul {
    margin-left: 40px;
}

.container ul li {
    margin: 0.5rem 0;
}

footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

footer p {
    margin: 0;
}

footer a {
    color: #ecf0f1;
    text-decoration: underline;
}

footer a:hover {
    color: #3498db;
}

/* Stili per i pulsanti di donazione */
.btn-dona {
    display: inline-block;
    background-color: #3498db;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin: 10px 0;
    cursor: pointer;
    pointer-events: auto !important;
    touch-action: manipulation;
}

.btn-dona:hover {
    background-color: #2980b9;
}

.donazioni-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.donazioni-info h3 {
    color: #2c3e50;
    margin-top: 1.5rem;
}

.donazioni-info h3:first-child {
    margin-top: 0;
}

.note {
    font-style: italic;
    color: #666;
    margin-top: 20px;
}

/* ===== Banner Cookie ===== */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: #fff;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-content p {
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-banner-content a {
    color: #aad4f5;
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookie-accept,
.btn-cookie-refuse {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-cookie-accept {
    background: #27ae60;
    color: #fff;
}

.btn-cookie-accept:hover {
    background: #1e8449;
}

.btn-cookie-refuse {
    background: transparent;
    color: #ccc;
    border: 1px solid #ccc;
}

.btn-cookie-refuse:hover {
    background: rgba(255,255,255,0.1);
}

@media (max-width: 600px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-banner-buttons {
        width: 100%;
    }
    .btn-cookie-accept,
    .btn-cookie-refuse {
        flex: 1;
        text-align: center;
    }
}
