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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    font-size: 16px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
    font-weight: 600;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: #666666;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header Styles - Inspired by CONIT */
.header {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-img {
    height: 100px;
    width: auto;
}

.logo-text {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #333333;
    font-weight: 500;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: #ebc554;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 3px;
    background: #ebc554;
    border-radius: 2px;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 2rem;
    padding-left: 2rem;
    border-left: 1px solid #e5e5e5;
}

.language-switcher span {
    color: #cccccc;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 24px;
    height: 3px;
    background-color: #333333;
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section - CONIT Style */
.hero {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%),
                url('../photo/Capannone.jpeg') center/cover no-repeat;
    padding: 140px 0 100px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -20%;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg, rgba(235, 197, 84, 0.05) 0%, transparent 50%);
    border-radius: 50px 0 0 50px;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    position: relative;
}


.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #363636;
}

/* Logo grande nella hero (sostituisce H1) */
.hero-content {
    max-width: 600px;
    z-index: 2;
    position: relative;
    margin: 0 auto;
    text-align: center;
    /* spazio riservato per il logo assoluto */
    padding-top: 240px;
}

/* Logo grande nella hero posizionato a contatto col bordo superiore */
.hero-logo-large {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    max-height: 200px;
    width: auto;
    height: auto;
}

@media (max-width: 1024px) {
    .hero-content { padding-top: 200px; }
    .hero-logo-large { max-height: 180px; }
}

@media (max-width: 768px) {
    .hero-content { padding-top: 160px; }
    .hero-logo-large { max-height: 140px; }
}

@media (max-width: 420px) {
    .hero-content { padding-top: 120px; }
    .hero-logo-large { max-height: 100px; }
}

.hero p {
    font-size: 1.25rem;
    color: #1a1a1a;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Sottotitolo specifico nella hero: solo questo testo centrato */
.hero-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
}

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

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 140px 0 80px;
    text-align: center;
    color: white;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons - CONIT Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    gap: 8px;
    min-height: 50px;
}

.btn-primary {
    background: #ebc554;
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(235, 197, 84, 0.3);
}

.btn-primary:hover {
    background: #d4a93a;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(235, 197, 84, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #333333;
    border: 2px solid #e5e5e5;
}

.btn-secondary:hover {
    border-color: #ebc554;
    color: #ebc554;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-height: 40px;
}

/* Sections Styling */
section {
    padding: 80px 0;
}

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

/* Services Grid - CONIT Style */
.services-preview,
.services-detail {
    background: #fafafa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.service-card,
.service-detail-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.service-card:hover,
.service-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 50px rgba(0, 0, 0, 0.12);
}

.service-card i,
.service-detail-card .service-icon i {
    font-size: 2.5rem;
    color: #ebc554;
    margin-bottom: 1.5rem;
    display: block;
}

.service-detail-card .service-icon {
    background: #fef9ec;
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card h3,
.service-detail-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.service-features {
    list-style: none;
    margin: 1.5rem 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
    color: #666666;
}

.service-features i {
    color: #ebc554 !important;
    font-size: 0.9rem !important;
    margin-bottom: 0 !important;
}

/* About Section */
/* About Section - Versione Semplificata e Funzionante */
.about-preview {
    padding: 80px 0;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.about-image {
    flex: 0 0 auto;
    text-align: center;
}

.about-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-list {
    list-style: none;
    margin: 2rem 0;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-list i {
    color: #ebc554;
    font-size: 1.1rem;
}

/* Mobile */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .about-text {
        min-width: auto;
    }
}

/* Overrid esecutivi per centratura e immagini (risolvono conflitti tra grid/flex/inline style) */
.about-preview .container {
    display: flex;
    justify-content: center;
}

.about-content {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 28px !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 980px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 12px;
}

.about-image {
    flex: 0 0 360px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0;
    background: transparent;
}

.about-photo {
    display: block !important;
    width: 100%;
    height: auto !important;
    max-height: 320px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: none !important;
    background: transparent !important;
}

/* sicurezza: se header è fisso, spazio di buffer (se JS non viene eseguito o non disponibile) */
body { padding-top: 72px; }

/* fine overrides */

/* Company Story */
.company-story,
.story-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Mission & Vision */
.mission-vision {
    background: #fafafa;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.mv-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.mv-card i {
    font-size: 3rem;
    color: #ebc554;
    margin-bottom: 1.5rem;
}

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

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card i {
    font-size: 2.5rem;
    color: #ebc554;
    margin-bottom: 1rem;
}

/* Team Stats */
.team-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 2rem;
}

.stat h3 {
    font-size: 3rem;
    color: #ebc554;
    margin-bottom: 0.5rem;
}

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

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

.step-number {
    width: 60px;
    height: 60px;
    background: #ebc554;
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

/* Projects Grid */
.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

#dynamicProjects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 50px rgba(0, 0, 0, 0.12);
}

.project-image {
    height: 400px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #ebc554;
}

.project-content {
    padding: 2rem;
}

.project-category {
    color: #ebc554;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.project-details {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #888888;
}

.project-details span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Project Stats */
.project-stats {
    background: #1a1a1a;
    color: white;
}

.project-stats h2 {
    color: white;
    text-align: center;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

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

.stat-item h3 {
    font-size: 3.5rem;
    color: #ebc554;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #cccccc;
    font-size: 1.1rem;
}

/* Contact Page */
.contact-info-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-top: 2rem;
        }

 .contact-column {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ebc554;
    box-shadow: 0 0 0 3px rgba(235, 197, 84, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.25rem;
    color: #ebc554;
    margin-top: 0.25rem;
    min-width: 24px;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin: 0;
    color: #666666;
}

.contact-item a {
    color: #666666;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ebc554;
}

/* Social Links */
.social-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #ebc554;
    color: #1a1a1a;
    transform: translateY(-2px);
}

/* Map */
.map-container {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer - CONIT Style */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: #cccccc;
    margin-bottom: 0.5rem;
}

.footer-section .social-links {
    margin-top: 1rem;
}

.footer-section .social-links a {
    background: #333333;
    color: #cccccc;
}

.footer-section .social-links a:hover {
    background: #ebc554;
    color: #1a1a1a;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 2rem;
    text-align: center;
    color: #888888;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.modal-body {
    padding: 3rem;
    text-align: center;
}

.modal-body i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 1rem;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Fix: assicurarsi che la colonna immagine e l'immagine siano visibili */
.about-image {
    /* annulla eventuali opacity precedenti */
    opacity: 1 !important;
    visibility: visible !important;
}

.about-image img,
.about-photo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Carousel Styles - Progetti */
.carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
}

.carousel-inner {
    border-radius: 16px;
    overflow: hidden;
}

.carousel-item {
    display: none;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f8f9fa;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #800020, #a00030);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: opacity 0.3s ease, background 0.3s ease;
    z-index: 100;
    cursor: pointer;
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: linear-gradient(135deg, #a00030, #c00040);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z' fill='white'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z' fill='white'/%3e%3c/svg%3e");
}

@media (max-width: 768px) {
    .carousel {
        max-width: 500px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .carousel {
        max-width: 100%;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
        opacity: 0.8;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .page-header h1 {
        font-size: 2.25rem;
    }

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

    .about-preview,
    .about-content,
    .company-story,
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .service-card,
    .service-detail-card {
        padding: 1.5rem;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Print Styles */
@media print {
    .header,
    .whatsapp-btn,
    .cta-section,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .hero,
    .page-header {
        padding: 2rem 0;
        background: none !important;
        color: #000 !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #000;
    }

    .service-card,
    .project-card {
        border: 2px solid #ccc;
    }
}

@media (max-width: 768px) {
    #dynamicProjects {
        grid-template-columns: 1fr;
    }
}
