/* ========================================
   SILVESTRI CAR — Premium Dark Theme
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --border-card: #2a2a2a;
    --gold: #0099CC;
    --gold-hover: #00B5F0;
    --gold-glow: rgba(0, 153, 204, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --tricolore-green: #008C45;
    --tricolore-white: #F4F5F0;
    --tricolore-red: #CD212A;
    --whatsapp: #25D366;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container: 1200px;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.text-gold {
    color: var(--gold);
}

.gold-line {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 20px 0 32px;
}

.gold-line--center {
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Sections ---------- */
.section {
    padding: 100px 0;
    position: relative;
}

.section--alt {
    background-color: var(--bg-secondary);
}

.section__label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 16px;
}

.section__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}

.section__title--center {
    text-align: center;
}

.section__title--center + .gold-line {
    margin-bottom: 48px;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 1px 0 rgba(196, 160, 74, 0.1);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__logo img {
    height: 56px;
    width: auto;
    transition: height var(--transition);
}

.navbar.scrolled .navbar__logo img {
    height: 40px;
}

.navbar__menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.navbar__link {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.navbar__link:hover,
.navbar__link.active {
    color: var(--gold);
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.navbar__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
}

.navbar__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.7) 0%,
        rgba(10, 10, 10, 0.5) 50%,
        rgba(10, 10, 10, 0.9) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-weight: 400;
}

.hero__cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero__scroll span {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 16px 36px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: var(--gold);
    color: #0a0a0a;
    border-color: var(--gold);
}

.btn--primary:hover {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
    color: #0a0a0a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(196, 160, 74, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.btn--outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn--large {
    padding: 20px 48px;
    font-size: 0.9rem;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

.btn--whatsapp {
    background: var(--whatsapp);
    color: #ffffff;
    border-color: var(--whatsapp);
    width: 100%;
    justify-content: center;
    padding: 14px 28px;
    margin-top: 16px;
}

.btn--whatsapp:hover {
    background: #20bd5a;
    border-color: #20bd5a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
}

.btn--whatsapp svg {
    width: 20px;
    height: 20px;
}

.btn__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ---------- About ---------- */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about__image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.about__image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(196, 160, 74, 0.2);
    border-radius: var(--radius);
    pointer-events: none;
}

.about__image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
}

.about__content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.about__content strong {
    color: var(--text-primary);
}

/* ---------- Services ---------- */
.services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 40px 28px;
    text-align: center;
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(196, 160, 74, 0.08);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    color: var(--gold);
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.service-card__text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.services__extra {
    text-align: center;
    margin-top: 48px;
    padding: 24px;
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    background: var(--bg-card);
}

.services__extra p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.services__extra strong {
    color: var(--gold);
}

/* ---------- Vetture ---------- */
.section--vetture {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 120px 0;
}

.vetture__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(196, 160, 74, 0.05) 0%, transparent 70%),
        var(--bg-primary);
}

.vetture__content {
    position: relative;
    z-index: 1;
}

.vetture__text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 32px;
}

.vetture__badge {
    margin-bottom: 40px;
}

.badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 24px;
    border: 1px solid var(--gold);
    border-radius: 50px;
    color: var(--gold);
}

.vetture__cta {
    display: flex;
    justify-content: center;
}

/* ---------- Reviews ---------- */
.reviews-header {
    text-align: center;
    margin-bottom: 48px;
}

.reviews-score {
    margin-bottom: 12px;
}

.reviews-score__number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--gold);
}

.reviews-score__max {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
}

.reviews-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.star {
    width: 24px;
    height: 24px;
    color: var(--gold);
}

.reviews-count {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Carousel */
.carousel {
    position: relative;
    overflow: hidden;
    margin: 0 -24px;
    padding: 0 24px;
}

.carousel__track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
}

.carousel__track:active {
    cursor: grabbing;
}

.review-card {
    flex: 0 0 calc(33.333% - 16px);
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 36px;
    transition: all var(--transition);
}

.review-card:hover {
    border-color: rgba(196, 160, 74, 0.3);
}

.review-card__stars {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.review-card__text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.review-card__author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-card);
}

.review-card__name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
}

.review-card__date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 10;
}

.carousel__btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #0a0a0a;
}

.carousel__btn svg {
    width: 20px;
    height: 20px;
}

.carousel__btn--prev {
    left: 0;
}

.carousel__btn--next {
    right: 0;
}

.carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-card);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.carousel__dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 4px;
}

.reviews-cta {
    text-align: center;
    margin-top: 48px;
}

/* ---------- Sede ---------- */
.sede__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.sede__image {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-card);
}

.sede__image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform var(--transition);
}

.sede__image:hover img {
    transform: scale(1.03);
}

.sede__map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-card);
}

/* ---------- Contatti ---------- */
.contact-simple {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.btn--whatsapp-hero {
    font-size: 1rem;
    padding: 20px 56px;
    border-radius: 50px;
    box-shadow: 0 8px 40px rgba(37, 211, 102, 0.35);
}

.btn--whatsapp-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 50px rgba(37, 211, 102, 0.5);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 48px;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item__icon {
    width: 24px;
    height: 24px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item__icon svg {
    width: 100%;
    height: 100%;
}

.contact-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.contact-item a,
.contact-item span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-item a:hover {
    color: var(--gold);
}

.contact__orari {
    width: 100%;
    padding-top: 24px;
    border-top: 1px solid var(--border-card);
}

.contact__orari h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 16px;
}

.orari-table {
    width: 100%;
    border-collapse: collapse;
}

.orari-table td {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(42, 42, 42, 0.5);
}

.orari-table td:last-child {
    text-align: right;
    color: var(--text-primary);
    font-weight: 500;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-secondary);
    padding-top: 0;
}

.footer__tricolore {
    height: 3px;
    background: linear-gradient(
        to right,
        var(--tricolore-green) 0%,
        var(--tricolore-green) 33.33%,
        var(--tricolore-white) 33.33%,
        var(--tricolore-white) 66.66%,
        var(--tricolore-red) 66.66%,
        var(--tricolore-red) 100%
    );
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
    padding: 64px 24px;
}

.footer__logo {
    opacity: 0.85;
    margin-bottom: 12px;
}

.footer__tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.footer__links h4,
.footer__contact h4 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer__links ul {
    list-style: none;
}

.footer__links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
    padding: 4px 0;
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--gold);
}

.footer__contact p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer__contact a {
    color: var(--text-secondary);
}

.footer__contact a:hover {
    color: var(--gold);
}

.footer__social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.footer__social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #0a0a0a;
}

.footer__social svg {
    width: 18px;
    height: 18px;
}

.footer__bottom {
    border-top: 1px solid var(--border-card);
    padding: 20px 0;
    text-align: center;
}

.footer__bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition);
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
    color: #ffffff;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}

/* ---------- Animations ---------- */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Stagger delay for service cards */
.services .service-card:nth-child(1) { transition-delay: 0s; }
.services .service-card:nth-child(2) { transition-delay: 0.1s; }
.services .service-card:nth-child(3) { transition-delay: 0.2s; }
.services .service-card:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .services {
        grid-template-columns: repeat(2, 1fr);
    }

    .review-card {
        flex: 0 0 calc(50% - 12px);
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    /* Navbar mobile */
    .navbar__toggle {
        display: flex;
    }

    .navbar__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 4px;
        transition: right var(--transition);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    }

    .navbar__menu.open {
        right: 0;
    }

    .navbar__link {
        font-size: 0.9rem;
        padding: 12px 16px;
        display: block;
    }

    /* About */
    .about {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__image img {
        height: 350px;
    }

    /* Services */
    .services {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 28px 24px;
    }

    /* Carousel */
    .review-card {
        flex: 0 0 100%;
    }

    .carousel__btn {
        display: none;
    }

    /* Sede */
    .sede__gallery {
        grid-template-columns: 1fr;
    }

    .sede__image img {
        height: 250px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .btn--whatsapp-hero {
        padding: 18px 36px;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 24px;
    }

    /* WhatsApp */
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }

    /* Hero */
    .hero__cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        padding: 14px 28px;
        font-size: 0.8rem;
    }

    .btn--large {
        padding: 16px 32px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }

    .reviews-score__number {
        font-size: 3rem;
    }

    .section__title {
        font-size: 1.75rem;
    }
}

/* ---------- Focus Styles ---------- */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ---------- Selection ---------- */
::selection {
    background: var(--gold);
    color: #0a0a0a;
}
