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

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #ffffff;
    color: #343738;
    line-height: 1.6;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 500;
    font-style: italic;
}

h2 {
    font-size: 2rem;
    font-weight: 500;
    font-style: italic;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
    font-style: italic;
}

h4 {
    font-size: 1rem;
    font-weight: 500;
    font-style: italic;
}

p {
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
}

button {
    font-size: 1rem;
    font-weight: 500;
    font-style: italic;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    flex-shrink: 0;
    cursor: pointer;
}

.logo img {
    height: 2rem;
    width: auto;
}

.nav-desktop {
    display: none;
    gap: 2rem;
}

.nav-item {
    background: none;
    border: none;
    color: #343738;
    font-style: italic;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: #efb428;
}

.mobile-menu-button {
    display: block;
}

.menu-toggle {
    background: none;
    border: none;
    color: #343738;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.menu-toggle:hover {
    color: #efb428;
}

.nav-mobile {
    display: none;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-mobile.active {
    display: block;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    gap: 0.25rem;
}

.mobile-nav-content .nav-item {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    transition: color 0.2s ease;
}

/* Main Content */
main {
    min-height: 100vh;
}

.page {
    min-height: 100vh;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.carousel-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 1rem;
}

.carousel-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.carousel-content p {
    font-size: 1.25rem;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(239, 180, 40, 0.8);
    color: #343738;
    border: none;
    padding: 1rem;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background-color: #efb428;
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dot.active,
.dot:hover {
    background-color: #efb428;
}

/* Product Sections */
.product-sections {
    padding: 5rem 0;
    background-color: #f9fafb;
}

.product-section {
    margin-bottom: 5rem;
}

.product-section:last-child {
    margin-bottom: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.product-content h2 {
    color: #343738;
    margin-bottom: 1.5rem;
}

.product-content p {
    color: #343738;
    margin-bottom: 2rem;
}

.feature-list {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #343738;
    font-style: italic;
}

.feature-icon {
    font-size: 1.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #efb428;
    color: #343738;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cta-button:hover {
    background-color: rgba(239, 180, 40, 0.9);
}

.arrow {
    font-size: 1.125rem;
}

.product-image {
    position: relative;
}

.product-image img {
    width: 100%;
    height: 72rem;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
    border-radius: 0.5rem;
}

/* Azienda Page Styles */
.azienda-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #ffffff, #f9fafb);
}

.hero-content {
    text-align: center;
    max-width: 64rem;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #343738;
}

.hero-content p {
    font-size: 1.5rem;
    color: #343738;
}

.storia-section,
.certificazioni-section {
    padding: 4rem 0;
}

.sede-section,
.valori-section {
    padding: 4rem 0;
    background-color: #f9fafb;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.content-text h2 {
    color: #343738;
    margin-bottom: 1.5rem;
}

.text-content {
    color: #343738;
}

.text-content p {
    margin-bottom: 1.5rem;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    color: #343738;
    margin-bottom: 1.5rem;
}

.section-header p {
    font-size: 1.25rem;
    color: #343738;
}

.valori-section {
    background-color: rgba(239, 180, 40, 0.1);
}

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

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

.valore-icon {
    width: 4rem;
    height: 4rem;
    background-color: #efb428;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.valore-icon span {
    font-size: 2rem;
    color: white;
}

.valore-item h3 {
    color: #343738;
    margin-bottom: 0.75rem;
}

.valore-item p {
    color: #343738;
}

/* Fair Banners */
.fair-banners {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.fair-banner {
    background-color: #efb428;
    color: #343738;
    border: none;
    padding: 1.5rem 1rem;
    border-radius: 0.5rem 0 0 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: 500;
    font-style: italic;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.fair-banner:hover {
    background-color: rgba(239, 180, 40, 0.9);
}

/* Quote Section */
.quote-section {
    background-color: #efb428;
    padding: 1.5rem 0;
}

.quote-toggle {
    width: 100%;
    background: none;
    border: none;
    color: #343738;
    font-weight: bold;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 2rem;
}

.quote-toggle:hover {
    background-color: rgba(239, 180, 40, 0.9);
}

.quote-arrow {
    font-size: 1.75rem;
    transition: transform 0.3s ease;
}

.quote-arrow.expanded {
    transform: rotate(180deg);
}

.quote-form {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: none;
}

.quote-form.active {
    display: block;
}

.form-container {
    max-width: 96rem;
    margin: 0 auto;
}

.form-container iframe {
    min-width: 100%;
    max-width: 100%;
    height: 75rem;
    border: none;
}

/* Footer */
.footer {
    background-color: #343738;
    color: white;
    padding: 1.5rem 0;
}

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

.footer-section h3 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.company-info {
    color: #d1d5db;
    font-size: 0.875rem;
}

.company-info p {
    margin-bottom: 0.25rem;
}

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

.social-links a {
    color: #d1d5db;
    font-size: 1.25rem;
    transition: color 0.2s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: #efb428;
}

.footer-bottom {
    border-top: 1px solid #4b5563;
    margin-top: 1rem;
    padding-top: 1rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.legal-links p {
    color: #d1d5db;
    font-size: 0.875rem;
}

.legal-links a {
    color: #efb428;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-links a:hover {
    color: rgba(239, 180, 40, 0.8);
}

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

.project-link p {
    color: #d1d5db;
    font-size: 0.875rem;
}

.project-link a {
    color: #efb428;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.project-link a:hover {
    color: rgba(239, 180, 40, 0.8);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    max-width: 28rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    color: #343738;
}

.modal-close {
    background: none;
    border: none;
    color: #343738;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #efb428;
}

.modal-body {
    padding: 1.5rem;
}

.modal-image {
    margin-bottom: 1.5rem;
}

.modal-image img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    border-radius: 0.5rem;
}

.modal-info {
    margin-bottom: 1rem;
}

.modal-info h3 {
    color: #343738;
    margin-bottom: 0.5rem;
}

.modal-info p {
    color: #efb428;
    font-weight: 500;
}

.modal-description {
    color: #343738;
    margin-bottom: 1.5rem;
}

.modal-description p {
    margin-bottom: 1rem;
}

.event-details {
    margin: 1rem 0;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #efb428;
    margin-bottom: 0.5rem;
}

.detail-icon {
    font-size: 1.125rem;
}

.modal-actions {
    margin-top: 1.5rem;
}

.modal-cta {
    width: 100%;
    background-color: #efb428;
    color: #343738;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.modal-cta:hover {
    background-color: rgba(239, 180, 40, 0.9);
}

/* Responsive Design */
@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .header-content {
        padding: 0 1.5rem;
    }

    .nav-desktop {
        display: flex;
    }

    .mobile-menu-button {
        display: none;
    }

    .nav-mobile {
        display: none !important;
    }

    .carousel-content h1 {
        font-size: 4rem;
    }

    .carousel-content p {
        font-size: 1.5rem;
    }

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

    .product-grid.reverse .product-content {
        order: 2;
    }

    .product-grid.reverse .product-image {
        order: 1;
    }

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

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

    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .legal-links,
    .project-link {
        text-align: left;
    }

    .project-link {
        text-align: right;
    }

    .valori-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .hero-content h1 {
        font-size: 5rem;
    }

    .hero-content p {
        font-size: 2rem;
    }

    .carousel-content h1 {
        font-size: 6rem;
    }

    .valori-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #efb428;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(239, 180, 40, 0.8);
}