﻿/* Sito pubblico di Fatalitapp: colori di app-pear (gli stessi dell'app), font di sistema, nessuna risorsa esterna; prima il telefono */
:root {
    --pera: #899B00;
    --oliva: #5D6F00;
    --verde-chiaro: #A9B546;
    --crema: #E5E8CE;
    --crema-chiara: #f6f7ec;
    --testo: #333333;
    --giallo: #FFFF99;
    --rosso: #C62828;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--crema);
    color: var(--testo);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
a { color: var(--oliva); }
a:focus-visible { outline: 3px solid var(--giallo); outline-offset: 2px; border-radius: 4px; }

/* due lingue nello stesso HTML: lo script mette la classe lang-it; senza script resta l'inglese, e il selettore non serve */
html:not(.lang-it) [data-lang="it"], html.lang-it [data-lang="en"] { display: none !important; }
html:not(.js) .lang-switch { display: none; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 16px; }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* intestazione, uguale anche nelle pagine dei documenti; il nome è solo testo, finché non c'è il logo */
.site-header { background: var(--oliva); border-bottom: 4px solid var(--pera); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #ffffff; text-decoration: none; font-weight: 800; font-size: 1.4rem; letter-spacing: 0.01em; }
.brand img { width: 1.5em; height: 1.5em; }
.lang-switch { display: flex; gap: 6px; }
.lang-switch a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
}
.lang-switch a[aria-current] { background: #ffffff; color: var(--oliva); border-color: #ffffff; }

/* apertura */
.hero {
    padding: 36px 0 48px;
    background:
        radial-gradient(circle at 100% 0%, rgba(169, 181, 70, 0.45) 0, rgba(169, 181, 70, 0) 55%),
        radial-gradient(circle at 0% 100%, rgba(137, 155, 0, 0.22) 0, rgba(137, 155, 0, 0) 50%),
        var(--crema);
    overflow: hidden;
}
.hero-inner { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 9vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.hero h1 .name {
    color: var(--oliva);
    background: linear-gradient(transparent 62%, var(--giallo) 62%, var(--giallo) 92%, transparent 92%);
}
.hero-lead { margin-top: 18px; font-size: 1.125rem; max-width: 32em; }
.soon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 10px 16px 10px 13px;
    background: #ffffff;
    color: var(--oliva);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 22px;
    box-shadow: 0 2px 10px rgba(93, 111, 0, 0.15);
}
.soon-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pera); box-shadow: 0 0 0 4px rgba(137, 155, 0, 0.25); flex: none; }

/* il telefono è solo un disegno in CSS */
.phone {
    width: 264px;
    height: 500px;
    margin: 0 auto;
    padding: 10px;
    background: var(--testo);
    border-radius: 42px;
    box-shadow: 0 26px 50px rgba(51, 51, 51, 0.28), inset 0 0 0 2px #4d4d4d;
}
.phone-screen {
    position: relative;
    height: 100%;
    padding: 44px 12px 16px;
    border-radius: 33px;
    background: linear-gradient(165deg, var(--oliva) 0%, var(--pera) 62%, var(--verde-chiaro) 100%);
    overflow: hidden;
}
.phone-screen::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    width: 84px;
    height: 22px;
    margin-left: -42px;
    border-radius: 999px;
    background: var(--testo);
}
.phone-screen::after {
    content: "";
    position: absolute;
    bottom: 9px;
    left: 50%;
    width: 96px;
    height: 4px;
    margin-left: -48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
}
.phone-time { color: #ffffff; text-align: center; font-size: 3.3rem; font-weight: 300; line-height: 1; margin-top: 12px; letter-spacing: 0.02em; }
.phone-date { color: rgba(255, 255, 255, 0.9); text-align: center; font-size: 0.85rem; margin: 6px 0 22px; }
.notif {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    padding: 10px 12px 11px;
    font-size: 0.8rem;
    line-height: 1.35;
    box-shadow: 0 4px 14px rgba(51, 51, 51, 0.18);
}
.notif + .notif { margin-top: 8px; }
.notif:last-child { opacity: 0.86; }
.notif-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #555555; }
.notif-icon { position: relative; width: 16px; height: 16px; border-radius: 5px; background: var(--pera); }
.notif-new .notif-icon::after {
    content: "";
    position: absolute;
    top: -3px;
    right: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rosso);
    border: 1px solid #ffffff;
}
.notif-when { margin-left: auto; font-weight: 400; letter-spacing: 0; text-transform: none; }

/* sezioni */
.section { padding: 56px 0; }
.section h2 { font-size: clamp(1.7rem, 6vw, 2.3rem); font-weight: 800; letter-spacing: -0.01em; text-align: center; margin-bottom: 28px; }

.steps { background: #ffffff; }
.steps h2 { color: var(--oliva); }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step { background: var(--crema-chiara); border-radius: 20px; padding: 20px 20px 22px; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; color: var(--oliva); }
.step-top .icon { width: 30px; height: 30px; }
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--pera);
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
}
.step h3 { color: var(--oliva); font-size: 1.2rem; margin-bottom: 6px; }

.more-title { text-align: center; color: var(--oliva); font-size: 1.3rem; margin: 44px 0 20px; }
.more-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.more { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.more-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--oliva); color: #ffffff; }
.more h4 { font-size: 1.05rem; margin: 2px 0 4px; }

.privacy { background: var(--oliva); color: #ffffff; }
.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.privacy-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.08); }
.privacy-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--verde-chiaro); color: var(--oliva); }
.privacy-item h3 { font-size: 1.05rem; margin: 1px 0 4px; color: var(--giallo); }

/* piè di pagina, uguale anche nelle pagine dei documenti */
.site-footer { background: var(--testo); color: var(--crema); padding: 32px 0 40px; font-size: 0.9rem; }
.footer-inner > * + * { margin-top: 12px; }
.site-footer a { color: var(--verde-chiaro); }
.site-footer .brand { color: #ffffff; font-size: 1.2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { font-weight: 700; }

@media (min-width: 600px) {
    .wrap { padding: 0 24px; }
    .soon { font-size: 1rem; padding: 10px 18px 10px 14px; }
    .privacy-list { grid-template-columns: 1fr 1fr; }
    .more-list { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (min-width: 900px) {
    .hero { padding: 72px 0 80px; }
    .hero-inner { grid-template-columns: 1.25fr 1fr; gap: 56px; }
    .hero-lead { font-size: 1.25rem; }
    .phone { transform: rotate(3deg); }
    .section { padding: 80px 0; }
    .section h2 { margin-bottom: 40px; }
    .step-list { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .privacy-list { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .privacy-item { padding: 20px; }
}
