/* Reset e Stili Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0d0d0d;
    color: #f7f7f7;
    overflow-x: hidden;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Sezione Hero */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.25) 0%, rgba(0, 0, 0, 0.55) 100%),
                url('immagini/Hero.webp') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 45%),
                rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    max-width: 720px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ff4f55;
    white-space: normal;
    overflow-wrap: anywhere;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: 1.1rem;
    margin: 0 auto 30px;
    max-width: 640px;
    line-height: 1.75;
    color: #e6e6e6;
}

/* Pulsanti */
.btn-container {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 36px;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    text-transform: uppercase;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}

.btn-primary {
    background-color: #ff4f55;
    color: white;
}

.btn-primary:hover {
    background-color: #ff6b6f;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
}

/* Sezione Galleria */
.gallery-section {
    padding: 70px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

#gallery-title {
    font-size: 2.3rem;
    text-align: center;
    margin-bottom: 24px;
    color: #ff4f55;
}

.gallery-section {
    background: rgba(15, 15, 15, 0.95);
}

.btn-back {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 40px;
    transition: color 0.2s;
}

.btn-back:hover {
    color: white;
}

/* Griglia Fotografica - Masonry */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
}

.photos-grid img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #111;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

.photos-grid img:hover {
    transform: scale(1.05);
}

.photos-grid img:active {
    transform: scale(0.98);
}

/* Modal per foto ingrandita */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.photo-modal.hidden {
    display: none !important;
}

#modal-photo {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
