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

:root {
    --primary-color: #EF4444;
    --secondary-color: #1E40AF;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --border-color: #E5E7EB;
    --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);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Header & Navigation */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

.logo img {
    height: 50px;
    width: auto;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

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

.btn-area-riservata {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-area-riservata:hover {
    background: #1E3A8A;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    position: relative;
    background: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 2rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-dark);
    padding: 2rem 0;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.dots {
    display: flex;
    gap: 4px;
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.dot:nth-child(1) { animation-delay: 0s; width: 8px; height: 8px; }
.dot:nth-child(2) { animation-delay: 0.2s; width: 10px; height: 10px; }
.dot:nth-child(3) { animation-delay: 0.4s; width: 12px; height: 12px; }
.dot:nth-child(4) { animation-delay: 0.6s; width: 14px; height: 14px; }
.dot:nth-child(5) { animation-delay: 0.8s; width: 16px; height: 16px; }
.dot:nth-child(6) { animation-delay: 1s; width: 18px; height: 18px; }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

.srls-text {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
}

.hero-title {
    font-size: clamp(1.75rem, 8vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    word-wrap: break-word;
    padding: 0 1rem;
}

.title-main {
    color: var(--text-dark);
}

.title-highlight {
    color: var(--primary-color);
    text-shadow: none;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 3vw, 1.25rem);
    margin-bottom: 2rem;
    color: var(--text-light);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    padding: 0 1.5rem;
}

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

.btn {
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

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

.btn-primary:hover {
    background: #DC2626;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

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

.btn-secondary:hover {
    background: #1E3A8A;
    border-color: #1E3A8A;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.3);
}

.hero-uniti-logo {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 2;
}

.hero-uniti-logo img {
    width: 120px;
    height: auto;
    opacity: 1;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    margin-top: 1.5rem;
}

/* Servizi Section */
.servizi {
    background: var(--bg-light);
}

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

.servizio-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.servizio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.servizio-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #F97316);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.servizio-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.servizio-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.servizio-description {
    color: var(--text-light);
    line-height: 1.7;
}

/* Chi Siamo Section */
.chi-siamo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.chi-siamo-text h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.chi-siamo-text h2::after {
    left: 0;
    transform: none;
}

.chi-siamo-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.chi-siamo-features {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.feature-item span {
    font-weight: 500;
    color: var(--text-dark);
}

.chi-siamo-logo {
    text-align: center;
}

.chi-siamo-logo img {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}

.logo-caption {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.6;
}

/* Contatti Section */
.contatti {
    background: var(--bg-light);
}

.contatti-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contatti-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #F97316);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.info-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.info-content p {
    color: var(--text-light);
}

.contatti-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

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

.footer-logo img {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

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

.btn-footer-area {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s;
}

.btn-footer-area:hover {
    background: #DC2626;
    transform: translateY(-2px);
}

.footer-uniti {
    margin-top: 2rem;
}

.footer-uniti img {
    width: 80px;
    height: auto;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--white);
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

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

    .hero {
        min-height: auto;
        padding: 5rem 0 3rem;
    }

    .hero-content {
        padding: 1rem 0;
    }

    .hero-badge {
        padding: 0.5rem 1rem;
        gap: 0.6rem;
        margin-bottom: 1rem;
    }

    .dots {
        gap: 3px;
    }

    .dot:nth-child(1) { width: 6px; height: 6px; }
    .dot:nth-child(2) { width: 8px; height: 8px; }
    .dot:nth-child(3) { width: 10px; height: 10px; }
    .dot:nth-child(4) { width: 12px; height: 12px; }
    .dot:nth-child(5) { width: 14px; height: 14px; }
    .dot:nth-child(6) { width: 16px; height: 16px; }

    .srls-text {
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }

    .hero-subtitle {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        margin-bottom: 1.5rem;
        padding: 0 1rem;
        line-height: 1.5;
    }

    .hero-subtitle br {
        display: none;
    }

    .hero-cta {
        flex-direction: row;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Nascondi logo UNITI solo su mobile */
    .hero-uniti-logo {
        display: none;
    }

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

    .chi-siamo-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .chi-siamo-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0 2rem;
    }

    .hero-content {
        padding: 2.5rem 0 0 0;
    }

    .hero-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: clamp(1.25rem, 6vw, 2rem);
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1.25rem;
        padding: 0 0.75rem;
    }

    .hero-cta {
        padding: 0 0.75rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    section {
        padding: 3rem 0;
    }

    .servizio-card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

/* Tablet landscape - Logo visibile */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 2rem;
    }

    .hero-uniti-logo img {
        width: 100px;
    }
}

/* Landscape mobile - Logo nascosto */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 3rem 0 2rem;
    }

    .hero-content {
        padding: 0.5rem 0;
    }

    .hero-badge {
        margin-bottom: 0.75rem;
    }

    .hero-title {
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        margin-bottom: 1rem;
    }

    .hero-cta {
        margin-bottom: 0;
    }

    /* Nascondi logo anche in landscape mobile */
    .hero-uniti-logo {
        display: none;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Animazioni */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.servizio-card,
.info-item,
.chi-siamo-content > * {
    animation: fadeInUp 0.6s ease-out;
}

/* CSS per banner cookie */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(31, 41, 55, 0.98);
    color: white;
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    display: none;
}

.cookie-banner.show {
    display: block;
}

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

.cookie-content p {
    margin: 0;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-content a {
    color: #EF4444;
    text-decoration: underline;
}

.cookie-accept {
    background: #EF4444;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.cookie-accept:hover {
    background: #DC2626;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-accept {
        width: 100%;
        max-width: 300px;
    }
}