/* Stelle Cadenti
   Contenuto max 1280px. Sotto i 1280px si stringe tutto:
   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;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: min(7.5vw, 96px);
}

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, h2, h3 {
    line-height: 1.1;
}


/* ROW */

.row {
    padding:10px;

}

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

.row-cell {
    font-size:min(1.41vw, 18px);
    /*float:left;*/ /*non mettere altrimenti si sfasano i box*/
    display:inline-block;

    vertical-align:top;
    margin:10px 0;
    padding:0 10px;
    position:relative;
	width:100%;

}

.row {
    font-size:0px;
    padding: 0;
}

.row-content {

}

.row-cell {
    margin:0;
    padding:0;
}


/* COMUNI */

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

.label {
    font-size: min(0.94vw, 12px);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--textColorSecondary);
}

.appIcon {
    border-radius: 22%;
}

.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;
}

.button {
    display: inline-block;
    vertical-align: middle;
    margin-right: .75em;
    padding: 0 1.5em;
    border-radius: 999px;
    background: white;
    color: black;
    font-size: min(1.25vw, 16px);
    font-weight: 700;
    line-height: 3em;
}

.button.glass {
    color: var(--textColor);
}

/* Badge ufficiali: altezza fissa (Apple: minimo 40px a schermo).
   Spazio libero: Apple e Google 1/4 dell'altezza (12px), Alexa metà dell'icona (~20px) */
.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;
}

.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);
}

.storeButtons {
    margin-top: min(2.81vw, 36px);
    font-size: 0;
}


/* 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: 33.333%;
    vertical-align: middle;
    line-height: min(4.38vw, 56px);
}

#brand {
    font-weight: 700;
}

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

#menu {
    text-align: center;
}

#menu a {
    margin: 0 .8em;
}

#menu a:hover {
    color: var(--textColorLight);
}

#headerRight {
    text-align: right;
}

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

#headerRight .button {
    margin: 0 0 0 .8em;
    padding: 0 1.2em;
    font-size: min(1.1vw, 14px);
    line-height: 2.4em;
}


/* HERO */

#panoramica {
    background:
        linear-gradient(90deg, rgb(0 0 0 / .7), transparent 70%),
        linear-gradient(transparent 45%, black),
        url("img/hero.jpg") center 30% / cover;
}

#panoramica .row-cell {
    width: 50%;
    padding: 30% 1% 12%;
    vertical-align: bottom;
}

#panoramica h1 {
    margin: .3em 0 .25em;
    font-size: min(7.5vw, 96px);
    line-height: 1;
    white-space: nowrap;
}

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

.headline {
    margin-bottom: .5em;
    font-size: min(2.35vw, 30px);
    font-weight: 700;
    line-height: 1.2;
}

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

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

#heroShower {
    display: none;
    text-align: right;
}

#nextShower {
    display: inline-block;
    width: 60%;
    padding: 1.5em;
    border-radius: min(2.5vw, 32px);
    text-align: left;
}

#nextShower .label {
    color: var(--textColorLight);
}

#nextShower h2 {
    margin: .3em 0 .15em;
    font-size: min(3.13vw, 40px);
}

#nextShower .date {
    font-size: min(1.1vw, 14px);
    color: var(--textColorSecondary);
}

.countdown {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: .6em;
    margin: 1.2em 0;
    text-align: center;
}

.countdown p {
    padding: .6em 0;
    border-radius: min(1.25vw, 16px);
    background: rgb(255 255 255 / .07);
    border: 1px solid rgb(255 255 255 / .1);
    font-size: min(0.94vw, 12px);
    text-transform: uppercase;
    color: var(--textColorSecondary);
}

.countdown b {
    display: block;
    font-size: min(2.35vw, 30px);
    line-height: 1.2;
    color: var(--textColor);
}

.facts {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding-top: 1em;
    border-top: 1px solid rgb(255 255 255 / .1);
    font-size: min(0.94vw, 12px);
    color: var(--textColorSecondary);
}

.facts b {
    display: block;
    font-size: min(1.25vw, 16px);
    color: var(--textColor);
}

.facts p:nth-child(2) {
    text-align: center;
}

.facts p:last-child {
    text-align: right;
}


/* FUNZIONI */

#funzioni {
    background:
        radial-gradient(40% 30% at 10% 50%, rgb(255 110 30 / .2), transparent),
        radial-gradient(45% 35% at 95% 75%, rgb(60 90 255 / .2), transparent),
        url("img/stars.svg") center / cover;
}

#funzioniTitle {
    padding: 10.6% 1% 7%;
    text-align: center;
}

#funzioniTitle .eyebrow {
    color: var(--textColorLight);
}

#funzioniTitle h2 {
    margin: .2em 0;
    font-size: min(7.5vw, 96px);
    letter-spacing: -.03em;
}

#funzioniTitle .description {
    max-width: 56%;
    margin: 0 auto;
    font-size: min(1.72vw, 22px);
    color: var(--textColorSecondary);
}

/* le tre card affiancate, allineate in basso */
#features {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 2%;
    align-items: end;
    padding: 0 1% 12.5%;
}

.feature {
    position: relative;
    overflow: hidden;
    aspect-ratio: 400 / 760;
    padding: 9% 8.5% 0;
    border-radius: min(2.81vw, 36px);
}

#featureRaised {
    aspect-ratio: 400 / 820;
}

.feature h3 {
    margin: .3em 0 .4em;
    font-size: min(2.5vw, 32px);
}

.feature .description {
    font-size: min(1.25vw, 16px);
}

/* iPhone: cornice 740×1500, schermo x34 y24 w672 h1452 */
.phone {
    position: absolute;
    left: 13.5%;
    bottom: -16%;
    width: 73%;
}

.phone .screen,
.phone .statusBar {
    position: absolute;
    left: 4.6%;
    top: 1.6%;
    width: 90.8%;
}

.phone .screen {
    height: 96.8%;
    object-fit: contain;
    background: black;
    border-radius: 14.6% / 6.8%;
}

.phone .frame {
    position: relative;
}


/* SCIENZA */

#scienza .row-cell {
    padding: 0 1%;
}

#scienza h2 {
    padding: 3% 0 5%;
    font-size: min(5vw, 64px);
    letter-spacing: -.03em;
}

#scienza h2 span {
    display: block;
    color: var(--textColorSecondary);
}

.tiles {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: min(1.88vw, 24px);
    padding-bottom: 8.6%;
}

.tile {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    padding: 1.6em;
    border-radius: min(2.5vw, 32px);
}

.tile h3 {
    margin: .3em 0 .4em;
    font-size: min(2.35vw, 30px);
}

.tile .description {
    font-size: min(1.25vw, 16px);
    color: var(--textColorSecondary);
}

.number {
    margin: .15em 0 .2em;
    font-size: min(7.5vw, 96px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.04em;
}

.number small {
    font-size: .3em;
    letter-spacing: 0;
}

#tileMap {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

#tileMap h3 {
    font-size: min(3.13vw, 40px);
}

#tileMap .description {
    max-width: 75%;
}

#tileMap img {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 65%;
    object-fit: cover;
    object-position: 50% 24%;
    -webkit-mask-image: radial-gradient(70% 90% at 50% 70%, black 45%, transparent 80%);
    mask-image: radial-gradient(70% 90% at 50% 70%, black 45%, transparent 80%);
}

#alexa {
    grid-column: span 2;
    aspect-ratio: auto;
}

#alexa .description {
    max-width: 55%;
}

#alexa img {
    width: 55%;
    margin-top: 1.2em;
}

#alexa::after {
    content: "";
    position: absolute;
    right: 7%;
    top: 50%;
    width: 28%;
    aspect-ratio: 1;
    translate: 0 -50%;
    border-radius: 50%;
    border: min(0.94vw, 12px) solid #31c4f3;
    box-shadow: 0 0 60px rgb(49 196 243 / .6), inset 0 0 40px rgb(49 196 243 / .45);
}


/* MAGNITUDINE ASSOLUTA */

#magnitudineAssoluta {
    padding: min(16.41vw, 210px) 0;
    background:
        linear-gradient(black, transparent 25%, transparent 70%, black),
        url("img/partner.jpg") center 40% / cover;
}

#magnitudineAssoluta .row-content {
    width: 73.5%;
    border-radius: min(2.5vw, 32px);
    background: linear-gradient(rgb(0 0 0 / .35), rgb(0 0 0 / .55));
}

#magnitudineAssoluta .row-cell {
    padding: 4%;
    vertical-align: middle;
}

#partnerLogo {
    width: 30%;
    text-align: center;
}

#partnerLogo img {
    width: 80%;
}

#partnerText {
    width: 70%;
}

#partnerText h2 {
    margin: .3em 0 .5em;
    font-size: min(3.13vw, 40px);
    white-space: nowrap;
}

#partnerText .description {
    font-size: min(1.25vw, 16px);
    color: var(--textColorSecondary);
}

#partnerText h2 small {
    display: block;
    margin-top: .3em;
    font-size: .42em;
    font-weight: 400;
    color: var(--textColorSecondary);
}

#partnerText b {
    color: var(--textColor);
}

.tags {
    margin: 1em 0;
}

.tags a {
    display: inline-block;
    margin-right: .6em;
    padding: .5em 1em;
    border-radius: 999px;
    background: rgb(255 255 255 / .08);
    border: 1px solid rgb(255 255 255 / .14);
    font-size: min(1.1vw, 14px);
    font-weight: 700;
}

#partnerText > a {
    font-weight: 700;
    color: var(--textColorLight);
}


/* SCARICA */

#scarica {
    background:
        radial-gradient(30% 25% at 50% 30%, rgb(255 110 30 / .18), transparent),
        url("img/stars.svg") center / cover;
}

#scarica .row-cell {
    padding: 13.3% 1% 11.7%;
    text-align: center;
}

#scarica .appIcon {
    width: 12%;
    box-shadow: 0 0 120px rgb(255 120 40 / .35);
}

#scarica h2 {
    margin: .7em 0 .3em;
    font-size: min(5vw, 64px);
    letter-spacing: -.03em;
}

#scarica .description {
    font-size: min(1.72vw, 22px);
    color: var(--textColorSecondary);
}

#scarica .storeButtons a {
    margin: 0 12px;
}


/* FOOTER */

#footer {
    border-top: 1px solid rgb(255 255 255 / .1);
}

#footerBrand {
    padding: 3% 1%;
    text-align: center;
    font-weight: 700;
}

#footerBrand img {
    width: min(2.81vw, 36px);
    margin-right: .5em;
}

#footerBrand .separator {
    margin: 0 1em;
    font-size: min(1.1vw, 14px);
    font-weight: 400;
    color: var(--textColorSecondary);
}

/* "Immaginata, disegnata e sviluppata da…": sotto i badge della hero e nel footer */
.credits {
    font-size: min(1.1vw, 14px);
    color: var(--textColorSecondary);
}

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

#heroCredits {
    margin-top: 2em;
}

#credits {
    padding: 0 1% 3%;
    text-align: center;
}

/* link alle landing page: in fila, poco visibili */
#landingLinks {
    padding: 0 1% 3%;
    text-align: center;
    font-size: min(0.94vw, 12px);
    color: rgb(235 235 245 / .3);
}

#landingLinks a {
    white-space: nowrap;
}

#landingLinks a + a::before {
    content: "·";
    margin: 0 .6em;
}

#landingLinks a:hover {
    color: var(--textColorSecondary);
}

/* note legali staccate da una riga, come il bordo superiore del footer */
#legal {
    padding: 2% 1% 3%;
    border-top: 1px solid rgb(255 255 255 / .1);
    text-align: center;
    font-size: min(0.94vw, 12px);
    color: var(--textColorSecondary);
}
