:root {
    --color-stone-50: #fafaf9;
    --color-stone-100: #f5f5f4;
    --color-stone-300: #d6d3d1;
    --color-stone-400: #a8a29e;
    --color-stone-600: #57534e;
    --color-stone-700: #44403c;
    --color-stone-800: #292524;
    --color-stone-900: #1c1917;
    --color-amber-100: #fef3c7;
    --color-amber-400: #fbbf24;
    --color-amber-500: #f59e0b;
    --color-amber-600: #d97706;
    --color-white: #ffffff;
    --color-black: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-stone-50);
    color: var(--color-stone-800);
    transition: padding-right 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.containercard {
    align-items: center;
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--color-stone-800);
}

h2.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-stone-800);
    text-align: center;
    margin-bottom: 1rem;
}

.title-divider {
    width: 6rem;
    height: 4px;
    background-color: var(--color-amber-400);
    margin: 0 auto 4rem auto;
}

p {
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-amber-400);
    color: var(--color-stone-800);
}
.btn-primary:hover {
    background-color: var(--color-amber-500);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(1.05);
}

.btn-secondary {
    background-color: var(--color-stone-700);
    color: var(--color-white);
}
.btn-secondary:hover {
    background-color: var(--color-stone-800);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(1.05);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.bg-pattern {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23fde68a' fill-opacity='0.2'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

@keyframes bobbing {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-bobbing {
    animation: bobbing 4s ease-in-out infinite;
}

.header {
    background-color: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
}

.navbar .logo img {
    width: 50px;
    height: 40px;
    object-fit: contain;
}

.navbar .nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar .social-links {
    display: none;
    gap: 1.5rem;
}

.navbar .social-links a {
    font-weight: 500;
    color: var(--color-stone-600);
}

.navbar .social-links a:hover {
    color: var(--color-amber-500);
}

.navbar .nav-cta-button {
    display: none;
}

.navbar .menu-toggle-button {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
}

.navbar .menu-toggle-button svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-stone-800);
}

/* ===== STILI MENU LATERALE ===== */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.side-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background-color: var(--color-white);
    z-index: 99;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}
.side-menu.active {
    transform: translateX(0);
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-stone-100);
}

.side-menu-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.side-menu-close {
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-stone-600);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}
.side-menu-close:hover {
    color: var(--color-stone-900);
}

.side-menu-nav {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    flex-grow: 1;
}

.side-menu-link {
    display: block;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-stone-700);
    border-radius: 0.5rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.side-menu-link:hover {
    background-color: var(--color-stone-100);
    color: var(--color-amber-500);
}

.side-menu-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-stone-100);
}
.side-menu-footer .btn {
    width: 100%;
    text-align: center;
}


.footer {
    background-color: var(--color-stone-800);
    color: var(--color-stone-300);
    padding: 2.5rem 0;
    text-align: center;
}

.footer p:first-child {
    font-size: 1rem;
}

.footer p:last-child {
    font-size: 0.875rem;
    color: var(--color-stone-400);
    margin-top: 0.5rem;
}

section {
    padding: 5rem 0;
}
section#hero {
    padding-top: 5rem;
    padding-bottom: 2.5rem;
}
section#cta {
    padding: 6rem 0;
}

section#presentazione {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.presentazione-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.presentazione-video-wrapper {
    position: relative; 
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 3px solid var(--color-stone-800);
    background-color: var(--color-stone-800);
}

.presentazione-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.custom-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;

    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;
    
    background-color: rgba(251, 191, 36, 0.5); 

    border: none;
    border-radius: 50%; 
    cursor: pointer;

    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    transition: all 0.3s ease-in-out;
}

.custom-play-button::after {
    content: '';
    display: block; 

    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 22px solid var(--color-stone-800); 

    
    margin-left: 4px; 
}

.custom-play-button:hover {
    background-color: var(--color-amber-500); 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translate(-50%, -50%) scale(1.05);
}


.presentazione-content {
    text-align: center;
}

.presentazione-content h2.section-title {
    text-align: center;
}

.presentazione-content p {
    font-size: 1.125rem;
    color: var(--color-stone-700);
    max-width: 48rem;
    margin: 0 auto 2rem auto;
}

.presentazione-content .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}


#hero {
    background-color: var(--color-white);
    overflow: hidden;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content {
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-content h1 span {
    color: var(--color-amber-400);
}

.hero-content .subtitle {
    font-size: 1.25rem;
    color: var(--color-stone-600);
    margin-bottom: 2rem;
}

.hero-content .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

.hero-content .cta-buttons a:last-child {
    color: var(--color-amber-400);
    font-weight: 700;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 24rem;
}

#chi-siamo {
    background-color: var(--color-stone-100);
    text-align: center;
}

#chi-siamo .mission-text {
    font-size: 1.125rem;
    color: var(--color-stone-700);
    max-width: 48rem;
    margin: 0 auto;
}

#chi-siamo .mission-text strong {
    color: var(--color-stone-900);
    font-weight: 600;
}

#squadra {
    background-color: var(--color-white);
    text-align: center;
}

#squadra img {
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    max-width: 64rem;
    width: 100%;
}

#cosa-facciamo {
    background-color: var(--color-white);
}

.grid-layout-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-stone-100);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    align-items: center;
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-8px);
        align-items: center;

}

.card .icon-wrapper {
    display: inline-block;
    padding: 1rem;
    background-color: var(--color-amber-100);
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.card .icon-wrapper svg {
    width: 2rem;
    height: 2rem;
    color: var(--color-amber-500);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--color-stone-600);
}

#progetti {
    background-color: var(--color-stone-100);
}

.grid-layout-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.project-card {
    background-color: var(--color-white);
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
}

.project-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-8px);
}

.project-card img {
    width: 100%;
    height: 14rem;
    object-fit: cover;
}

.project-card .project-content {
    padding: 2rem;
    flex-grow: 1;
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.project-card p {
    color: var(--color-stone-600);
    margin-bottom: 1.5rem;
}

.project-card .project-link {
    font-weight: 700;
    color: var(--color-amber-500);
}

.project-card .project-link:hover {
    color: var(--color-amber-600);
}

#news {
    background-color: var(--color-stone-100);
}

.news-card {
    background-color: var(--color-white);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.news-card img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.news-card .news-content {
    padding: 1.5rem;
}

.news-card .news-date {
    font-size: 0.875rem;
    color: var(--color-amber-500);
    font-weight: 600;
}

.news-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.news-card p {
    color: var(--color-stone-600);
    margin-bottom: 1rem;
}

.news-card .news-link {
    font-weight: 700;
    color: var(--color-amber-500);
}

.news-card .news-link:hover {
    color: var(--color-amber-600);
}

#opportunita {
    background-color: var(--color-stone-700);
    color: var(--color-white);
    text-align: center;
}

#opportunita h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

#opportunita p {
    font-size: 1.25rem;
    color: var(--color-stone-300);
    max-width: 40rem;
    margin: 0 auto 2.5rem auto;
}

#opportunita .btn-primary {
    font-size: 1.125rem;
    color: var(--color-stone-800);
}

@media (min-width: 768px) {
    .navbar .social-links {
        display: flex;
    }
    .navbar .nav-cta-button {
        display: block;
    }

    .navbar .menu-toggle-button {
        margin-left: 0.5rem;
    }

    .presentazione-layout {
        grid-template-columns: 1fr 1.5fr; 
        gap: 4rem;
    }
    
    .presentazione-video-wrapper {
        max-width: 350px;
        justify-self: center; 
    }

    .presentazione-content {
        text-align: left;
    }

    .presentazione-content h2.section-title {
        text-align: left;
    }

    .presentazione-content .title-divider {
        margin: 0 0 2rem 0; 
    }

    .presentazione-content p {
        margin: 0 0 2rem 0;
    }

    .presentazione-content .cta-buttons {
        justify-content: flex-start;
    }
    
    h2.section-title {
        font-size: 2.25rem;
    }

    #hero {
        padding-top: 8rem;
        padding-bottom: 5rem;
    }
    
    .hero-layout {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-content {
        text-align: left;
    }

    .hero-content h1 {
        font-size: 3.75rem;
    }
    
    .hero-content .cta-buttons {
        justify-content: flex-start;
    }
    
    .hero-image img {
        max-width: 28rem;
    }
    
    .grid-layout-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-layout-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    #opportunita h2 {
        font-size: 2.5rem;
    }
}