/* CSS Variables */
:root {
    --primary-color: #0284c7; /* Professional Blue */
    --primary-hover: #0369a1;
    --secondary-color: #22c55e; /* WhatsApp Green / Action */
    --secondary-hover: #16a34a;
    --bg-light: #f8fafc; /* Soft Slate Gray */
    --bg-white: #ffffff;
    --text-main: #0f172a; /* Slate 900 */
    --text-muted: #475569; /* Slate 600 */
    --border-color: #e2e8f0;
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    
    --transition: all 0.3s ease;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* 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-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

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

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

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

/* Layout Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm {
    max-width: 800px;
}

section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

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

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.align-center { align-items: center; }

@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    section { padding: 3rem 0; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    font-size: 1rem;
    text-align: center;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: #25D366; /* Base WA Color */
    color: white;
}

.btn-secondary:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

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

.icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    border-bottom-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

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

.nav-links a:not(.btn) {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

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

@media (max-width: 768px) {
    .nav-links a:not(.btn) {
        display: none;
    }
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    min-height: 90vh; /* Changed from 100vh for a lighter feel */
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #e0f2fe;
    color: var(--primary-color);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    object-apply: cover;
    aspect-ratio: 4/3;
}

@media (max-width: 992px) {
    .hero { min-height: auto; padding-top: 7rem; }
    .hero-container { grid-template-columns: 1fr; gap: 3rem; }
    .hero-title { font-size: 2.75rem; }
    .hero-subtitle { font-size: 1.25rem; }
    .hero-image { order: -1; } /* Image on top in mobile */
}

/* Services (Cosa facciamo) */
.section-title {
    font-size: 2.25rem;
    margin-bottom: 3rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: #bae6fd;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background-color: #f0f9ff;
    border-radius: var(--radius-sm);
}

/* Target & Why Us */
.lead-text {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.check-list {
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text-main);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
    font-weight: bold;
}

.subsection-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background-color: var(--bg-light);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* How it works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 4rem;
    height: 4rem;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 0 8px #e0f2fe;
}

@media (max-width: 768px) {
    .steps-grid { grid-template-columns: 1fr; }
    .step-card { padding: 1rem; }
}

/* Operative Area */
.rounded-image {
    border-radius: var(--radius);
    max-width: 100%;
    height: auto;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* FAQ Accordion */
.accordion {
    gap: 1rem;
    display: flex;
    flex-direction: column;
}

.accordion-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-main);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: #f8fafc;
}

.accordion-header::after {
    content: "+";
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(45deg);
}

.accordion-item.active .accordion-header {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 1.5rem;
}

.accordion-item.active .accordion-body {
    max-height: 500px;
    padding: 1.5rem;
}

.accordion-body p:last-child {
    margin-bottom: 0;
}

/* Contact Section */
.contact-method-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid #25D366;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.contact-method-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.contact-method-card h4 {
    margin-bottom: 0.25rem;
    color: #128C7E;
}

.icon-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.whatsapp-green {
    background-color: #25D366;
}

.contact-details p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
}

.contact-form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px #e0f2fe;
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 4rem 0 2rem;
}

.footer-logo {
    display: inline-block;
    color: white;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.footer p {
    color: #94a3b8;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    font-size: 0.875rem;
    color: #64748b;
}

/* Premium Variante Styles (will be added mainly for index_premium.html) */
.hero-premium {
    position: relative;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('images/hero.png');
    background-size: cover;
    background-position: center;
}

.hero-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 100%);
    z-index: 1;
}

.hero-premium-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding-top: 5rem;
}

.hero-premium .hero-subtitle,
.hero-premium .hero-text,
.hero-premium h1, .hero-premium h2 {
    color: white;
}

.hero-premium .hero-text {
    color: #e2e8f0;
    font-size: 1.25rem;
}

.hero-premium .hero-badge {
    background-color: rgba(255,255,255,0.1);
    color: white;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
}
