/* --------------------------------------------------
   BASE
-------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Satoshi', sans-serif;
    color: #555;
    line-height: 1.6;
    background: #fff;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1000;
}

.logo {
    font-size: 20px;
    font-weight: 700;
}

/* Desktop menu hidden on mobile */
.menu-desktop {
    display: none;
}

.menu-desktop a {
    margin-left: 25px;
    text-decoration: none;
    color: #222;
    font-weight: 500;
}

/* Hamburger */
.hamburger {
    font-size: 28px;
    cursor: pointer;
    user-select: none;
}

/* Mobile menu */
.menu-mobile {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    padding: 20px;
    border-top: 1px solid #ddd;
}

.menu-mobile a {
    padding: 12px 0;
    font-size: 18px;
    text-decoration: none;
    color: #222;
}

/* Show mobile menu */
.menu-mobile.show {
    display: flex;
}

/* --------------------------------------------------
   HERO
-------------------------------------------------- */

.hero {
    background-image: url('../immagini/baner.png');
    background-size: cover;
    background-position: center;
    height: 260px;
}

@media (min-width: 768px) {
    .hero {
        height: 420px;
    }
}

@media (min-width: 1200px) {
    .hero {
        height: 600px;
    }
}

/* --------------------------------------------------
   SECTION
-------------------------------------------------- */

section {
    padding: 40px 20px;
    max-width: 1100px;
    margin: auto;
}

section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
}

/* --------------------------------------------------
   GRID SYSTEM (mobile-first)
-------------------------------------------------- */

.grid-2,
.grid-4 {
    display: grid;
    gap: 20px;
}

/* Mobile default */
.grid-2 {
    grid-template-columns: 1fr;
}

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

/* Tablet */
@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Desktop */
@media (min-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --------------------------------------------------
   CARD
-------------------------------------------------- */

.card {
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 8px;
    background: #fff;
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */

footer {
    background: #f7f7f7;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 50px 20px;
    max-width: 1100px;
    margin: auto;
}

.footer-grid h4 {
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-grid a {
    text-decoration: none;
    color: #222;
}

.footer-copy {
    text-align: center;
    padding: 20px;
    background: #eee;
    font-size: 14px;
}

/* Tablet footer */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop footer */
@media (min-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --------------------------------------------------
   LINKS
-------------------------------------------------- */

a {
    color: #222;
    text-decoration: none;
    transition: 0.2s;
}

a:hover {
    opacity: 0.6;
}

/* --------------------------------------------------
   DESKTOP MENU (appears only on large screens)
-------------------------------------------------- */

@media (min-width: 992px) {
    .menu-desktop {
        display: flex;
    }

    .hamburger {
        display: none;
    }

    .menu-mobile {
        display: none !important;
    }
}

.page-hero {
    background-image: url('immagini/baner.png'); /* o un banner diverso */
    background-size: cover;
    background-position: center;
    height: 260px;
}

@media (min-width: 768px) {
    .page-hero {
        height: 420px;
    }
}

@media (min-width: 1200px) {
    .page-hero {
        height: 600px;
    }
}


/* --------------------------------------------------
   EVENTI – FIX TESTO LUNGO
-------------------------------------------------- */

.evento-testo {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* BANNER HERO */
.hero {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 1s ease;
}

.hero-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    color: white;
    text-shadow: 0 0 10px black;
    max-width: 90%;
}

/* MOBILE */
@media (max-width: 768px) {
    .hero {
        height: 300px;
    }
    .hero-img {
        height: 300px;
    }
    .hero-content {
        bottom: 20px;
        left: 20px;
        font-size: 14px;
    }
}

/* SMARTPHONE PICCOLI */
@media (max-width: 480px) {
    .hero {
        height: 220px;
    }
    .hero-img {
        height: 220px;
    }
    .hero-content h1 {
        font-size: 20px;
    }
    .hero-content p {
        font-size: 14px;
    }
    .hero-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
}
