/* Variabili colori e base */
:root {
    --bg-color: #1B2B34;
    --accent-color: #FFA07A;
    --text-color: #ffffff;
}

header {
    background-color: rgba(27, 43, 52, 0.95);
    backdrop-filter: blur(5px);
    transition: background-color 0.3s ease;
}

/* Reset e base */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

/* Hero Section */
.contact-hero {
    position: relative;
    height: 35vh;
    min-height: 300px;
    padding-top: 4rem;
    background: linear-gradient(to bottom, #111d22, #182127, #1d262c);
    width: 100%;
}

.contact-title {
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--accent-color);
}

/* About Section */
.about-section {
    background-color: #243844;
    transition: background-color 0.3s ease;
    width: 100%;
    margin: 0;
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

/* Service Boxes */
.service-box {
    padding: 1.5rem;
    border: 1px solid rgba(255, 160, 122, 0.3);
    border-radius: 0.5rem;
    background-color: rgba(27, 43, 52, 0.5);
    transition: border-color 0.3s ease;
}

.service-box:hover {
    border-color: rgba(255, 160, 122, 0.4);
}

/* Contact Section */
.contact-section {
    background-color: #152128;
    padding: 4rem 0;
    transition: background-color 0.3s ease;
    width: 100%;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Contact Boxes - Versione migliorata */
.contact-box {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid rgba(255, 160, 122, 0.2);
    border-radius: 0.5rem;
    background-color: rgba(27, 43, 52, 0.3);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

/* Effetto glow sul bordo */
.contact-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 160, 122, 0);
    transition: all 0.4s ease;
}

/* Effetto hover combinato */
.contact-box:hover {
    transform: translateY(-5px);
    background-color: rgba(27, 43, 52, 0.5);
    box-shadow: 0 5px 15px rgba(255, 160, 122, 0.1);
}

.contact-box:hover::after {
    border-color: rgba(255, 160, 122, 0.4);
    box-shadow: inset 0 0 20px rgba(255, 160, 122, 0.1);
}

/* Animazione per i titoli */
.contact-box h3 {
    transition: all 0.3s ease;
}

.contact-box:hover h3 {
    transform: translateY(-2px);
    color: var(--accent-color);
}

/* Animazione per i link e testi */
.contact-box a,
.contact-box p {
    position: relative;
    transition: all 0.3s ease;
    z-index: 10;
}

.contact-box:hover a,
.contact-box:hover p {
    transform: translateY(2px);
}

/* Container Layout */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Links e Hover Effects */
.nav-link {
    position: relative;
    padding: 0.5rem 0;
    color: #ffffff;
}

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

.nav-link:hover::after {
    width: 100%;
}
a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.accent-link {
    color: var(--accent-color);
}

.accent-link:hover {
    color: var(--text-color);
}

/* Effetti hover per gruppo */
.group:hover .group-hover\:text-white {
    color: var(--text-color);
}

/* Animazioni */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .contact-hero {
        height: 30vh;
    }

    .section-container {
        padding: 0 1rem;
    }

    .contact-box {
        margin-bottom: 1rem;
    }
}

/* Hamburger Menu Styles */
.hamburger-container {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    transition: all 0.3s ease;
}

.menu-open .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu .nav-link {
    padding: 1rem;
    margin: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.05);  /* sfondo leggero */
    border-radius: 4px;  /* bordi arrotondati */
    transition: background-color 0.3s ease;
}

.mobile-menu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);  /* sfondo più chiaro al hover */
}

.cta-container {
    padding: 2rem;
}

.cta-inner-container {
    background: rgba(27, 43, 52, 0.9);
    border: 2px solid var(--accent-color);
    border-radius: 30px;
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.cta-button-outline {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--accent-color);
    border-radius: 15px;
    color: var(--bg-color);
    transition: all 0.3s ease;
}

.cta-button-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 160, 122, 0.2);
}

.mobile-menu {
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
    background-color: rgba(27, 43, 52, 0.95);
    backdrop-filter: blur(5px);
}

@keyframes glowingBorder {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.3;
    }
}

/* Miglioriamo anche lo stile dei testi */
.cta-container h2 {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Aggiunta dei separatori tra le sezioni */
.section-separator {
    position: relative;
}

.section-separator::after {
    content: '';
    position: absolute;
    bottom: 0;            /* cambiato da -1px a 0 */
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;          /* aumentato da 1px a 2px */
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 160, 122, 0.5) 20%,  /* aumentato da 0.3 a 0.5 */
        rgba(255, 160, 122, 0.5) 80%,  /* aumentato da 0.3 a 0.5 */
        transparent
    );
    z-index: 10;          /* aggiunto z-index */
}