/* ================== HERO ================== */
#hero {
    position: relative;
    width: 100%;
    min-height: 60vh;
    overflow: hidden;
}

/* ================== SLIDE ================== */
.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* testo in basso */
    padding: 80px 20px 60px;
}

/* Slide attiva */
.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Overlay regolabile */
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4); /* puoi modificare per regolare l'opacità */
    z-index: 1;
}

/* Contenuto slide */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 50px; /* desktop */
    color: white;
    text-align: center;
}

.hero-content h1 { font-size: 30px; margin-bottom: 12px; }
.hero-content h2 { font-size: 18px; margin-bottom: 20px; }
.hero-content .btn {
    background: #00b4d8;
    padding: 12px 35px;
    color: white;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
    text-decoration: none;
}
.hero-content .btn:hover { background: #0077b6; }

/* ================== CONTROLLI ================== */
/* Contenitore frecce */
.hero-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
}

/* Pulsanti frecce rotondi */
.hero-arrows button {
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    font-size: 36px;
    width: 50px;      /* larghezza fissa */
    height: 50px;     /* altezza uguale alla larghezza = cerchio perfetto */
    padding: 0;       /* togli il padding che allungava */
    border-radius: 50%; /* rotondo */
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-arrows button:hover {
    background: rgba(0,0,0,0.6);
    color: #00b4d8;
}
/* Mostra solo su desktop */
@media (max-width: 768px) {
    .hero-arrows { display: none; }
}

/* ================== DOTS ================== */
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.hero-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.hero-dots span.active {
    background: #00b4d8;
    transform: scale(1.2);
}
/* ================== MOBILE ================== */
@media (max-width: 768px) {
    .hero-slide { align-items: flex-end; padding: 50px 15px 40px; }
    .hero-content { margin-bottom: 30px; }
    .hero-content h1 { font-size: 24px; }
    .hero-content h2 { font-size: 16px; }
    .hero-content .btn { padding: 10px 25px; font-size: 14px; }
}