﻿/* Sito pubblico di pescAItalia: i colori dell'app (AppColors), font di sistema, nessuna risorsa esterna; prima il telefono */
:root {
    --abisso: #0A2540;
    --profondo: #0E4C7A;
    --oceano: #1565A6;
    --mare: #2E8BC9;
    --cielo: #8ECFF0;
    --schiuma: #EAF5FB;
    --testo: #16293A;
    --sabbia: #FFE8A3;
    --rosso: #C62828;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--schiuma);
    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; }
img { max-width: 100%; }
a { color: var(--oceano); }
a:focus-visible { outline: 3px solid var(--sabbia); 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 logo dell'app a sinistra, quello della Regione e le lingue a destra */
.site-header { background: #ffffff; border-bottom: 4px solid var(--mare); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; }
.site-header .brand img { display: block; height: 44px; width: auto; }
.header-right { display: flex; align-items: center; gap: 12px; }
.region-logo { display: block; height: 22px; width: auto; }
.lang-switch { display: flex; gap: 6px; }
.lang-switch a {
    color: var(--oceano);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    padding: 7px 11px;
    border: 1px solid rgba(21, 101, 166, 0.45);
    border-radius: 999px;
}
.lang-switch a[aria-current] { background: var(--oceano); color: #ffffff; border-color: var(--oceano); }

/* apertura */
.hero {
    padding: 36px 0 48px;
    background:
        radial-gradient(circle at 100% 0%, rgba(142, 207, 240, 0.55) 0, rgba(142, 207, 240, 0) 55%),
        radial-gradient(circle at 0% 100%, rgba(46, 139, 201, 0.2) 0, rgba(46, 139, 201, 0) 50%),
        var(--schiuma);
    overflow: hidden;
}
.hero-inner { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 8.5vw, 3.3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.hero h1 .name {
    color: var(--oceano);
    background: linear-gradient(transparent 62%, var(--sabbia) 62%, var(--sabbia) 92%, transparent 92%);
}
.hero-lead { margin-top: 18px; font-size: 1.125rem; max-width: 32em; }
.soon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 13px;
    background: #ffffff;
    color: var(--oceano);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 22px;
    box-shadow: 0 2px 10px rgba(21, 101, 166, 0.15);
}
.soon-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mare); box-shadow: 0 0 0 4px rgba(46, 139, 201, 0.25); flex: none; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin-top: 24px; }
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px 11px 22px;
    background: var(--oceano);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(21, 101, 166, 0.3);
}
.cta-button:hover { background: var(--mare); }
.cta-button .icon { width: 20px; height: 20px; stroke-width: 2.2; }

/* il telefono è solo un disegno in CSS, con la home dell'app */
.phone {
    width: 272px;
    height: 540px;
    margin: 0 auto;
    padding: 10px;
    background: var(--abisso);
    border-radius: 42px;
    box-shadow: 0 26px 50px rgba(10, 37, 64, 0.3), inset 0 0 0 2px #24476b;
}
.phone-screen {
    position: relative;
    height: 100%;
    padding: 40px 12px 16px;
    border-radius: 33px;
    background: #ffffff;
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.35;
}
.phone-screen::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    width: 84px;
    height: 22px;
    margin-left: -42px;
    border-radius: 999px;
    background: var(--abisso);
}
.phone-screen::after {
    content: "";
    position: absolute;
    bottom: 9px;
    left: 50%;
    width: 96px;
    height: 4px;
    margin-left: -48px;
    border-radius: 999px;
    background: rgba(10, 37, 64, 0.35);
}
.app-logo { display: block; width: 128px; margin: 0 auto; }
.app-hello { text-align: center; font-size: 1rem; font-weight: 800; margin: 2px 0 10px; }
.app-card { background: rgba(142, 207, 240, 0.25); border-radius: 12px; padding: 10px 10px 8px; }
.app-card-top { display: grid; grid-template-columns: 24px 1fr; gap: 8px; }
.app-card-top .icon { color: var(--oceano); width: 22px; height: 22px; }
.app-card-title { font-weight: 800; font-size: 0.8rem; }
.app-small { font-size: 0.65rem; color: #3d5266; }
.app-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; color: var(--oceano); font-weight: 800; }
.app-card-foot img { height: 15px; width: auto; }
.app-button { margin: 10px 0 12px; padding: 8px; border-radius: 999px; background: var(--oceano); color: #ffffff; text-align: center; font-weight: 700; }
.app-section { font-weight: 800; font-size: 0.8rem; margin-bottom: 6px; }
.app-trip { background: var(--schiuma); border-radius: 10px; padding: 7px 9px; }
.app-trip + .app-trip { margin-top: 6px; }
.app-trip-head { color: var(--profondo); }
.app-tag { display: inline-block; padding: 0 6px; border-radius: 999px; background: var(--mare); color: #ffffff; font-size: 0.6rem; font-weight: 700; }

/* 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; scroll-margin-top: 8px; }
.steps h2 { color: var(--oceano); }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step { background: var(--schiuma); border-radius: 20px; padding: 20px 20px 22px; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; color: var(--oceano); }
.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(--mare);
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
}
.step h3 { color: var(--oceano); font-size: 1.2rem; margin-bottom: 6px; }

.more-title { text-align: center; color: var(--oceano); 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(--oceano); color: #ffffff; }
.more h4 { font-size: 1.05rem; margin: 2px 0 4px; }

/* la parte per la Regione: il suo logo su un riquadro bianco, perché è fatto per i fondi chiari */
.region { background: linear-gradient(160deg, var(--profondo) 0%, var(--abisso) 100%); color: #ffffff; }
.region-head { text-align: center; margin-bottom: 28px; }
.region-head h2 { margin: 18px 0 8px; }
.region-lead { color: var(--cielo); font-size: 1.1rem; }
.region-badge { display: inline-block; background: #ffffff; border-radius: 12px; padding: 8px 12px; line-height: 0; }
.region-badge img { display: block; height: 30px; width: auto; }
.region-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.region-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); }
.region-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--cielo); color: var(--abisso); }
.region-item h3 { font-size: 1.05rem; margin: 1px 0 4px; color: var(--sabbia); }

/* piè di pagina, uguale anche nelle pagine dei documenti */
.site-footer { background: var(--abisso); color: var(--schiuma); padding: 32px 0 40px; font-size: 0.9rem; }
.footer-inner > * + * { margin-top: 12px; }
.site-footer a { color: var(--cielo); }
.footer-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.site-footer .brand img { display: block; height: 52px; width: auto; }
.site-footer .region-badge img { height: 26px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { font-weight: 700; }

@media (min-width: 600px) {
    .wrap { padding: 0 24px; }
    .site-header .brand img { height: 52px; }
    .region-logo { height: 32px; }
    .header-right { gap: 18px; }
    .soon { font-size: 1rem; padding: 10px 18px 10px 14px; }
    .region-list { grid-template-columns: 1fr 1fr; }
    .more-list { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (min-width: 900px) {
    .hero { padding: 64px 0 76px; }
    .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; }
    .more-list { grid-template-columns: repeat(3, 1fr); }
    .region-list { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .region-item { grid-template-columns: 1fr; padding: 20px; }
}
