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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Verdana, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    overflow-x: hidden;
    background: #fafafa;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: Verdana, sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a472a;
}

.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a472a;
    position: relative;
    font-weight: 900;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #27ae60, #2ecc71, #d4af37);
    border-radius: 2px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #1a472a 0%, #27ae60 100%);
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    padding: 1.2rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 2.5rem;
    color: white;
    margin: 0;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: Verdana, sans-serif;
}

.logo-text span {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: block;
    margin-top: -8px;
    letter-spacing: 2px;
    font-family: Verdana, sans-serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    font-family: Verdana, sans-serif;
}

.nav-link.active,
.nav-link:hover {
    color: #d4af37;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(45deg, #d4af37, #f39c12);
    transition: width 0.4s ease;
    border-radius: 2px;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    width: 28px;
    height: 3px;
    background: white;
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 2px;
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 400;
    font-family: Verdana, sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 5rem;
    color: #d4af37;
    margin-bottom: 1rem;
    font-weight: 900;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    font-family: Verdana, sans-serif;
}

.hero-tagline {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 2.5rem;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: Verdana, sans-serif;
}

.cta-button {
    display: inline-block;
    background: transparent;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-family: Verdana, sans-serif;
}

.cta-button:hover {
    background: white;
    color: #0d4f1c;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Settori Grid */
.settori-grid {
    padding: 80px 0;
    background: white;
}

.settori-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.settore-section {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.settore-section:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.settore-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.settore-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.settore-section:hover .settore-image img {
    transform: scale(1.1);
}

.settore-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.settore-overlay h3 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.settore-overlay h4 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.settore-button {
    display: inline-block;
    background: transparent;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.settore-button:hover {
    background: white;
    color: #0d4f1c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Tre Blocchi con Effetto Slide */
.tre-blocchi {
    padding: 120px 0;
    background: white;
}

.blocchi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blocco-card {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.4s ease;
}

.blocco-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blocco-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(26, 71, 42, 0.8), rgba(39, 174, 96, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blocco-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.card-overlay h4 {
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.card-content {
    padding: 2rem;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.card-content h3 {
    font-size: 1.8rem;
    color: #1a472a;
    margin-bottom: 1rem;
    font-weight: 900;
}

.card-content p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: center;
    font-style: italic;
}

.click-hint {
    font-size: 0.9rem;
    margin-top: 1rem;
    opacity: 0.8;
    font-weight: 500;
}

/* Slide Espandibili */
.slide-content {
    margin-top: 3rem;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 3px solid #27ae60;
    animation: slideDown 0.5s ease-out;
}

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

.slide-header {
    background: linear-gradient(45deg, #1a472a, #27ae60);
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slide-header h2 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.close-slide {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-slide:hover {
    background: white;
    color: #1a472a;
    transform: scale(1.1);
}

.slide-text {
    padding: 3rem;
}

.slide-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    text-align: justify;
}

.slide-text p:last-child {
    margin-bottom: 0;
}

/* Responsive per le slide */
@media (max-width: 768px) {
    .slide-header {
        padding: 1.5rem;
    }
    
    .slide-header h2 {
        font-size: 2rem;
    }
    
    .close-slide {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .slide-text {
        padding: 2rem;
    }
    
    .slide-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .slide-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .slide-header h2 {
        font-size: 1.5rem;
    }
    
    .slide-text {
        padding: 1.5rem;
    }
    
    .slide-text p {
        font-size: 0.95rem;
    }
}

.card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

/* Responsive per i blocchi */
@media (max-width: 768px) {
    .blocchi-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blocco-card {
        height: 450px;
    }
    
    .card-image {
        height: 250px;
    }
    
    .card-content {
        height: 200px;
        padding: 1.5rem;
    }
    
    .card-overlay h3 {
        font-size: 1.5rem;
    }
    
    .card-overlay h4 {
        font-size: 1.1rem;
    }
    
    .card-content h3 {
        font-size: 1.5rem;
    }
    
    .card-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .blocco-card {
        height: 400px;
    }
    
    .card-image {
        height: 200px;
    }
    
    .card-content {
        height: 200px;
        padding: 1rem;
    }
    
    .card-overlay h3 {
        font-size: 1.3rem;
    }
    
    .card-overlay h4 {
        font-size: 1rem;
    }
    
    .card-content h3 {
        font-size: 1.3rem;
    }
    
    .card-content p {
        font-size: 0.85rem;
    }
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.gallery-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gallery-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.gallery-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.gallery-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 3rem;
    font-weight: 900;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Chi Siamo Section */
.chi-siamo {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
    position: relative;
}

.chi-siamo-content-extended {
    max-width: 1000px;
    margin: 0 auto;
}

.chi-siamo-text-extended h2 {
    font-size: 3rem;
    color: #1a472a;
    margin-bottom: 2rem;
    font-weight: 900;
    text-align: center;
}

.chi-siamo-text-extended h3 {
    font-size: 2.2rem;
    color: #27ae60;
    margin: 2.5rem 0 1.5rem;
    font-weight: 700;
    border-bottom: 3px solid #27ae60;
    padding-bottom: 0.5rem;
}

.chi-siamo-text-extended h4 {
    font-size: 1.8rem;
    color: #1a472a;
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.chi-siamo-text-extended p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: justify;
}

/* Contatti Section */
.contatti {
    padding: 120px 0;
    background: white;
    position: relative;
}

.contatti-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contatto-colonna {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contatto-item {
    display: flex;
    align-items: flex-start;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
    border-radius: 15px;
    transition: all 0.4s ease;
    border-left: 5px solid #27ae60;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
}

.contatto-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contatto-item i {
    font-size: 2rem;
    color: #27ae60;
    margin-right: 1.5rem;
    margin-top: 0.5rem;
}

.contatto-item h3 {
    color: #1a472a;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.contatto-item p {
    color: #7f8c8d;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive per contatti */
@media (max-width: 768px) {
    .contatti-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contatto-item {
        padding: 1.5rem;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a472a 0%, #27ae60 100%);
    color: white;
    padding: 80px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

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

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.footer-section ul li a:hover {
    color: #2ecc71;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.4s ease;
    font-size: 1.3rem;
}

.social-links a:hover {
    background: #2ecc71;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 1.1rem;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: linear-gradient(135deg, #1a472a 0%, #27ae60 100%);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.4s;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        padding: 3rem 0;
        border-radius: 0 0 20px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .nav-menu .nav-link {
        color: white;
        font-weight: 500;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        position: relative;
        padding: 0.5rem 0;
        font-family: Verdana, sans-serif;
    }
    
    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: #d4af37;
        transform: translateY(-2px);
    }
    
    .nav-menu .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 3px;
        background: linear-gradient(45deg, #d4af37, #f39c12);
        transition: width 0.4s ease;
        border-radius: 2px;
    }
    
    .nav-menu .nav-link.active::after,
    .nav-menu .nav-link:hover::after {
        width: 60%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 3rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .settori-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .settore-section {
        height: 300px;
    }
    
    .settore-overlay h3 {
        font-size: 2rem;
    }
    
    .settore-overlay h4 {
        font-size: 1.2rem;
    }
    
    .gallery-title {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .chi-siamo-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .gallery-grid-small {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid-small img:first-child {
        grid-column: 1;
    }
    
    .contatti-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .settore-section {
        height: 250px;
    }
    
    .settore-overlay h3 {
        font-size: 1.8rem;
    }
    
    .settore-overlay h4 {
        font-size: 1.1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .contatto-item {
        padding: 1.5rem;
    }
    
    .nav-logo h1 {
        font-size: 2rem;
    }
}