/*
 * Pagina di manutenzione (resources/views/errors/503.blade.php).
 *
 * Sta in public/ e non passa da Vite di proposito: durante un deploy la cartella
 * public/build viene riscritta e la pagina di cortesia deve restare in piedi da sola.
 * I colori ripetono i token di resources/css/app.css.
 */
:root {
    color-scheme: dark;

    --night: #02172a;
    --magenta: #ff3798;
    --magenta-deep: #d60e6d;
    --magenta-line: #ff58a7;
    --fog: #e3e6ef;
    --mist: #c9cfdd;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--night);
    -webkit-tap-highlight-color: transparent;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--night);
    color: #fff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------------------------------------------------------------- *
 * Struttura: una sola schermata, pensata a 390 px
 * ---------------------------------------------------------------- */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    overflow: hidden;
    padding: max(1.75rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right))
        max(1.375rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
}

.backdrop,
.veil {
    position: absolute;
    inset: 0;
}

.backdrop {
    z-index: -2;
}

.backdrop img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
}

.veil {
    z-index: -1;
    background:
        linear-gradient(90deg, rgb(2 23 42 / 0.91), rgb(2 23 42 / 0.55) 56%, rgb(2 23 42 / 0.18)),
        linear-gradient(0deg, rgb(2 23 42 / 0.8), transparent 50%, rgb(2 23 42 / 0.28));
}

/* ---------------------------------------------------------------- *
 * Testata: logo e stato
 * ---------------------------------------------------------------- */
.masthead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: block;
    flex-shrink: 0;
    width: 12.5rem;
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
}

.soon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0 0;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.soon-dot {
    position: relative;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: var(--magenta);
}

.soon-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--magenta);
    animation: ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ---------------------------------------------------------------- *
 * Messaggio
 * ---------------------------------------------------------------- */
.message {
    width: 100%;
    max-width: 53rem;
    margin: auto 0;
    padding: 3rem 0;
}

.claim {
    margin: 0 0 1.5rem;
    font-size: clamp(1.625rem, 6.7vw, 2.125rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.accent {
    color: var(--magenta);
}

.teaser {
    max-width: 27rem;
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--fog);
}

.desktop-break {
    display: none;
}

.arrival {
    margin: 0 0 1.875rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--fog);
}

.arrival strong {
    font-weight: 700;
    color: #fff;
}

.social-label {
    margin: 0 0 0.875rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Su telefono i pulsanti sono impilati e larghi uguali, nella zona del pollice */
.social-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.follow {
    display: inline-flex;
    align-items: center;
    gap: 0.9375rem;
    width: 16.75rem;
    max-width: 100%;
    min-height: 3.5rem;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--magenta-line);
    background: var(--magenta-deep);
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s var(--ease-out-expo);
}

.follow-ghost {
    border-color: rgb(255 255 255 / 0.5);
    background: rgb(2 23 42 / 0.6);
}

.follow-name {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.follow-name small {
    display: block;
    margin-top: 0.3125rem;
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: none;
}

.follow-icon {
    flex-shrink: 0;
    width: 1.4375rem;
    height: 1.4375rem;
}

.follow-arrow {
    margin-left: auto;
    font-size: 1.6875rem;
    line-height: 1;
    transition: transform 0.3s var(--ease-out-expo);
}

@media (hover: hover) {
    .follow:hover {
        transform: translateY(-2px);
    }

    .follow:hover .follow-arrow {
        transform: translate(2px, -2px);
    }
}

.follow:focus-visible {
    outline: 3px solid var(--magenta);
    outline-offset: 4px;
}

.edge {
    margin: 0;
    font-size: 0.625rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mist);
}

/* ---------------------------------------------------------------- *
 * Ingresso: solo transform e opacity, sfalsato con --i
 * ---------------------------------------------------------------- */
.rise {
    animation: rise 0.7s var(--ease-out-expo) both;
    animation-delay: calc(var(--i, 0) * 90ms + 100ms);
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    80%,
    100% {
        transform: scale(3.2);
        opacity: 0;
    }
}

/* ---------------------------------------------------------------- *
 * Telefoni stretti
 * ---------------------------------------------------------------- */
@media (max-width: 360px) {
    .hero {
        padding-left: max(1.125rem, env(safe-area-inset-left));
        padding-right: max(1.125rem, env(safe-area-inset-right));
    }

    .brand {
        width: 10.5rem;
    }

    .soon {
        letter-spacing: 0.08em;
    }
}

/* ---------------------------------------------------------------- *
 * Da tablet in su
 * ---------------------------------------------------------------- */
@media (min-width: 700px) {
    .hero {
        padding: max(2.625rem, env(safe-area-inset-top)) 6vw max(1.875rem, env(safe-area-inset-bottom));
    }

    .brand {
        width: clamp(23.75rem, 46vw, 40rem);
    }

    .soon {
        margin-top: 0.625rem;
        font-size: 0.6875rem;
    }

    .message {
        padding: 4.25rem 0;
    }

    .claim {
        margin-bottom: 1.625rem;
        font-size: clamp(2.125rem, 3.3vw, 3rem);
        letter-spacing: -0.035em;
    }

    .teaser {
        max-width: 32rem;
        font-size: 1.0625rem;
    }

    .desktop-break {
        display: initial;
    }

    .arrival {
        font-size: 0.9375rem;
    }

    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rise,
    .soon-dot::after {
        animation: none;
    }

    .follow,
    .follow-arrow {
        transition: none;
    }

    .follow:hover,
    .follow:hover .follow-arrow {
        transform: none;
    }
}
