/* Semideva Website Styles - Versione Finale */
:root {
    --blue: #0D99FF;
    --yellow: #FFD755;
    --dark: #1C1E24;
    --white: #FFFFFF;
    --black: #000000;
    --green: #34C759;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-stretch: condensed;
}

body {
    background-color: var(--white);
    color: var(--dark);
    overflow-x: hidden;
}

/* Header and Nav Bar */
header {
    background-color: var(--white);
    padding: 20px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    color: var(--black);
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
}

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

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    margin-left: 30px;
}

.menu a {
    color: var(--black);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
}

.menu a:hover {
    color: var(--blue);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--black);
    font-size: 24px;
}

section {
    padding: 60px 20%;
}

h1, h2 {
    font-size: 48px;
    margin-bottom: 30px;
    color: var(--dark);
    font-weight: 700;
}

h2 {
    font-size: 36px;
}

h1 {
    text-transform: uppercase;
}

p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 1140px;
    font-weight: 400;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 0;
    transition: background-color 0.3s;
    margin-top: 20px;
    height: 45px;
    line-height: 21px;
    font-weight: 500;
}

.btn:hover {
    background-color: #0A7DCB;
}

.section-title {
    position: relative;
    margin-bottom: 40px;
    font-weight: 700;
    text-transform: uppercase;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--black);
}

.text-box {
    flex: 1;
    padding: 40px;
    max-width: 1140px;
    margin: 0 auto;
}

.section-text {
    max-width: 1140px;
    margin: 0 0 40px 0;
    text-align: left;
    font-size: 18px;
    line-height: 1.6;
}

.big-image-container {
    width: 100%;
    margin: 50px 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.big-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.big-image-container:hover img {
    transform: scale(1.02);
}

footer {
    background-color: var(--white);
    color: var(--black);
    padding: 40px 5%;
    text-align: left;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.social-icons {
    margin: 20px 0;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 0;
    background-color: rgba(0, 0, 0, 0.05);
    margin: 0 10px;
    color: var(--black);
    text-decoration: none;
    line-height: 40px;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: var(--blue);
    color: var(--white);
}

/* Hero Section */
.hero {
    height: 90vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark);
    padding: 0;
}

.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-image.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

/* Who We Are Section */
.who-we-are {
    display: flex;
    align-items: center;
    background-color: var(--white);
}

/* What Section */
.what-section {
    background-color: var(--white);
    text-align: right;
}

.what-section .section-title:after {
    left: auto;
    right: 0;
}

.image-row {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    flex-wrap: wrap;
}

.image-container {
    flex: 0 0 calc(33.333% - 20px);
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.image-container img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s;
}

.image-container:hover img {
    transform: scale(1.05);
}

/* Banner Stripe Animated */
.banner-stripe {
    height: 80px;
    background-color: var(--blue);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.banner-text {
    color: var(--white);
    font-size: 36px;
    font-weight: 700;
    white-space: nowrap;
    position: absolute;
    animation: moveText 20s linear infinite;
}

@keyframes moveText {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Why Section */
.why-section {
    background-color: var(--white);
}

/* Carousel */
.carousel {
    position: relative;
    margin: 20px auto;
    max-width: 1000px;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    padding: 20px;
}

.carousel-content {
    background-color: var(--black);
    color: var(--white);
    padding: 40px;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.carousel-content h3 {
    font-weight: 600;
    margin-bottom: 15px;
}

.carousel-nav {
    text-align: center;
    margin-top: 20px;
}

.carousel-nav button {
    background: none;
    color: var(--dark);
    border: none;
    font-size: 30px;
    cursor: pointer;
    margin: 0 15px;
    padding: 0;
}

/* Where Section */
.where-section {
    background-color: var(--white);
}

.where-text {
    width: 100%;
    text-align: right;
    margin-bottom: 40px;
}

.where-section .section-title:after {
    left: auto;
    right: 0;
}

.where-image {
    width: 100%;
    margin-top: 30px;
}

.where-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Articoli Section (ex Products) */
.articoli-section, .home-articoli-section {
    background-color: var(--dark);
    color: var(--white);
}

.articoli-section h2, .home-articoli-section h2 {
    color: var(--white);
    text-align: right;
}

.articoli-section .section-title:after, .home-articoli-section .section-title:after {
    left: auto;
    right: 0;
    background-color: var(--white);
}

.articoli-carousel {
    margin: 30px auto;
    max-width: 1200px;
}

.articoli-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.articoli-container::-webkit-scrollbar {
    display: none;
}

.articolo-card {
    flex: 0 0 300px;
    margin: 0 15px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    color: var(--dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.articolo-card:hover {
    transform: translateY(-10px);
}

.articolo-image {
    height: 200px;
    background-color: var(--blue);
    position: relative;
    overflow: hidden;
}

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

.articolo-card:hover .articolo-image img {
    transform: scale(1.05);
}

.articolo-info {
    padding: 20px;
}

.articolo-info h3 {
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 600;
}

.articolo-info p {
    font-size: 16px;
    color: #666;
}

.articoli-nav {
    text-align: center;
    margin-top: 20px;
}

.articoli-nav button {
    background: none;
    color: var(--white);
    border: none;
    font-size: 30px;
    cursor: pointer;
    margin: 0 15px;
    padding: 0;
}

/* Articoli Page */
.articoli-page-section {
    background-color: var(--white);
    color: var(--dark);
}

.articoli-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 5%;
}

.more-articoli-text {
    text-align: right;
    margin-top: 40px;
    padding-right: 0%;
}

.more-articoli-text p {
    font-size: 20px;
    font-style: regular;
    color: var(--dark);
}

/* Events Page */
.events-section {
    background-color: var(--white);
}

.event-feature {
    display: flex;
    margin: 50px 0;
    align-items: center;
}

.event-image {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-image:hover img {
    transform: scale(1.05);
}

.event-content {
    flex: 0 0 50%;
    padding: 0 30px;
}

.event-title {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.event-description {
    font-size: 16px;
    line-height: 1.6;
}

.events-carousel-container {
    margin-top: 50px;
}

.events-carousel-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.events-carousel {
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
    overflow: hidden;
}

.events-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.event-card {
    flex: 0 0 300px;
    margin: 0 15px;
    background-color: var(--black);
    color: var(--white);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
}

.event-card p {
    font-size: 16px;
    opacity: 0.8;
}

.events-carousel-nav {
    text-align: center;
    margin-top: 20px;
}

.events-carousel-nav button {
    background: none;
    color: var(--dark);
    border: none;
    font-size: 30px;
    cursor: pointer;
    margin: 0 15px;
    padding: 0;
}

/* Sustainability Section */
.sustainability-section {
    background-color: var(--white);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(52, 199, 89, 0.8);
    color: white;
    padding: 15px;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-container:hover .image-overlay {
    transform: translateY(0);
}

.subsection {
    margin: 50px 0;
}

.subsection-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--dark);
    font-weight: 600;
}

.sustainability-text {
    max-width: 1140px;
    margin-bottom: 40px;
    font-size: 18px;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    background-color: var(--blue);
    color: var(--white);
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 30px auto;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-stretch: condensed;
}

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

.submit-btn {
    background-color: var(--black);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 0;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    height: 55px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-stretch: condensed;
}

.submit-btn:hover {
    background-color: #333;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transform: translateY(-100%);
        transition: transform 0.3s;
        opacity: 0;
        z-index: 999;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

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

    .menu li {
        margin: 15px 0;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    section {
        padding: 60px 5%;
    }

    .image-container {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }

    .text-box {
        padding: 20px;
    }

    .where-text {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .event-feature {
        flex-direction: column;
    }

    .event-image, .event-content {
        flex: 0 0 100%;
        width: 100%;
    }

    .event-content {
        padding: 20px 0;
    }

    .section-title, .subsection-title {
        font-size: 28px;
    }

    .articoli-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}