/* =========================
   VARIABILI LUXURY
========================= */
:root {
    --primary: #d4af37;
    --primary-light: #f1d36b;
    --primary-dark: #b8962e;

    --dark: #0f0f1a;
    --darker: #08080f;

    --text: #eaeaf0;
    --muted: #b0b0c0;

    --glass: rgba(255,255,255,0.05);
    --border-glass: rgba(255,255,255,0.08);

    --transition: all 0.35s ease;
}

/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

/* =========================
   BACKGROUND GLOBALE
========================= */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url('/images/bg.jpg') ;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: -1;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    background: rgba(0,0,0,0.6) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    transition: 0.3s;
    margin-bottom: 0;
}

.navbar.scrolled {
    background: rgba(0,0,0,0.9) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
    color: white !important;
}

.nav-link {
    color: #ccc !important;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* =========================
   HERO
========================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 0;
    padding-top: 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(45deg, #ffffff, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .lead {
    color: #ddd;
}

/* =========================
   BOTTONI
========================= */
.btn-warning {
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    border: none;
    color: black;
    font-weight: 700;
    border-radius: 50px;
    padding: 12px 32px;
}

.btn-warning:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(212,175,55,0.5);
}

.btn-warning:active {
    transform: scale(0.95);
}

.btn-outline-dark {
    border-radius: 50px;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline-dark:hover {
    background: var(--primary);
    color: black;
}

/* =========================
   SEZIONI
========================= */
section {
 position: relative;
    margin: 80px 0; /* distanza tra sezioni */
    padding: 60px 40px; /* spazio interno + lati */
    border-radius: 20px;    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    position: relative;
}
/* su mobile meno spazio */
@media (max-width: 768px) {
    section {
        margin: 50px 0;
        padding: 40px 20px;
    }
}

section + section::before {
    content: "";
    position: absolute;

    /* POSIZIONE: metà dello spazio tra le sezioni */
    top: -40px;
    left: 50%;
    transform: translateX(-50%);

    width: 60%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #d4af37,
        #f1d36b,
        #d4af37,
        transparent
    );

    border-radius: 50px;

    box-shadow:
        0 0 10px rgba(212,175,55,0.7),
        0 0 25px rgba(212,175,55,0.5),
        0 0 40px rgba(212,175,55,0.3);

    animation: glowLine 3s infinite ease-in-out;
}

/* glow animation */
@keyframes glowLine {
    0% {
        opacity: 0.6;
        transform: translateX(-50%) scaleX(0.9);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }
    100% {
        opacity: 0.6;
        transform: translateX(-50%) scaleX(0.9);
    }
}

/* =========================
   EFFETTO GLOW EXTRA SOFT
========================= */
section + section::after {
    content: "";
    position: absolute;
    top: -44px;
    left: 50%;
    transform: translateX(-50%);

    width: 30%;
    height: 8px;

    background: radial-gradient(circle, rgba(212,175,55,0.6), transparent);
    filter: blur(10px);
    opacity: 0.7;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    font-weight: 700;
    color: white;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    margin: 12px auto;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* =========================
   CARD BASE
========================= */
.card {
    background: var(--glass);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
}

.card-title {
    color: white;
    font-weight: 700;
}

.card-text {
    color: var(--muted);
}

/* =========================
   🔥 SERVIZI POPOLARI PRO
========================= */
.pricelist-preview {
    background: rgba(0,0,0,0.55);
    border-radius: 20px;
}

.service-card {
    background: rgba(0,0,0,0.75);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(212,175,55,0.2), transparent);
    opacity: 0;
    transition: 0.5s;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
}

.service-card .card-title {
    color: white;
}

.service-card .card-text {
    color: #bbb;
}

.price {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(212,175,55,0.4);
}

/* =========================
   ABOUT
========================= */
.about-us {
    background: rgba(0,0,0,0.6);
    border-radius: 20px;
}

.about-us p {
    color: #ccc;
}

.about-us i {
    background: rgba(212,175,55,0.1);
    padding: 20px;
    border-radius: 50%;
}

.about-us i:hover {
    background: var(--primary);
    color: black !important;
    transform: scale(1.1);
}

/* =========================
   GALLERIA PRO
========================= */
.gallery-preview {
    background: rgba(0,0,0,0.55);
    border-radius: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* =========================
   FORM
========================= */
.form-control, .form-select {
    border-radius: 50px;
    padding: 12px 20px;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--border-glass);
    color: white;
}

/* =========================
   RECENSIONI
========================= */
.reviews .card {
    border-left: 3px solid var(--primary);
}

/* =========================
   FOOTER
========================= */
footer {
    background: var(--darker) !important;
    border-top: 2px solid var(--primary);
    color: #aaa;
}

/* =========================
   BACK TO TOP
========================= */
#backToTop {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

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

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

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.3rem;
    }

    section {
        padding: 3rem 0;
    }
   /* =========================
   RESPONSIVE + TOUCH FRIENDLY
========================= */

/* Immagini card fluide */
.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Galleria anteprima */
.gallery-preview .col-md-3 img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Tablet e mobile */
@media (max-width: 768px) {
    /* Riduci altezza immagini card */
    .card-img-top {
        height: 160px;
    }
    
    .gallery-preview .col-md-3 img {
        height: 140px;
    }
    
    /* Hero più compatto e senza fixed */
    .hero {
        min-height: 60vh;
        background-attachment: scroll;
        background-position: center top;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    /* Disabilita hover su mobile (fastidiosi e inutili) */
    .card:hover,
    .card:hover .card-img-top,
    .gallery-item:hover img,
    .service-card:hover {
        transform: none;
    }
    
    /* Sezioni padding ridotto */
    section {
        padding: 3rem 0;
    }
    
    /* Testi più leggibili */
    .about-us i {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    /* Pulsanti full-width su mobile? opzionale */
    .btn-warning, .btn-outline-dark {
        display: inline-block;
        width: auto;
        padding: 10px 24px;
    }
}

@media (max-width: 480px) {
    /* Telefono piccolo */
    .card-img-top {
        height: 140px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    section h2 {
        font-size: 1.6rem;
    }
}
   
}
