/* CSS Stylesheet per Driveasy - Atzori Auto */

:root {
    --primary-color: #0A1128;      /* Deep Elegant Navy */
    --accent-color: #1C7293;       /* Automotive Slate Blue */
    --accent-red: #8B1819;       /* Automotive Slate Blue */
    --light-accent: #96E6B3;      /* Subtle Mint Highlight */
    --bg-light: #F4F7F6;          /* Clean Light Gray */
    --text-dark: #1C2321;         /* Charcoal for text */
    --text-muted: #5E6563;        /* Soft Gray for secondary text */
    --white: #FFFFFF;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-sans: 'Montserrat', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
	padding-top: 110px;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* BASE COMPONENTS */
.subtitle {
    display: inline-block;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.section-title-wrap h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-top: 5px;
}

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

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-primary { background-color: var(--accent-color); color: var(--white); }
.btn-primary:hover { background-color: var(--primary-color); transform: translateY(-2px); }
.btn-outline { background-color: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background-color: var(--white); color: var(--primary-color); transform: translateY(-2px); }

/* TOP NAVBAR */
.site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.top-navbar {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-nav-container { display: flex; justify-content: space-between; align-items: center; }
.top-nav-left i { margin-right: 5px; color: var(--accent-color); }
.top-nav-right a { margin-left: 15px; display: inline-block; }
.top-nav-right a:hover { color: var(--white); transform: scale(1.1); }

/* MAIN NAVBAR & LOGO */
.main-header {
    background-color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo a {display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; }
.logo-img {height: 40px; width: auto; max-width: 220px; display: block; }
.logo-sub {font-size: 0.75rem; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; margin-top: 4px; }
.logo-img-mobile {height: 35px; width: auto; }
.logo-img-footer {height: 40px; width: auto; margin-bottom: 15px; }

/* MENU DESKTOP */
.desktop-menu ul { display: flex; }
.desktop-menu li { margin-left: 30px; }
.desktop-menu a { font-size: 0.95rem; font-weight: 500; color: var(--text-dark); padding: 5px 0; position: relative; }
.desktop-menu a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--accent-color); transition: var(--transition-smooth); }
.desktop-menu a:hover::after, .desktop-menu a.active::after { width: 100%; }

.hamburger-btn { display: none; background: none; border: none; font-size: 1.5rem; color: var(--primary-color); cursor: pointer; }

/* MOBILE MENU (SLIDE FROM RIGHT) */
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(10, 17, 40, 0.5); z-index: 1000;
    opacity: 0; visibility: hidden; transition: var(--transition-smooth);
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu {
    position: fixed; top: 0; right: -300px; width: 300px; height: 100%;
    background-color: var(--white); z-index: 1001; padding: 40px 30px;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1); transition: var(--transition-smooth);
    display: flex; flex-direction: column;
}
.mobile-menu.active { right: 0; }
.close-btn { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 1.8rem; color: var(--primary-color); cursor: pointer; }
.mobile-menu-logo {margin-bottom: 30px; display: block; }
.mobile-menu-logo .logo-img-mobile {height: 35px; width: auto; max-width: 180px; display: block; }
.mobile-nav-links li { margin-bottom: 20px; }
.mobile-nav-links a { font-size: 1.2rem; font-weight: 600; color: var(--primary-color); }
.mobile-menu-footer { margin-top: auto; }
.mobile-call-btn { display: block; text-align: center; background-color: var(--primary-color); color: var(--white); padding: 15px; border-radius: 4px; font-weight: 600; }

/* HERO SECTION */
.hero-section { background-size: cover; background-position: center; padding: 140px 0; color: var(--white); }
.hero-content { max-width: 650px; }
.hero-badge { display: inline-block; padding: 6px 14px; background-color: rgba(28, 114, 147, 0.3); border: 1px solid var(--accent-color); border-radius: 50px; font-size: 0.85rem; font-weight: 500; margin-bottom: 20px; }
.hero-content h1 { font-family: var(--font-serif); font-size: 3.5rem; line-height: 1.15; margin-bottom: 25px; }
.hero-content p { font-size: 1.1rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 40px; font-weight: 300; }
.hero-actions .btn { margin-right: 15px; margin-bottom: 15px; }

/* GRID SYSTEMS (CATEGORIES & SERVICES) */
.categories-section, .services-section { padding: 100px 0; background-color: var(--bg-light); }
.grid-4-boxes, .grid-4-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }

.category-box { background-color: var(--white); border-radius: 6px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.02); transition: var(--transition-smooth); display: flex; flex-direction: column; }
.category-box:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(10, 17, 40, 0.08); }
.box-image { height: 200px; background-size: cover; background-position: center; transition: var(--transition-smooth); }
.box-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.box-content h3 { font-family: var(--font-serif); font-size: 1.3rem; color: var(--primary-color); margin-bottom: 12px; }
.box-content p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; flex-grow: 1; }
.box-link { font-size: 0.85rem; font-weight: 600; color: var(--accent-color); display: inline-flex; align-items: center; }
.box-link i { margin-left: 5px; transition: var(--transition-smooth); }
.category-box:hover .box-link i { transform: translateX(5px); }

/* SEO SECTION */
.seo-impact-section { padding: 100px 0; background-color: var(--white); }
.seo-layout { max-width: 900px; margin: 0 auto; }
.seo-text-block h2 { font-family: var(--font-serif); font-size: 2.4rem; color: var(--primary-color); margin-bottom: 25px; }
.seo-text-block p { font-size: 1.05rem; color: var(--text-dark); margin-bottom: 20px; }
.seo-text-block strong { color: var(--accent-color); }

/* SERVICE CARDS */
.service-card { background-color: var(--white); padding: 40px 30px; border-radius: 6px; text-align: center; border-bottom: 3px solid transparent; transition: var(--transition-smooth); }
.service-card:hover { border-bottom-color: var(--accent-color); transform: translateY(-5px); }
.service-icon { width: 70px; height: 70px; background-color: rgba(28, 114, 147, 0.08); color: var(--accent-color); font-size: 1.8rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 25px auto; transition: var(--transition-smooth); }
.service-card:hover .service-icon { background-color: var(--accent-color); color: var(--white); }
.service-card h3 { font-size: 1.15rem; font-weight: 600; color: var(--primary-color); margin-bottom: 15px; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); }

/* FOOTER & SUBFOOTER */
.main-footer { background-color: var(--primary-color); color: rgba(255, 255, 255, 0.7); padding: 80px 0 50px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.main-footer .logo-drive {color: var(--white); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 50px; }
.footer-block h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-block h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background-color: var(--accent-color); }
.footer-info p { margin-bottom: 15px; display: flex; align-items: flex-start; }
.footer-info i { color: var(--accent-color); margin-right: 12px; margin-top: 5px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a i { font-size: 0.7rem; margin-right: 8px; }
.footer-links a:hover { color: var(--white); }
.footer-brand .slogan { font-size: 0.9rem; font-style: italic; margin-bottom: 25px; }
.footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; background-color: rgba(255, 255, 255, 0.05); color: var(--white); border-radius: 4px; margin-right: 10px; }
.footer-socials a:hover { background-color: var(--accent-color); transform: translateY(-3px); }
.sub-footer { background-color: #060B1A; color: rgba(255, 255, 255, 0.4); font-size: 0.8rem; padding: 25px 0; }
.sub-footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; }

/* Layout Sezione Contatti */
.contact-section {padding: 80px 0; background-color: var(--bg-light, #f8f9fa); }
.contact-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.info-list {margin-top: 30px; }
.info-item {display: flex; align-items: flex-start; gap: 18px; margin-bottom: 25px; }
.info-icon {width: 45px; height: 45px; background-color: var(--primary-color, #0a1128); color: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.info-text h3 {font-size: 1.1rem; margin-bottom: 4px; }
.info-text p, .info-text a {color: #555; text-decoration: none; font-size: 0.95rem; }
.info-text a:hover {color: var(--accent-color, #d32f2f); }
.contact-form-wrapper {background: #ffffff; padding: 40px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.contact-form-wrapper h3 {margin-bottom: 25px; font-size: 1.5rem; }
.form-group {margin-bottom: 20px; }
.form-row {display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group label {display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; font-size: 0.95rem; outline: none; transition: border-color 0.3s; }
.form-group input:focus, .form-group select:focus,  .form-group textarea:focus {border-color: var(--primary-color, #0a1128); }
.checkbox-group {display: flex; align-items: center; gap: 10px; }
.checkbox-group input {width: auto; }
.checkbox-group label {margin-bottom: 0; font-size: 0.85rem; }
.btn-block {width: 100%; text-align: center; }
.map-section {width: 100%; line-height: 0; }


/* Sezione Catalogo Intro & SEO */
.catalogo-intro-section {padding: 70px 0; background-color: var(--bg-light, #f8f9fa); }
.catalogo-seo-text {max-width: 900px; margin: 0 auto 40px auto; text-align: center; }
.catalogo-seo-text p {font-size: 1.05rem; line-height: 1.8; color: #444; }
.catalogo-categories {margin-bottom: 60px; }
.portali-banner {background: linear-gradient(135deg, var(--primary-color, #0a1128) 0%, #1c2a4f 100%); color: #ffffff; padding: 45px 40px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); text-align: center; }
.badge-showroom {display: inline-block; background-color: var(--accent-color, #d32f2f); color: #ffffff; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; padding: 5px 12px;     border-radius: 20px; margin-bottom: 15px; letter-spacing: 1px; }
.portali-content h3 {font-size: 1.8rem; color: #ffffff; margin-bottom: 15px; }
.portali-content p {font-size: 1rem; color: #e0e0e0; max-width: 800px; margin: 0 auto 25px auto; line-height: 1.6; }
.portali-badges {display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 30px; }
.portal-tag {background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); padding: 10px 22px; border-radius: 6px; font-size: 1rem; font-weight: 600; color: #ffffff; display: flex; align-items: center; gap: 8px; backdrop-filter: blur(5px); }
.portali-action {border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 25px; margin-top: 10px; }
.portali-action p {font-size: 0.95rem; margin-bottom: 18px; }
.btn-outline-light {border: 2px solid #ffffff; color: #ffffff; background: transparent; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: 600; display: inline-block; transition: all 0.3s ease; margin-left: 10px; }
.btn-outline-light:hover {background: #ffffff; color: var(--primary-color, #0a1128); }
.services-intro-section { padding: 70px 0 40px 0; background-color: var(--bg-light, #f8f9fa); }
.services-seo-text {max-width: 850px; margin: 0 auto; text-align: center; }
.services-seo-text p {font-size: 1.05rem; line-height: 1.8; color: #444; }
.services-grid-section {padding: 40px 0 80px 0; background-color: var(--bg-light, #f8f9fa); }
.grid-3-boxes {display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card {background: #ffffff; padding: 35px 25px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover {transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); }
.service-icon {width: 65px; height: 65px; background-color: var(--primary-color, #0a1128); color: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px auto; font-size: 1.6rem; }
.service-card h3 {font-size: 1.2rem; color: var(--primary-color, #0a1128); margin-bottom: 12px; font-weight: 700; }
.service-card p { font-size: 0.95rem; line-height: 1.6; color: #666; }


/* Layout Pagina Privacy Policy */
.privacy-section {padding: 60px 0; background-color: var(--bg-light, #f8f9fa); }
.privacy-card {background: #ffffff; padding: 45px 50px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); }
.privacy-header {margin-bottom: 25px; }
.privacy-header h1 {font-size: 1.8rem; color: var(--primary-color, #0a1128); margin-bottom: 8px; font-weight: 700; }
.privacy-subtitle {font-size: 1rem; font-weight: 600; color: var(--accent-color, #d32f2f); }
.privacy-intro p {font-size: 0.98rem; line-height: 1.6; color: #444; margin-bottom: 12px; }
.privacy-divider {border: 0; height: 1px; background: #e0e0e0; margin: 30px 0; }
.privacy-block {margin-bottom: 30px; }
.privacy-block:last-child {margin-bottom: 0; }
.privacy-block h2 {font-size: 1.15rem; color: var(--primary-color, #0a1128); margin-bottom: 12px; font-weight: 700; letter-spacing: 0.5px; }
.privacy-block p {font-size: 0.95rem; line-height: 1.7; color: #555; margin-bottom: 10px; }
.privacy-block ul {list-style: disc; padding-left: 20px; margin-top: 10px; margin-bottom: 10px; }
.privacy-block ul li {font-size: 0.95rem; line-height: 1.6; color: #555; margin-bottom: 8px; }
.privacy-block a {color: var(--accent-color, #d32f2f); text-decoration: underline; transition: color 0.2s ease; }
.privacy-block a:hover {color: var(--primary-color, #0a1128); }


/* Layout Pagina Credits */
.credits-intro {font-size: 1.05rem; color: #444; margin-bottom: 25px; }
.credits-box {background: #f8f9fa; padding: 30px; border-radius: 8px; border: 1px solid #e0e0e0; max-width: 600px; margin: 0 auto 30px auto; }
.credits-box h2 {font-size: 1.5rem; color: var(--primary-color, #0a1128); margin-bottom: 5px; font-weight: 700; }
.credits-role {font-size: 0.95rem; color: var(--accent-color, #d32f2f); font-weight: 600; margin-bottom: 15px; }
.credits-box p {font-size: 0.95rem; color: #555; margin-bottom: 20px; }
.credits-links {display: flex; justify-content: center; gap: 15px; }
.credits-tech {max-width: 600px; margin: 0 auto; text-align: left; }
.credits-tech h3 {font-size: 1.1rem; color: var(--primary-color, #0a1128); margin-bottom: 15px; text-align: center; }
.credits-tech-list {list-style: none; padding: 0; }
.credits-tech-list li {font-size: 0.92rem; color: #555; padding: 8px 0; border-bottom: 1px dashed #eee; }
.credits-tech-list li:last-child {border-bottom: none; }


/* RESPONSIVE */
@media (max-width: 991px) {
	.contact-grid {grid-template-columns: 1fr; gap: 40px; }
	.form-row {grid-template-columns: 1fr; }
	.privacy-card {padding: 25px 20px; }
    .privacy-header h1 {font-size: 1.4rem; }
    .privacy-block h2 {font-size: 1.05rem; }
	.grid-3-boxes {grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	body {padding-top: 90px; }
    .hamburger-btn { display: block; }
    .desktop-menu { display: none; }
    .hero-section { padding: 100px 0; text-align: center; }
    .hero-content h1 { font-size: 2.4rem; }
    .hero-actions .btn { width: 100%; }
    .sub-footer-content { flex-direction: column; text-align: center; }
	.portali-banner {padding: 30px 20px; }
    .portali-content h3 {font-size: 1.4rem; }
    .portali-badges {flex-direction: column; align-items: center; }
    .portal-tag {width: 100%; max-width: 250px; justify-content: center; }
    .btn-outline-light {margin-left: 0; margin-top: 10px; width: 100%; }
}

@media (max-width: 576px) {
    .grid-3-boxes {grid-template-columns: 1fr; }
	.credits-box {padding: 20px 15px; }
}