@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #0a0a0a;
    color: white;
    text-align: center;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

.nav-links a.active {
    color: #00bfff;
    text-shadow: 0 0 10px #00bfff;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === NAVBAR PRINCIPALE === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 191, 255, 0.2);
}

.nav-logo {
    font-weight: 700;
    font-size: 1.4rem;
    color: #00bfff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #00bfff;
}

/* === BURGER MENU ICON === */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.burger div {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* === NAVBAR MOBILE SECONDARIA === */
.mobile-nav {
    position: fixed;
    top: 65px; /* subito sotto la navbar principale */
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -1px 12px rgba(0, 191, 255, 0.3), 0 2px 10px rgba(0, 191, 255, 0.15);
    border-top: 2px solid #00bfff; /* glow sottile */
    display: none;
    flex-direction: column;
    align-items: center;
    z-index: 900;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}

.mobile-nav.show {
    display: flex;
    max-height: 260px;
}

.mobile-nav ul {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mobile-nav a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: #00bfff;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* nasconde la navbar desktop */
    }

    .burger {
        display: flex;
        z-index: 1100;
    }

    /* Animazione burger → X */
    .burger.toggle div:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger.toggle div:nth-child(2) {
        opacity: 0;
    }

    .burger.toggle div:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}


/* LOGO */
.header {
    padding-top: 100px;
    background-color: #000000;
}

@keyframes glow {

    0%,
    100% {
        filter: drop-shadow(0 0 15px #00bfff);
    }

    50% {
        filter: drop-shadow(0 0 40px #00bfff);
    }
}

/* HERO */
.hero {
    height: 100vh;
    background: url("../img/hero.avif") center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 30vh;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

/* effetto overlay per migliorare la leggibilità */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    /* puoi aumentare se l'immagine è chiara */
    z-index: 1;
}

/* testo sopra l’immagine */
.hero-content {
    text-align: center;
    z-index: 2;
    transform: translateY(60px);
    transition: all 1.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content span {
    color: #00bfff;
    text-shadow: 0 0 25px #00bfff;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.btn {
    background: #00bfff;
    color: #000;
    padding: 14px 34px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
}

.services-stack {
    display: flex;
    flex-direction: column;
}

/* blocchi base (desktop default) */
.service-block {
    height: 100vh;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #fff;
    overflow: hidden;
    padding-right: 8vw;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.service-block.biolink {
    background-image: url("../img/sara.avif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-block.landing {
    background-image: url("../img/tito.avif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-block::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    transition: background 0.6s ease;
    z-index: 1;
}

.service-block:hover::after {
    background: rgba(0, 0, 0, 0.25);
}


.service-block h3 {
    font-size: 3rem;
    text-shadow: 0 0 25px rgba(0, 191, 255, 0.6);
}

.service-block p {
    margin-top: 15px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Delay progressivo tra le sezioni per effetto "cinematic" */
.service-block:nth-child(1) .content {
    transition-delay: 0.2s;
}

.service-block:nth-child(2) .content {
    transition-delay: 0.4s;
}

/* --- ANIMAZIONE TESTI SERVICE --- */
.service-block .content {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.service-block.active .content {
    opacity: 1;
    transform: translateY(0);
}

/* (opzionale) ritardo leggero per effetto cinematografico */
.service-block:nth-child(1) .content {
    transition-delay: 0.2s;
}

.service-block:nth-child(2) .content {
    transition-delay: 0.4s;
}
/* === MOBILE: affiancati fissi (50% / 50%) === */
@media (max-width: 900px) {

    .hero {
            height: 50vh;
            margin-top: 100px;
            background: url("../img/hero.avif") center/cover no-repeat;
            position: relative;
            display: flex;
            align-items: flex-s;
            justify-content: center;
            padding-bottom: 11vh;
            text-align: center;
            color: #fff;
            overflow: hidden;
        }
        .hero-content h1 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 20px;
            line-height: 1.2;
        }
    
        .hero-content span {
            color: #00bfff;
            text-shadow: 0 0 25px #00bfff;
        }
    
        .hero-content p {
            font-size: 0.7rem;
            opacity: 0.9;
            margin-bottom: 40px;
        }

    .services-stack {
        height: 100vh;
    }

    .service-block {
        flex: 1;
        height: 100%;
        padding: 0;
        justify-content: center;
        align-items: flex-end;
        background-size: cover;
        background-position: center;
    }

    .service-block .content {
        text-align: center;
        padding-bottom: 40px;
    }

    .service-block h3 {
        font-size: 2.5rem;
        color: #00bfff;
            text-shadow: 0 0 25px #00bfff;
    }

    .service-block p {
        font-size: 1.1rem;
    }
}

/* === AUTO ILLUMINAZIONE SU SCROLL === */
.service-block {
    position: relative;
    transition: filter 1.2s ease, transform 1.2s ease;
}

/* Quando il blocco entra in vista */
.service-block.active::after {
    background: rgba(0, 0, 0, 0.25) !important;
}

.service-block.active {
    filter: brightness(1.2);
    transform: scale(1.02);
}

.service-block.active h3,
.service-block.active p {
    text-shadow: 0 0 25px rgba(0, 191, 255, 0.6);
    transition: text-shadow 1s ease;
}

/* --- TEMPLATE SHOWCASE --- */
.templates {
    background: #fff;
    padding: 80px 0;
    text-align: center;
    color: #000;
    overflow: hidden;
}

.templates h2 {
    font-size: 2.6rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-weight: 700;
}

.templates p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 50px;
}

.templates-strip {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.templates-track {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 80px;
    padding: 40px 0;
}

body,
html {
    overflow-x: hidden;
}
/* --- TEMPLATE CARD --- */
.templates-track img {
    flex: 0 0 auto;
    width: 260px;
    height: 480px;
    padding: 12px;
    display: block;
}

/* --- BOTTONE --- */
.btn-view-all {
    display: inline-block;
    margin-top: 30px;
    background: linear-gradient(90deg, #00bfff, #0078ff);
    color: #fff;
    padding: 14px 38px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: linear-gradient(90deg, #0078ff, #00bfff);
    transform: translateY(-3px);
}

/* --- Responsive (mobile: immagini più piccole) --- */
@media (max-width: 900px) {
    .templates-track {
        gap: 0;
    }

    .templates-track img {
        width: 145px;
        height: 264px;
    }

    .templates h2 {
        font-size: 2rem;
    }

    .templates p {
        font-size: 0.95rem;
        margin-bottom: 40px;
    }
}

/* --- PRICING SECTION --- */
.pricing {
    background: #0a0a0a;
    padding: 100px 20px;
    color: #fff;
    text-align: center;
}

.pricing h2 {
    font-size: 2.4rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.pricing .subtitle {
    font-size: 1rem;
    color: #bbb;
    margin-bottom: 60px;
    max-width: 700px;
    margin-inline: auto;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 35px;
}

.price-card {
    background: #121212;
    border-radius: 16px;
    width: 310px;
    padding: 35px 25px;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.15);
    border: 1px solid rgba(0, 191, 255, 0.1);
    transition: background 0.4s, box-shadow 0.4s, color 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.price-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #fff;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #00bfff;
}

.price-card ul {
    list-style: none;
    padding: 0;
}

.price-card ul li {
    color: #ccc;
    font-size: 0.95rem;
    margin: 8px 0;
    transition: color 0.4s;
}

.price-card ul li strong {
    color: #00bfff;
    transition: color 0.4s;
}

/* --- HOVER EFFECT --- */
.price-card:hover {
    background: linear-gradient(160deg, #0077ff, #00bfff);
    box-shadow: 0 0 35px rgba(0, 191, 255, 0.5);
}

.price-card:hover h3,
.price-card:hover ul li,
.price-card:hover ul li strong {
    color: #fff;
}

.price-card:hover .price {
    color: #000000;
    /* azzurro chiarissimo leggibile */
}

/* --- BUTTON --- */
.btn.small {
    font-size: 0.85rem;
    padding: 10px 18px;
    background-color: #00bfff;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.btn.small:hover {
    background-color: #0099ff;
}

/* --- CONTACT SECTION --- */
.contact {
    background: #0a0a0a;
    padding: 50px 20px;
    color: #fff;
    text-align: center;
}

.contact h2 {
    font-size: 2.4rem;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.contact p {
    color: #bdbdbd;
    margin-bottom: 45px;
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-bottom: 45px;
}

.social-link {
    color: #00bfff;
    font-size: 2rem;
    transition: 0.3s ease;
}

.social-link:hover {
    color: #fff;
    text-shadow: 0 0 15px #00bfff;
}

/* FORM CONTAINER */
.contact-form {
    max-width: 550px;
    margin: 0 auto;
    text-align: left;
    background: #111;
    padding: 40px 35px;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0, 191, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 0 35px rgba(0, 191, 255, 0.15);
}

/* INPUTS */
.form-group {
    margin-bottom: 22px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #00bfff;
    font-weight: 600;
    font-size: 0.95rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

input::placeholder,
textarea::placeholder {
    color: #888;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #00bfff;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
    background: #121212;
}

/* BUTTON */
.submit-btn {
    width: 100%;
    font-size: 1rem;
    padding: 14px;
    background: linear-gradient(90deg, #00bfff, #0099ff);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s ease;
    font-weight: 600;
}

.submit-btn:hover {
    background: linear-gradient(90deg, #0099ff, #00bfff);
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
    transform: translateY(-2px);
}

/* ERROR + STATUS MESSAGES */
.error-msg {
    color: #ff4b4b;
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
}

#form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

/* --- PRIVACY CHECKBOX --- */
.form-group.checkbox {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 15px;
}

.privacy-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #ccc;
    font-size: 0.95rem;
    user-select: none;
    transition: color 0.3s ease;
}

.privacy-label:hover {
    color: #fff;
}

.privacy-label a {
    color: #00bfff;
    font-weight: 600;
    text-decoration: none;
}

.privacy-label a:hover {
    text-decoration: underline;
}

/* Nasconde il checkbox originale */
.privacy-label input[type="checkbox"] {
    display: none;
}

/* Checkmark personalizzato */
.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #00bfff;
    border-radius: 5px;
    position: relative;
    transition: all 0.3s ease;
}

/* Glow effetto */
.privacy-label input[type="checkbox"]:not(:checked)+.checkmark {
    box-shadow: 0 0 5px rgba(0, 191, 255, 0.2);
}

/* Quando cliccato */
.privacy-label input[type="checkbox"]:checked+.checkmark {
    background-color: #00bfff;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.6);
}

/* Spunta ✔ animata */
.privacy-label input[type="checkbox"]:checked+.checkmark::after {
    content: '✔';
    color: #fff;
    font-size: 13px;
    position: absolute;
    top: 0px;
    left: 3px;
    opacity: 0;
    animation: checkmark-appear 0.25s forwards ease-out;
}

/* Animazione spunta */
@keyframes checkmark-appear {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Messaggio errore sotto */
.form-group.checkbox .error-msg {
    margin-left: 30px;
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    .contact {
        padding: 70px 15px;
    }

    .contact-form {
        padding: 30px 25px;
    }
}

/* --- FOOTER --- */
.footer {
    background: #080808;
    color: #ccc;
    padding: 60px 20px 30px;
    font-size: 0.95rem;
    text-align: center;
    border-top: 1px solid rgba(0, 191, 255, 0.15);
}

.footer-container {
    max-width: 800px;
    margin: 0 auto 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-title {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.footer-desc {
    color: #bdbdbd;
    max-width: 600px;
    line-height: 1.6;
}

.footer-privacy {
    color: #00bfff;
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
    transition: 0.3s;
}

.footer-privacy:hover {
    color: #fff;
    text-shadow: 0 0 10px #00bfff;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 10px 0 0;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #00bfff;
    text-shadow: 0 0 8px #00bfff;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
}

.footer-socials a {
    color: #00bfff;
    font-size: 1.7rem;
    transition: 0.3s;
}

.footer-socials a:hover {
    color: #fff;
    text-shadow: 0 0 12px #00bfff;
}

.footer-bottom {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 191, 255, 0.1);
    padding-top: 20px;
}

.footer-legal {
    margin-top: 10px;
    text-align: center;
}

.footer-legal a {
    color: #00bfff !important;
    margin: 0 8px;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.3s ease;
}

.footer-legal a:hover {
    color: #66d9ff !important;
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.6);
}

body {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

body.loaded {
    opacity: 1;
}

/* FIX MOBILE STRETTO (0–420px) */
@media (max-width: 420px) {
    .templates {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .templates-track img {
        width: 120px !important;
        height: auto !important;
    }

    content p{
        width: 90% !important;
    }
}
