/* =========================================
   PAGE: CONTATTI STYLE
   ========================================= */

/* --- 1. HERO SECTION (Intestazione) --- */
.contact-hero {
    position: relative;
    height: 70vh; /* Altezza importante per l'impatto visivo */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-dark);
    /* Immagine sfondo scura e sportiva */
    background-image: url('https://images.unsplash.com/photo-1579952363873-27f3bade9f55?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Effetto parallasse */
    margin-bottom: -100px; /* Sovrapposizione col form */
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(8, 12, 20, 0.85); /* Overlay scuro per leggere il testo */
    z-index: 1;
}

.hero-content-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 2rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

/* Box Sottotitolo (Come immagine rif) */
.hero-box-small {
    max-width: 800px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 10px;
    border-top: 2px solid var(--neon-green);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dim);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-desc {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
}


/* --- 2. FORM SECTION --- */
.contact-form-section {
    position: relative;
    padding-bottom: 8rem;
    padding-top: 5rem; /* Spazio per la sovrapposizione */
    z-index: 3;
}

.form-glass-container {
    background: #0d111a; /* Sfondo solido scuro */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 4rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

/* Linea decorativa */
.form-glass-container::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 30%; height: 3px;
    background: var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green);
    border-radius: 0 0 10px 10px;
}

.form-heading {
    text-align: center;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 3rem;
    font-weight: 700;
    line-height: 1.4;
}

/* --- STILE CAMPI INPUT --- */
.tech-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.full-width {
    grid-column: span 2; /* Occupa tutta la riga */
    width: 100%;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-left: 5px;
}

/* Input, Select, Textarea */
input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--neon-green);
    background: rgba(0, 242, 96, 0.02);
    box-shadow: 0 0 15px rgba(0, 242, 96, 0.1);
}

/* Placeholder color */
::placeholder { color: rgba(255, 255, 255, 0.3); }

/* Select Arrow Styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300f260%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.8rem;
}

/* --- RADIO BUTTONS GRID --- */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.custom-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #ccc;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.custom-radio:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Nascondi il radio default */
.custom-radio input {
    display: none;
}

/* Custom Marker */
.radio-mark {
    width: 18px; height: 18px;
    border: 2px solid var(--text-dim);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    display: inline-block;
}

.custom-radio input:checked + .radio-mark {
    border-color: var(--neon-green);
    background: transparent;
}

.custom-radio input:checked + .radio-mark::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 8px; height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green);
}

.custom-radio input:checked ~ span { /* Testo verde quando selezionato */
    color: #fff;
}

/* --- SUBMIT BUTTON --- */
.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.btn-submit-neon {
    background: var(--neon-green);
    color: #05080f;
    font-weight: 800;
    text-transform: uppercase;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(0, 242, 96, 0.3);
}

.btn-submit-neon:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(0, 242, 96, 0.6);
    color: #000;
}


/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .contact-hero { height: auto; padding: 120px 5% 150px; } /* Più spazio per il testo */
    .hero-title { font-size: 2.2rem; }
    
    .form-glass-container { padding: 2rem 1.5rem; margin-top: -50px; }
    
    .form-row { grid-template-columns: 1fr; gap: 1.5rem; }
    .full-width { grid-column: span 1; }
    
    .radio-grid { grid-template-columns: 1fr; } /* Radio in colonna su mobile */
}
/* --- FIX IMPORTANTE PER MENU A TENDINA (SELECT) --- */

/* Forza lo stile delle opzioni interne */
select option {
    background-color: #080c14; /* Sfondo scuro (colore del sito) */
    color: #ffffff;            /* Testo bianco */
    padding: 10px;             /* Un po' di aria */
}

/* Stile base della Select (Assicuriamoci che sia coerente) */
select {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.03); /* Sfondo semitrasparente quando chiusa */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    
    /* Icona freccia personalizzata verde */
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300f260%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

select:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 242, 96, 0.2);
}
/* --- TESTO PICCOLO SBIADITO --- */
.small-faded-text {
    font-size: 0.85rem;              /* Dimensione piccola (circa 13-14px) */
    color: rgba(255, 255, 255, 0.6); /* Bianco con 60% di opacità */
    font-weight: 300;                /* Font leggero/sottile */
    letter-spacing: 0.5px;           /* Leggera spaziatura per eleganza */
    margin-top: 5px;                 /* Spazio sopra se sotto un titolo/bottone */
    display: block;                  /* Va a capo */
}