/* --- Font & Variables --- */
:root {
    --primary-color: #0F4C81; /* Blu tecnico */
    --primary-light: #2365a3;
    --accent-color: #fca311;
    --text-color: #2b2b2b;
    --text-light: #666;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --bg-dark: #111827;
    
    --font-main: 'Montserrat', sans-serif;
    
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px rgba(0,0,0,0.15);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: var(--space-xl) 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); color: #fff; }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark p { color: #fff; }

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

/* --- Typografy Utilities --- */
.highlight {
    color: var(--accent-color);
    display: block;
    font-size: 0.8em;
    margin-top: 0.5rem;
}

.highlight-text {
    color: var(--primary-color);
    font-weight: 800;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* --- Buttons --- */
.btn-primary, .btn-secondary, .btn-primary-sm {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(15, 76, 129, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 76, 129, 0.4);
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary-sm {
    padding: 0.6rem 1.2rem;
    background-color: var(--primary-color);
    color: white;
}
.btn-primary-sm:hover { color:white; background-color: var(--primary-light); }

.w-100 { width: 100%; }

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-fast);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}
.logo span { color: var(--accent-color); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('2026 studio tecnico small (10).jpg') center/cover no-repeat;
    padding-top: 80px; /* Offset nav */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,76,129,0.9) 0%, rgba(17,24,39,0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: white;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: white;
}

.hero-content .highlight { color: var(--accent-color); }

.sub-headline {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    max-width: 700px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}
.hero-actions .btn-secondary {
    border-color: white;
    color: white;
}
.hero-actions .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* --- Layout Split --- */
.split-layout {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.split-layout.flex-reverse-mobile .image-content {
    /* order desktop */
}

.split-layout > div {
    flex: 1;
}

.rounded-image {
    border-radius: var(--radius-lg);
    object-fit: cover;
    width: 100%;
}
.shadow-xl {
    box-shadow: var(--shadow-lg);
}

.interactive-img {
    transition: transform var(--transition-normal);
}
.interactive-img:hover {
    transform: scale(1.02);
}

/* --- Servizi Grid --- */
.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary-color);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* --- Perché Sceglierci --- */
.accent-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--primary-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.check-icon-circle {
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.feature-text strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

/* --- CTA Banner --- */
.cta-banner {
    background: var(--primary-color);
    padding: var(--space-xl) 0;
    color: white;
}
.cta-banner h2 { color: white; }
.cta-banner p { color: rgba(255,255,255,0.9); font-size: 1.2rem; max-width: 800px; margin: 0 auto; }
.cta-banner .btn-primary {
    background: var(--accent-color);
    color: var(--bg-dark);
}
.cta-banner .btn-primary:hover {
    background: #e5930e;
    transform: scale(1.05);
}

/* --- FAQ Accordion --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-item summary {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    list-style: none; /* Hide default arrow */
    color: var(--primary-color);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
}

details[open] summary .icon-plus {
    transform: rotate(45deg);
}
.icon-plus {
    transition: transform var(--transition-fast);
}

/* --- Form Contatti --- */
.form-wrapper {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group { margin-bottom: 1.5rem; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    transition: border-color var(--transition-fast);
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* --- Footer --- */
.site-footer {
    padding: var(--space-xl) 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-logo { font-size: 1.5rem; }
.footer-logo span { color: var(--accent-color); }
.footer-col h4 { margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a { color: #bbb; }
.footer-col ul a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    color: #bbb;
}

/* --- Modal --- */
.privacy-modal {
    margin: auto;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    padding: 0;
}
.privacy-modal::backdrop {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    color: var(--text-light);
}
.modal-body h4 {
    margin-top: 1.5rem;
    color: var(--text-color);
}

/* --- Animations --- */
.fade-up, .reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up { transform: translateY(30px); }
.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

.fade-up.active, .reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .split-layout {
        flex-direction: column;
    }
    .split-layout.flex-reverse-mobile {
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hamburger { display: flex; }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        box-shadow: var(--shadow-sm);
    }
    .hero-content {
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
        flex-direction: column;
    }
}
