@import url('parameters.css');

/* Shared */

.card-divider {
    display: flex;
    justify-content: center;
    padding: var(--display-stacks-sm) 0;
}
    .card-divider hr {
        height: 2px;
        width: 60%;
    }

/* Header */

header {
    font-family: var(--font-family-headings), sans-serif;
}

header .product-logo {
    width: 200px;
}

/* Footer */

footer {
    line-height: var(--size-24px) !important;
}
    footer address {
        color: var(--color-text-muted);
        font-size: var(--text-body-extra-small);
    }
        footer address.headquarters,
        footer a {
            font-size: var(--text-body-extra-small);
        }

/* Video */

.video-container {
    position: relative; 
    overflow: hidden;  
    height: 300px;  
    max-width: 100%;    
}
    .video-container iframe {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); /* centra il video */
        min-width: 100%;
        min-height: 100%;
    }
   
@media screen and (min-width: 1200px) {
    .video-container {
        height: 400px;
    }
}

@media screen and (min-width: 1400px) {
    .video-container {
        height: 500px;
    }
}

@media screen and (min-width: 1920px) {
    .video-container {
        height: 600px;
    }
}

/* Intro */

#intro-section {
    padding-bottom: var(--display-stacks-3xl);
}

    #intro-section img {
        max-height: 65vh;
    }

    #intro-doodles-wrapper {
        display: none;
    }

@media screen and (min-width: 992px) {
    
    #intro-image-wrapper {
        position: relative;
    }

        #intro-image-wrapper img {
            max-height: 70vh;
        }
}

/* Check-in */

#check-in-heading {
    padding-bottom: var(--display-stacks-md);
}

    /* .card-divider is at the top of this document */

    .check-in-card {
        padding: var(--display-insets-lg) 0;
    }
        .check-in-card .card-text {
            display: flex; 
            flex-direction: column;
        }
            .check-in-card .card-text * {
                margin: 0;
            }

        .check-in-card .phone-content {
            align-self: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: var(--display-stacks-md);
            border: 1px solid var(--color-border-subtle);
            border-radius: var(--corner-radius-lg);
            background-color: var(--color-background-subtle);
            padding: var(--display-insets-sm);
        }
            .check-in-card .phone-content:has(img.full-size) {
                justify-content: center;
            }
                .check-in-card .phone-content img.full-size {
                    max-height: 200px;
                }
            .check-in-card .phone-content img.logo {
                max-height: var(--check-out-logo-height);
            }

@media screen and (min-width: 992px) {
    #check-in-wrapper {
        position: relative;
        overflow: hidden;
        height: 100vh;
        overflow: visible !important;
        /* MAI p-y OPPURE m-y ALTRIMENTI SI ROMPE TUTTO */
    }
        #check-in-heading {
            position: absolute;
            top: 0;
            left: 0;
            height: 15vh;
            width: 100%;
        }

        #check-in-indicator {
            position: absolute;
            left: 0;
            top: 20vh;
            bottom: 0;
            pointer-events: none;
            height: 80vh;
            width: var(--diameter-indicator-dot);
        }
            #check-in-indicator .dot {
                display: inline-block;
                height: var(--diameter-indicator-dot);
                width: var(--diameter-indicator-dot);
                border-radius: 50%;
                background-color: var(--color-background-muted); 
            }
                #check-in-indicator .dot.active {
                    background-color: var(--color-brand-primary); 
                    /* warning: questa classe è presente ma al momento questa proprietà viene 
                    impostata nell'animazione, NON con questa classe */
                }

        .check-in-card {
            opacity: 1;
            position: absolute;
            top: 20vh;
            left: 0;
            width: 100%;
            height: 80vh;
        }
            .check-in-card .card-text {
                display: flex;
                height: 100%;
                flex-direction: column;
                justify-content: center;
            }

            .check-in-card .phone {
                align-self: center;
                max-height: 100%;
                padding: var(--display-insets-md);
            }
                .check-in-card .phone img {
                    max-width: 352px;
                    width: 100%;
                    max-height: 100%;
                    object-fit: contain;
                }
}

@media screen and (min-width: 1400px) {
    #check-in-heading {
        top: 5vh;
        height: 10vh;
    }
}

/* Check-out */

#check-out-heading {
    padding-bottom: var(--display-stacks-md);
}

    /* .card-divider is at the top of this document */

    .check-out-card {
        padding: var(--display-insets-lg) 0;
    }
        .check-out-card .card-text {
            display: flex; 
            flex-direction: column;
        }
            .check-out-card .card-text * {
                margin: 0;
            }

        .check-out-card .phone-content {
            align-self: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: var(--display-stacks-md);
            border: 1px solid var(--color-border-subtle);
            border-radius: var(--corner-radius-lg);
            background-color: var(--color-background-subtle);
            padding: var(--display-insets-sm);
        }
            .check-out-card .phone-content:has(img.full-size) {
                justify-content: center;
            }
                .check-out-card .phone-content img.full-size {
                    max-height: 200px;
                }
            .check-out-card .phone-content img.logo {
                max-height: var(--check-out-logo-height);
            }

@media screen and (min-width: 992px) {
    #check-out-wrapper {
        position: relative;
        overflow: hidden;
        height: 100vh;
        /* MAI p-y OPPURE m-y ALTRIMENTI SI ROMPE TUTTO */
    }
        #check-out-heading {
            position: absolute;
            top: 0;
            left: 0;
            height: 15vh;
            width: 100%;
        }

        #check-out-indicator {
            position: absolute;
            left: 0;
            top: 20vh;
            bottom: 0;
            height: 80vh;
            width: var(--diameter-indicator-dot);
        }
            #check-out-indicator .dot {
                display: inline-block;
                height: var(--diameter-indicator-dot);
                width: var(--diameter-indicator-dot);
                border-radius: 50%;
                background-color: var(--color-background-muted); 
            }
                #check-out-indicator .dot.active {
                    background-color: var(--color-brand-primary); 
                    /* warning: questa classe è presente ma al momento questa proprietà viene 
                    impostata nell'animazione, NON con questa classe */
                }

        .check-out-card {
            opacity: 1;
            position: absolute;
            top: 20vh;
            left: 0;
            width: 100%;
            height: 80vh;
        }
            .check-out-card .card-text {
                display: flex;
                height: 100%;
                flex-direction: column;
                justify-content: center;
            }

            .check-out-card .phone {
                align-self: center;
                max-height: 100%;
                padding: var(--display-insets-md);
            }
                .check-out-card .phone img {
                    max-width: 352px;
                    width: 100%;
                    max-height: 100%;
                    object-fit: contain;
                }
}

@media screen and (min-width: 1400px) {
    #check-out-heading {
        top: 5vh;
        height: 10vh;
    }
}

/* Features */

#features-wrapper {
    /* padding-top: var(--display-stacks-2xl); */
}

    #features-doodle {
        display: none;
    }

    .feature .row {
        gap: var(--display-stacks-sm);
        padding-bottom: var(--display-stacks-2xl);
    }

        .feature .feature-text {
            order: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: var(--display-insets-3xs);
        }

        .feature .feature-icon-container {
            order: 0;
            display: flex;
            height: 100%;
        }
            .feature .feature-icon-container div {
                display: flex;
                align-items: center;
                justify-content: start;
                flex-grow: 1;
                text-align: center !important;
            }
                .feature .feature-icon-container .feature-icon {
                    font-size: var(--icon-size-extra-large);
                    font-weight: var(--font-weight-extra-light);
                }

@media screen and (min-width: 992px) {
    
    #features-wrapper {
        position: relative;
        overflow: hidden;
        height: 80vh;
        /* MAI p-y OPPURE m-y ALTRIMENTI SI ROMPE TUTTO */
    }

        .feature {
            /* opacity: 0; */
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
        }

            .feature .row {
                gap: 0;
                padding-bottom: var(--display-stacks-2xl);
            }
            
                .feature .feature-text {
                    order: 0;
                }

                .feature .feature-icon-container {
                    order: 1;
                    min-height: 70vh;
                    padding-top: 0;
                }

                    .feature .feature-icon-container div {
                        position: relative;
                        justify-content: center;
                        padding-top: 0;
                    }
                        .feature .feature-icon-container .feature-icon {
                            font-weight: var(--font-weight-light);
                        }
            
                        .feature .feature-icon-container div img {
                            position: absolute;
                            left: 50%;
                            right: 50%;
                        }

            #features-doodle {
                display: block;
                position: absolute;
                z-index: 1;
                top: 0;
                right: 0;
                width: 100%; 
                height: 100%;
            }          
                #features-doodle-container {
                    position: relative;
                    display: flex;
                    justify-content: center; 
                    align-items: center; 
                    width: 24rem;
                    height: 27.5rem;
                    margin: -15% -25% 10% 5%;
                }
                    #features-doodle-container img {
                        position: absolute;
                        top: 0;
                        left: 0;
                        width: 100%;
                    }
}

@media screen and (min-width: 1050px) {
    #features-doodle-container {
        width: 26rem;
        margin: -15% -15% 15% 10%;
    }
}

@media screen and (min-width: 1200px) {
    #features-doodle-container {
        margin: -15% -15% 5% 10%;
    }
}

@media screen and (min-width: 1400px) {
    #features-doodle-container {
        width: 28rem; 
        margin: -25% 0 0 20%;
    }
}

/* Info */ 

.info-box {
    height: 100%; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--display-stacks-sm);  
    background-color: var(--color-background-subtle);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--corner-radius-lg);
    padding: var(--display-stacks-xl);
}  

    .info-box .info-box-foreground {
        display: flex;
        flex-direction: column;
        gap: var(--display-insets-xs);
    }
        .info-box .info-box-foreground p {
            margin: 0;
        }

    .info-box .info-box-background {
        height: 100%;
        display: flex;
        flex-direction: column;
        gap: var(--display-stacks-md);  
    }
        .info-box .info-box-background i {
            font-size: var(--icon-size-default);
            margin-bottom: var(--display-stacks-md);
        }

/* Pricing */

.pricing-box {
    border: 2px solid var(--color-border-subtle-light);
    border-radius: var(--corner-radius-lg);
    background-color: var(--color-background-subtle);
    padding: var(--display-stacks-sm);
}

    .pricing-box .pricing-box-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        gap: var(--display-stacks-xl);
        background-color: var(--color-white);
        border-radius: var(--corner-radius-lg);
        border: 2px solid var(--color-border-subtle);
        padding: var(--display-stacks-xl);
    }        
        .pricing-box .pricing-box-content * {
            font-weight: var(--font-weight-light);
            text-align: center;
        }

            .pricing-box .pricing-box-content .monthly-fee b {
                font-weight: var(--font-weight-semibold);
            }
           
            .pricing-box .pricing-box-content .key-aspects hr {
                all: unset;
                display: block;
                height: 1px;
                background-color: var(--color-border-subtle-light);
                margin: var(--display-stacks-2xs) 0 !important;
            }
            .pricing-box .pricing-box-content .key-aspects p {
                margin: 0;
            }

/* Contattaci */

#contact-us-section img {
    width: auto;
    max-height: 40vh;
}

@media screen and (min-width: 992px) {
    #contact-us-section img {
        width: 100%;
        max-height: none;
    }

    #contact-us-bottom-hr {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 100%;
    }
}
