/* =========================================
   HERO & BACKGROUND
   ========================================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Gradiente scuro per far risaltare il testo e i colori caldi */
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

/* =========================================
   GLASSMORPHISM CARD & ANIMATIONS
   ========================================= */
.glass-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3.5rem 3rem;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
    max-width: 550px;
    width: 100%;
}

/* Animazione di "fluttuazione" per rendere la pagina viva */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    /* Testo con gradiente per un look premium */
    background: linear-gradient(45deg, #fff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* =========================================
   FORM & INPUTS (UX MIGLIORATA)
   ========================================= */
.custom-input {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    transition: all 0.3s ease;
}

.custom-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.custom-input:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: 0 0 15px rgba(247, 127, 0, 0.3); /* Glow arancione */
    border-color: #f77f00;
    outline: none;
}

/* Icone dentro gli input */
.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    z-index: 10;
}

.with-icon {
    padding-left: 45px !important;
}

/* =========================================
   BUTTONS & SOCIALS
   ========================================= */
.btn-gradient {
    background: linear-gradient(45deg, #e63946, #f77f00);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.6);
    color: #fff;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin: 0 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #f77f00;
    transform: scale(1.1) rotate(5deg);
    color: white;
}