/* ================= RESET ================= */
* {
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior:smooth;
    scroll-padding-top:120px;
}

body {
    background-color:#000;
    color:#fff;
}

/* ================= HEADER ================= */
header {
    position: fixed;
    width: 100%;
    background: linear-gradient(90deg,#000,#b30000);
    padding:20px 40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:4px solid #f2c400;
    z-index:1000;
}

header h1 {
    color:#f2c400;
    font-size:22px;
}

nav a {
    color:#fff;
    text-decoration:none;
    margin-left:25px;
    font-weight:bold;
    transition:0.3s;
}

nav a:hover {
    color:#f2c400;
}

section {
    padding-top:120px;
}

/* ================= HERO (SFONDO CON IMMAGINE) ================= */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Inserisci qui il percorso della tua immagine */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/croazia.jpeg');
    
    background-size: cover;       /* Copre l'intera area */
    background-position: center;  /* Centra l'immagine */
    background-repeat: no-repeat;
    background-attachment: fixed; /* Opzionale: crea un effetto parallasse */
    
    padding: 0 8%;
}

.hero-text h2 {
    font-size: 48px;
    color: #f2c400; /* Cambiato in giallo per risaltare sullo sfondo scuro */
}

.hero-text h3 {
    color: #fff;    /* Colore bianco per il sottotitolo */
    font-size: 24px;
    margin-top: 10px;
}

.hero-container {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:60px;
    max-width:1200px;
    width:100%;
}

.hero-image {
    flex:1;
    display:flex;
    justify-content:center;
}

.hero-image img {
    max-width:400px;
    width:100%;
    height:auto;
    transform: translateY(30px);
}

.hero-text p {
    color:#b30000;
    font-weight:bold;
}

/* ================= DROPDOWN ================= */
.dropdown {
    display: inline-block;
    position: relative;
}

.dropbtn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #000;
    min-width: 180px;
    border: 2px solid yellow;
    z-index: 1;
}

.dropdown-content a {
    color: white;
    padding: 12px;
    display: block;
    text-decoration: none;
    border-bottom: 1px solid yellow;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #222;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ================= INTRO SECTION (🔴 ROSSO) ================= */
.intro-section {
    height:70vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#b30000;
    text-align:center;
}

.intro-section h2 {
    font-size:65px;
    color:#f2c400;
    letter-spacing:5px;
}

.intro-section p {
    color:#b30000;
}

.intro-section-tutela {
    height:70vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:black;
    text-align:center;
}

.intro-section-tutela h2 {
    font-size:65px;
    color:#f2c400;
    letter-spacing:5px;
}

.intro-section-tutela p {
    color:#b30000;
}

/* ================= SEZIONI SCROLL ================= */
.scroll-section {
    position:relative;
    background:#000;
}

.scroll-container {
    position:sticky;
    top:0;
    height:100vh;
    display:flex;
}

/* ================= MICRO PANEL ================= */
.micro-panel {
    min-width:100vw;
    height:100vh;
    position:relative;
    display:flex;
    justify-content:center;
    align-items:flex-start;
}

/* LINK PANEL */
a.micro-panel {
    text-decoration: none;
    color: inherit;
    display: flex;
}

a.micro-panel:hover {
    cursor: pointer;
}

/* ================= IMMAGINI ================= */
.micro-panel img {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:0;
}

/* ================= OVERLAY ================= */
.micro-panel::before {
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to right, rgba(0,0,0,0.85), rgba(0,0,0,0.4));
    z-index:1;
}

/* ================= TESTO IMMAGINI ================= */
.micro-panel.has-image h2 {
    position:absolute;
    top:28%;
    left:50%;
    transform:translateX(-50%);
    z-index:2;

    font-size:60px;
    color:#f2c400;
    text-shadow:2px 2px 10px rgba(0,0,0,0.8);

    opacity:0;
    transition:0.6s;
}

.micro-panel.has-image.active h2 {
    opacity:1;
    transform:translate(-50%,0);
}

/* ================= PANNELLI TESTO ================= */
.micro-panel:not(.has-image) {
    background: linear-gradient(90deg,#000,#111);
    display:flex;
    justify-content:center;
    align-items:center;
}

.micro-panel:not(.has-image) h2 {
    font-size:60px;
    color:#f2c400;
    text-shadow:2px 2px 10px rgba(0,0,0,0.8);
}

/* ================= CONTATTI ================= */
.contact-section {
    min-height:70vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    background:#0d0d0d;
    text-align:center;
}

.contact-section h2 {
    font-size:40px;
    color:#f2c400;
    margin-bottom:30px;
}

.contact-box {
    display:flex;
    justify-content:center;
    gap:60px;
    flex-wrap:wrap;
}

.contact-item {
    background:#111;
    padding:25px 30px;
    border-left:4px solid #f2c400;
    min-width:220px;
    text-align:center;
}

.contact-item h3 {
    color:#f2c400;
    margin-bottom:10px;
}

.contact-item p {
    color:#fff;
    line-height:1.6;
}

/* ================= FOOTER ================= */
footer {
    padding:25px;
    text-align:center;
    border-top:3px solid #b30000;
}

/* ================= SOCIAL LINKS ================= */
.social-links {
    margin-top: 40px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 30px; /* Spazio tra le icone */
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: #111; /* Sfondo scuro come i contact-item */
    border: 2px solid #f2c400; /* Bordo Giallo Oro */
    border-radius: 50%; /* Le rende circolari */
    transition: 0.3s ease;
}

.social-links img {
    width: 25px; /* Dimensione dei loghi */
    height: 25px;
    filter: invert(1); /* Rende le icone bianche (se sono nere all'origine) */
}

.social-links a:hover {
    background: #b30000; /* Diventa Rosso al passaggio del mouse */
    border-color: #fff;
    transform: translateY(-5px); /* Effetto rimbalzo verso l'alto */
}

/* ================= RESPONSIVE ================= */
@media(max-width:768px){

    header {
        flex-direction:column;
        padding:20px;
    }

    nav a {
        margin:10px;
    }

    .hero-container {
        flex-direction:column;
        text-align:center;
    }

    .hero-text h2 {
        font-size:36px;
    }

    .intro-section h2 {
        font-size:45px;
    }

    .micro-panel.has-image h2,
    .micro-panel:not(.has-image) h2 {
        font-size:40px;
    }
}

