/* splash.css — Schermata di scelta iniziale RS SERVICE H24 */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Oswald:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --color-bg-darkest: #060606;
    --color-primary: #ffc400;
    --color-text-white: #ffffff;
    --color-text-muted: #bcbcbc;
    --color-text-dark: #0c0c0c;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Geist', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

a:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

.splash-body {
    background: var(--color-bg-darkest);
    color: var(--color-text-white);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    min-height: 100dvh;
}

.splash {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 4vh, 3rem);
    padding: clamp(2rem, 6vh, 4rem) 5%;
    text-align: center;
}

/* HEADER */
.splash-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: splash-fade-down 0.9s var(--ease-out) both;
}

.splash-logo {
    height: clamp(58px, 8vw, 84px);
    width: auto;
    filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.5));
}

.splash-tagline {
    font-family: var(--font-mono);
    font-size: clamp(0.7rem, 1.6vw, 0.85rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.splash-question {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(1.8rem, 5vw, 3rem);
    letter-spacing: -0.02em;
    animation: splash-fade-down 0.9s var(--ease-out) 0.15s both;
}

/* GRIGLIA SCELTE */
.splash-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 2.5vw, 2rem);
    width: 100%;
    max-width: 1100px;
}

.choice {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 24px;
    min-height: clamp(320px, 48vh, 460px);
    text-decoration: none;
    color: var(--color-text-white);
    border: 1px solid rgba(255, 196, 0, 0.18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
    animation: splash-fade-up 1s var(--ease-out) 0.3s both;
}

.choice:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--color-primary);
}

.choice-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.choice-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55) contrast(1.05);
    transition: transform 1.2s var(--ease-out);
}

.choice:hover .choice-bg img {
    transform: scale(1.08);
}

.choice-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 6, 6, 0.92) 0%, rgba(6, 6, 6, 0.45) 60%, rgba(6, 6, 6, 0.3) 100%);
}

.choice-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
}

.choice-icon {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--color-primary);
    margin-bottom: auto;
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.choice-content h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1;
    letter-spacing: -0.02em;
}

.choice-content p {
    font-size: clamp(0.85rem, 1.6vw, 1rem);
    color: var(--color-text-muted);
    max-width: 30ch;
}

.choice-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.5rem;
    padding: 12px 28px;
    background: var(--color-primary);
    color: var(--color-text-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    border-radius: 50px;
    transition: gap 0.3s var(--ease-out);
}

.choice:hover .choice-cta {
    gap: 14px;
}

.choice-cta .material-symbols-outlined {
    font-size: 1.2em;
}

/* TELEFONO IN FONDO */
.splash-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.3rem);
    padding: 12px 24px;
    border: 1px solid rgba(255, 196, 0, 0.4);
    border-radius: 50px;
    transition: background 0.3s ease, color 0.3s ease;
    animation: splash-fade-up 1s var(--ease-out) 0.5s both;
}

.splash-phone:hover {
    background: var(--color-primary);
    color: var(--color-text-dark);
}

/* ANIMAZIONI */
@keyframes splash-fade-down {
    from { opacity: 0; transform: translateY(-24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes splash-fade-up {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .splash-header, .splash-question, .choice, .splash-phone { animation: none; }
}

/* MOBILE: scelte impilate verticalmente */
@media (max-width: 768px) {
    .splash-choices {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 480px;
    }
    .choice {
        min-height: 220px;
    }
    .choice-icon {
        margin-top: 1.25rem;
    }
}
