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

body {
    background: #ffffff;
    color: #1a1a1a;
}

/* ---------------- NAVBAR ---------------- */
.navbar {
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 45px;
    background: #2f63c7;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo img {
    height: 100px;
}

.logo .subtitle {
    font-size: 12px;
    margin-top: 2px;
    color: #e4e4e4;
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

nav a:hover {
    color: #c9ddff;
}

/* ---------------- HERO ---------------- */
.hero {
    width: 100%;
    padding: 140px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #05052a;
    color: white;
    overflow: hidden;
}

/* immagine blur sotto al gradiente (hero-bg.png nella root) */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("hero-bg.png") center/cover no-repeat;
    opacity: 0.55;
    filter: blur(4px);
    transform: scale(1.05);
    z-index: 0;
}

/* overlay colore sopra l'immagine */
.overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(178, 76, 255, 0.55), transparent 60%),
        radial-gradient(circle at 80% 100%, rgba(137, 62, 255, 0.55), transparent 60%);
    opacity: 0.9;
    z-index: 1;
    pointer-events: none;
}

.hero .content {
    text-align: center;
    z-index: 2;
    max-width: 700px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 600;
}

.hero .blue {
    color: #4db8ff;
}

.hero p {
    margin-top: 20px;
    font-size: 16px;
    opacity: 0.9;
}

.buttons {
    margin-top: 40px;
}

.btn {
    padding: 12px 35px;
    background: #007bff;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    margin-right: 15px;
    font-weight: 500;
    border: 2px solid #007bff;
}

.btn-outline {
    padding: 12px 35px;
    border-radius: 25px;
    color: #007bff;
    border: 2px solid #007bff;
    text-decoration: none;
    font-weight: 500;
}

/* ---------------- ABOUT ---------------- */
.about {
    width: 100%;
    padding: 120px 80px;
    background: white;
    color: #1a1a1a;
    text-align: center;
}

.about h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 25px;
}

.about .blue {
    color: #2b62d9;
}

.subtitle-about {
    font-size: 17px;
    max-width: 900px;
    margin: 0 auto 70px auto;
    color: #555;
    line-height: 1.6;
}

.subtitle-about a {
    color: #2b62d9;
    text-decoration: none;
    font-weight: 500;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
}

.card {
    width: 30%;
    background: #fafafa;
    padding: 35px;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    position: relative;
    transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.card:hover {
    background: #2b62d9;
    color: #fff;
    transform: translateY(-4px);
}

.card:hover h3,
.card:hover h4,
.card:hover p {
    color: #fff !important;
}

.card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2b62d9;
    transition: color 0.35s ease;
}

.card h4 {
    font-size: 17px;
    margin: 10px 0 15px 0;
    transition: color 0.35s ease;
}

.card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    transition: color 0.35s ease;
}

/* ---------------- LISTINO ---------------- */
.listino {
    width: 100%;
    padding: 110px 80px;
    text-align: center;
    background: white;
}

.listino h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 25px;
}

.listino .blue {
    color: #2b62d9;
}

.listino > p {
    font-size: 17px;
    color: #555;
    margin-bottom: 60px;
}

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

/* card con sfondo hero-bg.png full (opzione A) */
.listino-card {
    width: 28%;
    height: 420px;
    border-radius: 22px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.21);
    perspective: 1000px;
    position: relative;
    overflow: hidden;
    background: #160b3b;
}

.listino-card .front,
.listino-card .back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    transition: transform 0.75s cubic-bezier(.2,.9,.2,1);
    padding: 35px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

/* front: solo titolo, più scuro */
.listino-card .front {
    z-index: 2;
    transform: rotateY(0deg);
    align-items: flex-start;
    background:
        linear-gradient(180deg, rgba(10,10,60,0.6), rgba(10,10,30,0.95)),
        url("hero-bg.png") center/cover no-repeat;
}

/* back: testo + prezzo */
.listino-card .back {
    transform: rotateY(-180deg);
    background:
        linear-gradient(180deg, rgba(25,0,80,0.85), rgba(10,10,30,0.98)),
        url("hero-bg.png") center/cover no-repeat;
}

.listino-card:hover .front {
    transform: rotateY(180deg);
}

.listino-card:hover .back {
    transform: rotateY(0deg);
}

.listino-card h3 {
    font-size: 23px;
    font-weight: 600;
    margin-bottom: 12px;
}

.listino-card .price {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 15px;
    opacity: 0.95;
}

.listino-card p {
    font-size: 15px;
    line-height: 1.55;
}

.fine {
    margin-top: 40px;
    font-size: 13px;
    color: #444;
}

/* ---------------- CONTATTI ---------------- */
.contatti-section {
    width: 100%;
    padding: 90px 20px 70px;
    text-align: center;
    background: #ffffff;
}

.contatti-title {
    font-size: 28px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 40px;
}

.contatti-title span {
    font-style: italic;
    font-weight: 400;
}

.contatti-box {
    max-width: 1050px;
    margin: auto;
    padding: 45px 50px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.12);
    display: flex;
    justify-content: space-between;
    gap: 35px;
}

.contatti-item {
    flex: 1;
    text-align: left;
}

.contatti-item h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.contatti-item p {
    line-height: 1.55;
    font-size: 14px;
    color: #444;
}

.contatti-item a {
    color: #2b62d9;
    text-decoration: none;
}

.icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e7e9ff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.icon svg {
    width: 20px;
    height: 20px;
    fill: #5a63d8;
    transition: fill 0.25s ease;
}

/* hover icone blu */
.contatti-item:hover .icon {
    background: #2b62d9;
    transform: scale(1.12);
}

.contatti-item:hover .icon svg {
    fill: #ffffff;
}

/* ---------------- FOOTER ---------------- */
.site-footer {
    background: #1c1c1c;
    padding: 80px 20px;
    margin-top: 80px;
    color: #dcdcdc;
}

.footer-center {
    max-width: 650px;
    margin: auto;
    text-align: center;
}

.footer-logo {
    font-size: 32px;
    font-weight: 600;
    color: #2b62d9;
    margin-bottom: 18px;
    font-style: italic;
}

.footer-social {
    margin-bottom: 18px;
}

.footer-social-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.footer-social-circle svg {
    width: 20px;
    height: 20px;
    fill: #dcdcdc;
    transition: fill 0.25s ease;
}

/* hover cerchio insta */
.footer-social-circle:hover {
    border-color: #2b62d9;
    transform: scale(1.08);
}

.footer-social-circle:hover svg {
    fill: #2b62d9;
}

.footer-text {
    font-size: 13px;
    margin: 4px 0;
}

.footer-separator {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 25px 0;
}

.footer-legal {
    font-size: 11px;
    line-height: 1.55;
    color: #b5b5b5;
}

/* ---------------- ANIMAZIONI ---------------- */
.fade-in,
.slide-up,
.reveal,
.reveal-child {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.delay-1 { transition-delay: 0.18s; }
.delay-2 { transition-delay: 0.33s; }
.delay-3 { transition-delay: 0.48s; }
.delay-4 { transition-delay: 0.66s; }
.delay-5 { transition-delay: 0.84s; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {
    .cards {
        flex-direction: column;
    }

    .card,
    .listino-card {
        width: 100%;
        height: auto;
    }

    .hero {
        padding: 100px 30px;
    }

    .listino-cards {
        flex-direction: column;
    }

    .contatti-box {
        flex-direction: column;
        text-align: center;
    }

    .contatti-item {
        text-align: center;
    }
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

/* MOBILE */
@media (max-width: 768px) {

    .hamburger {
        display: block;
    }

    nav {
        position: absolute;
        top: 70px;
        right: 0;
        background: #2f63c7;
        width: 100%;
        display: none;
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }

    nav a {
        padding: 15px;
        display: block;
        font-size: 18px;
    }

    nav.active {
        display: flex;
    }
} 
/* ===== FIX LISTINO MOBILE ===== */
@media (max-width: 768px) {

    .listino-card {
        height: auto;
        perspective: none;
    }

    .listino-card .front {
        display: none;
    }

    .listino-card .back {
        position: relative;
        transform: rotateY(0deg);
        backface-visibility: visible;
    }
}

.fade-in,
.slide-up,
.reveal {
    opacity: 1 !important;
}
