/* ==========================================================================
   CSS DI SAEL DI GIULIETTI NICOLA
   Design System Premium, High-Tech, Responsive
   ========================================================================== */

/* Variables & Design Tokens */
:root {
    /* Color Palette */
    --bg-dark: 222 47% 11%;      /* Slate 900: #0f172a */
    --bg-card: 222 47% 15%;      /* Slate 800: #1e293b-ish */
    --bg-card-hover: 222 47% 19%;/* Lighter Slate */
    --text-light: 210 40% 98%;   /* Slate 50: #f8fafc */
    --text-muted: 215 20% 65%;   /* Slate 400: #94a3b8 */
    
    /* Accents */
    --accent: 188 86% 53%;       /* Cyan / Tech Blue: #22d3ee */
    --accent-glow: 188 86% 53% / 0.15;
    --accent-gold: 38 92% 50%;   /* Safety Amber / Gold: #f59e0b */
    --accent-gold-glow: 38 92% 50% / 0.15;
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Borders & Roundness */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --border-color: 217 32% 27% / 0.3; /* Slate 700 with opacity */
    
    /* Transitions */
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Offset for sticky navbar */
}

body {
    background-color: hsl(var(--bg-dark));
    color: hsl(var(--text-light));
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Utility */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

/* --------------------------------------------------------------------------
   Layout & Container Components
   -------------------------------------------------------------------------- */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: hsl(var(--accent));
    color: #0f172a;
    box-shadow: 0 4px 14px hsl(var(--accent) / 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px hsl(var(--accent) / 0.5);
    background-color: hsl(188 86% 48%);
}

.btn-secondary {
    background-color: transparent;
    color: hsl(var(--text-light));
    border: 1px solid hsl(var(--text-muted) / 0.5);
}

.btn-secondary:hover {
    background-color: hsl(var(--text-light) / 0.05);
    border-color: hsl(var(--text-light));
    transform: translateY(-2px);
}

.btn-accent {
    background-color: hsl(var(--accent-gold));
    color: #0f172a;
    box-shadow: 0 4px 14px hsl(var(--accent-gold) / 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px hsl(var(--accent-gold) / 0.5);
    background-color: hsl(38 92% 45%);
}

.btn-phone {
    background-color: hsl(var(--accent) / 0.1);
    color: hsl(var(--accent));
    border: 1px solid hsl(var(--accent) / 0.3);
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-phone:hover {
    background-color: hsl(var(--accent));
    color: #0f172a;
    box-shadow: 0 4px 12px hsl(var(--accent) / 0.2);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: hsl(var(--accent) / 0.1);
    color: hsl(var(--accent));
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid hsl(var(--accent) / 0.2);
}

/* --------------------------------------------------------------------------
   Navbar Section
   -------------------------------------------------------------------------- */
.navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    background-color: transparent;
    border-bottom: 1px solid transparent;
}

/* Navbar Scrolled State (triggered by JS) */
.navbar-container.scrolled {
    background-color: hsl(var(--bg-dark) / 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(var(--border-color));
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.navbar-container.scrolled .navbar-content {
    padding: 12px 24px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 75px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.navbar-container.scrolled .logo-img {
    max-height: 52px;
}

.logo-link:hover .logo-img {
    transform: scale(1.03);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: hsl(var(--text-muted));
    font-size: 1rem;
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: hsl(var(--text-light));
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: hsl(var(--accent));
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: hsl(var(--text-light));
    transition: var(--transition-fast);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 95vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
    opacity: 0.85;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 650px;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    line-height: 1.15;
    margin-bottom: 24px;
    color: hsl(var(--text-light));
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: hsl(var(--text-muted));
    margin-bottom: 36px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 1s ease-out 0.4s forwards;
    opacity: 0;
}

.stat-card {
    background: linear-gradient(135deg, hsl(var(--bg-card) / 0.7), hsl(var(--bg-card) / 0.3));
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--radius-md);
    padding: 24px;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-color: hsl(var(--accent) / 0.4);
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: hsl(var(--accent));
}

.stat-label {
    font-size: 0.9rem;
    color: hsl(var(--text-muted));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.services-section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-subtitle {
    font-family: var(--font-heading);
    color: hsl(var(--accent));
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.section-header p {
    color: hsl(var(--text-muted));
    font-size: 1.1rem;
    font-weight: 300;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: hsl(var(--bg-card));
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--radius-md);
    padding: 40px 30px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: hsl(var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.service-card:hover {
    background-color: hsl(var(--bg-card-hover));
    transform: translateY(-8px);
    border-color: hsl(var(--accent) / 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2.2rem;
    color: hsl(var(--accent));
    margin-bottom: 24px;
    background-color: hsl(var(--accent) / 0.08);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid hsl(var(--accent) / 0.15);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.service-card p {
    color: hsl(var(--text-muted));
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: hsl(var(--accent));
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

.card-link i {
    transition: var(--transition-fast);
}

.service-card:hover .card-link i {
    transform: translateX(5px);
}

/* --------------------------------------------------------------------------
   Callout Section
   -------------------------------------------------------------------------- */
.callout-section {
    padding: 80px 24px;
    background: linear-gradient(135deg, hsl(var(--bg-card) / 0.6) 0%, hsl(var(--bg-dark)) 100%);
    border-top: 1px solid hsl(var(--border-color));
    border-bottom: 1px solid hsl(var(--border-color));
}

.callout-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.callout-text {
    max-width: 700px;
}

.callout-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    margin-bottom: 12px;
}

.callout-text p {
    color: hsl(var(--text-muted));
    font-size: 1.1rem;
    font-weight: 300;
}

/* --------------------------------------------------------------------------
   Chi Siamo Section
   -------------------------------------------------------------------------- */
.about-section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.image-wrapper {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid hsl(var(--border-color));
    background: linear-gradient(135deg, hsl(var(--bg-card)) 0%, hsl(var(--bg-dark)) 100%);
}

.about-fallback-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: radial-gradient(circle at center, hsl(var(--accent) / 0.1) 0%, transparent 70%);
}

.about-fallback-image i {
    font-size: 5rem;
    color: hsl(var(--accent));
    filter: drop-shadow(0 0 15px hsl(var(--accent) / 0.4));
}

.about-fallback-image span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 0.1em;
    color: hsl(var(--text-light) / 0.9);
}

.about-content {
    max-width: 550px;
}

.about-content h2 {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    margin-bottom: 24px;
}

.about-content h3 {
    font-size: 1.35rem;
    color: hsl(var(--accent-gold));
    margin-top: 36px;
    margin-bottom: 12px;
    font-weight: 600;
}

.about-content p {
    color: hsl(var(--text-muted));
    margin-bottom: 20px;
}

.about-content .lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: hsl(var(--text-light));
    margin-bottom: 24px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-item i {
    color: hsl(var(--accent-gold));
    font-size: 1.2rem;
}

.feature-item span {
    font-weight: 500;
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact-section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    margin-top: 60px;
}

.contact-info-panel {
    background-color: hsl(var(--bg-card));
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--radius-md);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-panel h3 {
    font-size: 1.6rem;
    margin-bottom: -10px;
}

.contact-desc {
    color: hsl(var(--text-muted));
    font-size: 0.95rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background-color: hsl(var(--accent) / 0.08);
    border: 1px solid hsl(var(--accent) / 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--accent));
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.info-text p, .info-text a {
    color: hsl(var(--text-muted));
    font-size: 0.95rem;
}

.info-text a:hover {
    color: hsl(var(--accent));
}

.map-placeholder {
    margin-top: auto;
    border-radius: var(--radius-sm);
    border: 1px dashed hsl(var(--border-color));
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background-color: hsl(var(--bg-dark) / 0.3);
}

.map-placeholder i {
    font-size: 2.2rem;
    color: hsl(var(--accent-gold));
}

.map-placeholder span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Contact Form Panel */
.contact-form-panel {
    background-color: hsl(var(--bg-card));
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--radius-md);
    padding: 40px;
}

.contact-form-panel h3 {
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: hsl(var(--text-light));
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background-color: hsl(var(--bg-dark));
    border: 1px solid hsl(var(--border-color));
    color: hsl(var(--text-light));
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--accent));
    box-shadow: 0 0 0 3px hsl(var(--accent) / 0.15);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.form-status {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    margin-top: 10px;
}

.form-status.success {
    color: #10b981; /* green */
}

.form-status.error {
    color: #ef4444; /* red */
}

/* --------------------------------------------------------------------------
   Footer Section
   -------------------------------------------------------------------------- */
.main-footer {
    background-color: hsl(var(--bg-dark));
    border-top: 1px solid hsl(var(--border-color));
    padding: 40px 24px;
    text-align: center;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: hsl(var(--text-muted));
}

/* --------------------------------------------------------------------------
   Animations Keyframes
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */

@media (max-width: 992px) {
    .navbar-content {
        padding: 16px 24px;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: hsl(var(--bg-dark));
        border-left: 1px solid hsl(var(--border-color));
        flex-direction: column;
        padding: 100px 40px;
        gap: 30px;
        transition: var(--transition-smooth);
        z-index: 1005;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .hamburger-menu.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger-menu.open span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding-top: 60px;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        width: 100%;
        flex-wrap: wrap;
    }

    .stat-card {
        flex: 1;
        min-width: 180px;
        align-items: center;
        padding: 20px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .callout-container {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .callout-action {
        width: 100%;
    }
    
    .callout-action .btn {
        width: 100%;
    }

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

    .nav-actions .btn-phone span {
        display: none; /* Icon only on small mobile to save space */
    }
    
    .nav-actions .btn-phone {
        padding: 10px 12px;
        border-radius: 50%;
    }
}

/* ==========================================================================
   Floating Contact Group (WhatsApp, Phone, Email)
   ========================================================================== */
.floating-contact-group {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
}

.floating-btn:hover {
    transform: translateY(-4px) scale(1.05);
}

/* WhatsApp specific colors & glow */
.floating-btn.whatsapp-float {
    background-color: #25d366;
}
.floating-btn.whatsapp-float:hover {
    background-color: #22c35e;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(37, 211, 102, 0.6);
}

/* Phone specific colors & glow */
.floating-btn.phone-float {
    background-color: hsl(var(--accent)); /* Cyan theme */
    color: #0f172a;
}
.floating-btn.phone-float:hover {
    background-color: hsl(188 86% 48%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px hsl(var(--accent) / 0.6);
}

/* Email specific colors & glow */
.floating-btn.email-float {
    background-color: hsl(var(--accent-gold)); /* Safety amber */
    color: #0f172a;
}
.floating-btn.email-float:hover {
    background-color: hsl(38 92% 45%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px hsl(var(--accent-gold) / 0.6);
}

/* Pulse animation only on WhatsApp button for high visibility */
.floating-btn.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: wa-pulse 2s infinite;
    opacity: 0;
}

@keyframes wa-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .floating-contact-group {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
}

/* ==========================================================================
   Brand Page Specific Styles (marchi.html)
   ========================================================================== */

/* Page Header (Hero style for brand page) */
.page-header-section {
    position: relative;
    padding: 160px 24px 80px 24px;
    background: radial-gradient(circle at top right, hsl(var(--accent) / 0.05), transparent 60%),
                radial-gradient(circle at bottom left, hsl(var(--accent-gold) / 0.03), transparent 60%),
                hsl(var(--bg-dark));
    border-bottom: 1px solid hsl(var(--border-color));
    text-align: center;
}

.page-header-container {
    max-width: 800px;
    margin: 0 auto;
}

.page-header-container h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: -0.02em;
}

.page-header-container p {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: hsl(var(--text-muted));
    font-weight: 300;
}

/* Brands Section */
.brands-section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.brands-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.brand-category-group {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid hsl(var(--border-color));
    padding-bottom: 16px;
}

.category-header i {
    font-size: 2rem;
    color: hsl(var(--accent));
}

.category-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

/* Brands Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Brand Card */
.brand-card {
    background: linear-gradient(135deg, hsl(var(--bg-card) / 0.7), hsl(var(--bg-card) / 0.3));
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--radius-md);
    padding: 30px;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.brand-card:hover {
    transform: translateY(-8px);
    border-color: hsl(var(--accent) / 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px hsl(var(--accent) / 0.05);
    background-color: hsl(var(--bg-card-hover) / 0.6);
}

/* Brand Logo Placeholder (Typographic styling simulating official logos) */
.brand-logo-placeholder {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0c1220;
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    user-select: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Individual Brand Stylings representing their real visual identity */
.logo-text.CAME {
    color: #fff;
    font-style: italic;
    background: linear-gradient(90deg, #0054a6, #0083ca);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.3);
}

.logo-text.FAAC {
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, #e30613, #b5040e);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.logo-text.BFT {
    color: #fff;
    letter-spacing: 0.1em;
    font-weight: 800;
    background: linear-gradient(90deg, #111e3b, #005ca9);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid #005ca9;
}

.logo-text.NICE {
    color: #000;
    font-weight: 900;
    letter-spacing: 0.12em;
    background: linear-gradient(135deg, #ffdd00, #ffbb00);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.logo-text.LABEL {
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, #1b3a4b, #275d7a);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.logo-text.DEA {
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.2em;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid #10b981;
    position: relative;
}
.logo-text.DEA::after {
    content: 'SYSTEM';
    position: absolute;
    bottom: 8px;
    font-size: 0.45rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: #10b981;
}

.logo-text.WHYEVO {
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.1rem;
    background: radial-gradient(circle at 80% 20%, #ff6b00 10%, transparent 12%),
                linear-gradient(135deg, #1e293b, #0f172a);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid #ff6b00;
}

.logo-text.JANE {
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

/* Antifurto CSS Logos */
.logo-text.CSI {
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.2em;
    background: linear-gradient(135deg, #0a3d62, #002244);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    position: relative;
}
.logo-text.CSI::after {
    content: 'SAFE';
    font-size: 0.6rem;
    font-weight: 500;
    color: hsl(var(--accent));
    letter-spacing: 0.4em;
    margin-top: -4px;
}

.logo-text.ELMO {
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #d32f2f, #1e293b 50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.logo-text.AJAX {
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.35em;
    background: #000;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid #333;
}

.logo-text.PYRONIX {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: linear-gradient(90deg, #18233c, #2b3a5a);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border-bottom: 4px solid #ef4444; /* Pyronix red line Accent */
}

.logo-text.NEXTTECH {
    color: #00e5ff;
    font-weight: 900;
    letter-spacing: 0.05em;
    background: radial-gradient(circle, #101d36 0%, #060b14 100%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid #00e5ff;
}

.logo-text.SILENTRON {
    color: #fff;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    position: relative;
}
.logo-text.SILENTRON::after {
    content: 'WIRELESS';
    position: absolute;
    bottom: 8px;
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    font-style: normal;
    color: #ffaa00;
}

/* Videosorveglianza CCTV CSS Logos */
.logo-text.TVT {
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, #2c3e50, #0f172a);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border-left: 5px solid #00c8ff; /* TVT blue accent */
}

.logo-text.DAHUA {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: #111;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border-top: 4px solid #f60; /* Dahua Orange accent */
}

.logo-text.HIKVISION {
    color: #e30613;
    font-weight: 800;
    letter-spacing: -0.05em;
    background: #f8fafc;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.brand-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 600;
}

.brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.brand-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    background-color: hsl(var(--accent) / 0.06);
    border: 1px solid hsl(var(--accent) / 0.15);
    border-radius: 50px;
    color: hsl(var(--accent));
}

.brand-card p {
    font-size: 0.9rem;
    color: hsl(var(--text-muted));
    line-height: 1.5;
}

/* Brands CTA Section */
.brands-cta {
    padding: 100px 24px;
    background: linear-gradient(180deg, hsl(var(--bg-dark)) 0%, hsl(var(--bg-card) / 0.4) 100%);
    border-top: 1px solid hsl(var(--border-color));
}

.brands-cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.brands-cta-container h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 16px;
    color: #fff;
}

.brands-cta-container p {
    font-size: 1.1rem;
    color: hsl(var(--text-muted));
    margin-bottom: 36px;
    font-weight: 300;
}

.brands-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Responsive adjustment for brands */
@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: 1fr;
    }
    .brands-cta-buttons .btn {
        width: 100%;
    }
}
