/* Stelle Cadenti — landing page
   Stesse regole del sito: contenuto max 1280px; sotto i 1280px
   testi in vw con tetto in px (min), larghezze e spazi in %. */

@font-face {
    font-family: "Comfortaa";
    src: url("fonts/comfortaa-latin.woff2") format("woff2");
    font-weight: 300 700;
    font-display: swap;
}

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

body {
    --textColor: white;
    --textColorSecondary: rgb(235 235 245 / .6);
    --textColorLight: #8cc8ff;

    background: black;
    color: var(--textColor);
    font-family: "Comfortaa", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

h1 {
    line-height: 1.1;
}


/* ROW */

.row {
    font-size: 0;
}

.row-content {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.row-cell {
    position: relative;
    display: inline-block;
    vertical-align: top;
    width: 100%;
    font-size: min(1.41vw, 18px);
}


/* COMUNI */

.gradient {
    background: linear-gradient(100deg, #8cc8ff, #2f6bff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.appIcon {
    border-radius: 22%;
}

.glass {
    background: linear-gradient(rgb(255 255 255 / .13), rgb(255 255 255 / .04));
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border: 1px solid rgb(255 255 255 / .14);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .28);
}

.pill {
    display: inline-block;
    vertical-align: middle;
    padding: .4em 1em .4em .4em;
    border-radius: 999px;
    font-size: min(1.1vw, 14px);
    line-height: 1.5;
}

.pill img {
    width: 1.8em;
    margin-right: .6em;
}

.pill span {
    color: var(--textColorSecondary);
}

/* Badge ufficiali: altezza fissa (Apple: minimo 40px a schermo).
   Spazio libero 1/4 dell'altezza (12px) */
.storeButtons {
    margin-top: min(2.81vw, 36px);
    font-size: 0;
}

.storeButtons a {
    margin-right: 24px;
}

.badgeAppStore {
    height: 48px;
}

/* il PNG ha 29px trasparenti sopra e sotto: 63px = 48px visibili, come Apple */
.badgeGooglePlay {
    height: 63px;
}

/* corpo del fumetto 48px come gli altri badge; la coda scende sotto */
.badgeAlexa {
    position: relative;
    top: 6px;
    height: 59px;
}


/* HEADER */

#header {
    position: fixed;
    z-index: 10;
    top: min(1.41vw, 18px);
    left: 0;
    right: 0;
}

#header .row-content {
    padding: 0 min(1.25vw, 16px);
    border-radius: min(1.56vw, 20px);
}

#header .row-cell {
    width: 50%;
    vertical-align: middle;
    line-height: min(4.38vw, 56px);
}

#brand {
    font-weight: 700;
}

#brand .appIcon {
    width: min(2.35vw, 30px);
    margin-right: .5em;
}

#headerRight {
    text-align: right;
}

#headerRight .pill {
    font-size: min(0.94vw, 12px);
    background: rgb(255 255 255 / .06);
}

#headerRight .pill span {
    color: inherit;
}


/* HERO */

/* la foto occupa un'area alta quanto la hero della index (misurata: ~78vw + 120px, max 1060px),
   così ha la stessa scala e non si sgrana; il testo più lungo prosegue sul nero */
#hero {
    position: relative;
    isolation: isolate;
}

#hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    height: min(calc(78vw + 120px), 1060px);
    background:
        linear-gradient(90deg, rgb(0 0 0 / .7), transparent 70%),
        linear-gradient(transparent 45%, black),
        url("img/hero.webp") center 30% / cover;
}

#heroText {
    width: 50%;
    padding: 30% 1% 12%;
}

/* nome dell'app: stesso aspetto dell'h1 del sito, ma qui non è il titolo della pagina */
.brand {
    margin: .3em 0 .25em;
    font-size: min(7.5vw, 96px);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.brand .appIcon {
    width: 1.2em;
    margin-right: .25em;
    vertical-align: -.2em;
}

/* badge degli store anche sopra il titolo */
.brand + .storeButtons {
    margin: min(1.88vw, 24px) 0 min(2.81vw, 36px);
}

/* la frase della ricerca, al posto dello slogan del sito */
#hero h1 {
    margin-bottom: .5em;
    font-size: min(2.35vw, 30px);
}

#hero .description {
    max-width: 90%;
}

#hero .description > * + * {
    margin-top: 1em;
}

#hero .description ul {
    padding-left: 1.2em;
}

#hero .description a {
    color: var(--textColorLight);
    font-weight: 700;
}

#hero .description a:hover {
    text-decoration: underline;
}

.siteLink {
    margin-top: 2em;
    font-size: min(1.1vw, 14px);
    color: var(--textColorSecondary);
}

.siteLink b {
    color: var(--textColor);
    white-space: nowrap;
}

.siteLink a:hover b {
    color: var(--textColorLight);
}
