@import url(common.css);

/* ===== HEADER INFO SECTION ===== */
.header-info {
    position: relative;
    z-index: 10;
    margin-top: -40px;
    background-image: url("imgs/background_header.webp");
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 400px;
    height: auto;
    padding: 0px 0;
    box-shadow: 0px -5px 15px rgba(0,0,0,0.2);
    border-radius: 20px;
}

.header-info-container {
    margin: 20px;
    display: flex;
    gap: 30px;
    height: 100%;
    flex-wrap: wrap;
}

.header-info-container-text {
    text-align: center;
    color: white;
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.header-info-container-text p {
    margin: 0px 0;
    line-height: 1.5;
    font-size: 1.5vh;
}

.header-info-container-text .big-text {
    font-size: 5vh;
    font-weight: bold;
}

.header-info-container-text .medium-text {
    font-size: 3.5vh;
    font-weight: bold;
}

.header-info-container-text p span {
    font-weight: bold;
    color: var(--main-primary-color);
}

.header-info-container-image {
    flex: 1 1 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

.header-info-container-image img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.header-info-button {
    background-color: rgba(0,0,0,0.3);
    padding: 12px 20px;
    border-radius: 30px;
    width: fit-content;
    margin: 0 auto 20px auto;
    border: 1px solid rgba(255,255,255,0.2);
}

/* ===== HERO CTA SECTION ===== */
.hero-cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.btn-yellow {
    background-color: var(--main-primary-color);
    color: #333;
    padding: 12px 25px;
    border-radius: 30px;
    border: 2px solid var(--second-primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 2vh;
    box-shadow: 0 0 15px rgba(232, 180, 62, 0.4); 
    transition: transform 0.2s;
    text-align: center;
}

.btn-outline {
    background-color: transparent;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 2vh;
    border: 2px solid white;
    text-align: center;
}

.btn-yellow:hover, .btn-outline:hover {
    transform: scale(1.05);
}

.hero-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 600px; 
}

.step-pill {
    background-color: rgba(0, 0, 0, 0.3);
    color: #ddd;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap; 
}

.step-number {
    color: var(--main-primary-color);
    border: 1px solid var(--main-primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* ===== COME FUNZIONA SECTION ===== */
.how-does-it-works {
    text-align: center;
    padding: 0px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.how-does-it-works h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 40px;
    position: relative;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.how-item {
    display: flex;
    flex-direction: column;
}

.how-image {
    width: 100%;
    margin-bottom: 20px;
}

.how-image img {
    width: 70%;
    min-height: 370px;
    object-fit: contain;
    padding: 10px;
}

.how-text-card {
    background: white;
    padding: 25px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    flex: 1;
}

.how-text-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.how-text-card span {
    font-size: 18px;
    color: black;
    margin-bottom: 15px;
    font-weight: bold;
}

.how-text-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.how-text-card img {
    width: auto;
    height: 60px;
}

/* ===== WHAT WILL YOU LOVE SECTION ===== */
.what-will-you-love {
    text-align: center;
}

.what-will-you-love-grid {
    display: grid;
    border-radius: 8px;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    background: whitesmoke;
    width: 80%;
    margin: auto;
}

.what-will-you-love-div {
    background: white;
    padding: 40px 20px;
    text-align: center;
    width: 80%;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-height: 280px;
}

.what-will-you-love-div h3 {
    color: var(--main-primary-color);
}

.what-will-you-love img {
    height: auto;
    width: 80px;
}

/* ===== WHY CHOOSE SECTION ===== */
.section-name {
    font-size: 6vh;
    padding: 15px;
}

.why-choose-div {
    display: flex;
    width: 80%;
    gap: 40px;
    margin: 50px auto;
    text-align: left;
}

.why-choose-div-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    text-align: center;
}

.why-choose-div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.why-choose-div-text {
    flex: 1;
    justify-content: space-between;
}

.why-choose-div-text h4 {
    font-size: 4vh;
    margin: 0 0 30px 0;
    color: var(--main-primary-color);
}

.stack-card {
    width: 80%;
    color: white;
    margin: 40px auto;
    text-align: center;
    border-radius: 10px;
    padding: 50px 30px;
}

.stack-card button {
    all: unset;
    padding: 10px 20px 10px 20px;
    background-color: white;
    cursor: pointer;
    color: var(--main-primary-color);
    border-radius: 6px;
}

.stack-card a {
    color: white;
}

.benefit-item {
    display: flex;            
    align-items: center;       
    gap: 15px;                 
    margin-bottom: 20px;       
}

.benefit-item i {
    color: rgba(255, 212, 59, 1);
    font-size: 24px;           
    flex-shrink: 0;            
}

.benefit-item p {
    margin: 0;                 
    line-height: 1.4;          
}

.intro-text {
    margin-bottom: 30px;
    font-style: italic;
}

/* ===== MEDIA QUERIES ===== */

@media screen and (max-width: 1100px) and (min-width: 601px) {
    .header-btn {
        padding: 8px 10px;
        font-size: 13px; 
    }

    .nav-buttons {
        gap: 5px; 
    }

    .inside-nav img {
        height: 100px;
    }
}

@media screen and (max-width: 992px) {
    .how-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media screen and (max-width: 900px) {
    .why-choose-div {
        flex-direction: column;
        width: 95%; 
        align-items: center; 
        text-align: center;
        gap: 30px;
    }

    .why-choose-div-image, 
    .why-choose-div-text {
        width: 100%; 
        flex: none; 
    }

    .why-choose-div:nth-of-type(even) {
        flex-direction: column-reverse; 
    }

    .why-choose-div-text {
        display: flex;
        flex-direction: column;
        align-items: center; 
        text-align: center;
        padding-left: 0;
    }

    .why-choose-div-text h4, 
    .intro-text {
        padding-left: 0;
        margin-left: 0;
    }

    .benefit-item {
        margin-left: 0;
        width: 100%;
        max-width: 500px;    
        justify-content: flex-start; 
        align-items: flex-start;     
        text-align: left;            
        padding: 0 20px;             
        box-sizing: border-box;
    }

    .benefit-item p {
        margin: 0;
        text-align: left; 
    }
}

@media screen and (max-width: 768px) {
    .header-info-container {
        flex-direction: column;
    }
    
    .header-info-container-image img {
        max-height: 300px;
    }
    
    .inside-nav {
        justify-content: space-between;
    }
    
    .nav-buttons {
        gap: 10px;
        margin: auto;
    }
    
    .header-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-yellow, .btn-outline {
        width: 80%; 
    }
    
    .hero-steps {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 600px) {
    .what-will-you-love-grid {
        grid-template-columns: 1fr;
    }

    .header-info {
        margin-top: -40px;
    }
    
    .header-info-container {
        margin: 10px;
        gap: 15px;
    }
    
    .header-info-container-text {
        padding: 15px;
    }
    
    .header-info-container-image {
        padding: 10px;
    }
    
    .header-info-container-image img {
        max-height: 250px;
    }
    
    .header-info-button {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .how-does-it-works {
        padding: 0px 15px;
    }
    
    .how-does-it-works h2 {
        font-size: 28px;
    }
    
    .how-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .how-text-card {
        padding: 20px 15px;
    }
}

@media screen and (max-width: 380px) {
    .header-info-container-image img {
        max-height: 200px;
    }
    
    .how-text-card h3 {
        font-size: 20px;
    }
    
    .how-text-card p {
        font-size: 14px;
    }
}