
/* Global Reset & Base Styles */
:root {
    --primary-color: #0A2E5E; /* Deeper, slightly desaturated blue */
    --secondary-color: #1E6091; /* Medium, more vibrant blue */
    --accent-color: #00AEEF; /* Bright, modern electric blue */
    --highlight-color: #FFC107; /* A warm yellow for subtle highlights or calls to action */
    
    --text-color: #343A40; /* Dark grey for body text */
    --text-light-color: #F8F9FA; /* Off-white for dark backgrounds */
    --heading-color: #212529; /* Very dark grey, almost black for headings */
    
    --light-bg: #f4f4f4; 
    --dark-bg: #2c3e50; 
    --white-bg: #FFFFFF;

    --border-radius: 6px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);

    --heading-font: 'Roboto', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.8;
    letter-spacing: 0.3px;
    color: #666;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.fade-in {
    animation: fadeIn 1s ease-out;
}

.slide-in-up {
    animation: slideInUp 0.8s ease-out;
}

/* Header */
header {
    background: rgba(58, 80, 107, 0.95);
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

header .logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

header .logo img:hover {
    transform: scale(1.05);
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #6ecf68;
    transition: width 0.3s ease;
}

header nav ul li a:hover {
    color: #6ecf68;
}

header nav ul li a:hover::after {
    width: 100%;
}

/* Main Content Sections */
main {
    margin-top: 80px;
}

main section {
    padding: 60px 0;
    border-bottom: none;
}

main section:nth-child(odd) {
    background-color: #fff;
}

main section:nth-child(even) {
    background-color: #f5f5f5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
    color: #3a506b;
    line-height: 1.3;
}

p.section-intro {
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 30px;
}

h2 {
    font-size: 2.4em;
    font-weight: 600;
    color: #3a506b;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #6ecf68;
    bottom: 0;
    left: 0;
}

h3 {
    font-size: 1.8em;
    font-weight: 500;
}

p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

main section ul, main section ol {
    padding-left: 40px;
    margin-bottom: 20px;
}

strong {
    font-weight: 600;
    color: #3a506b;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background: #6ecf68;
    color: #fff;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(110, 207, 104, 0.3);
    margin-top: 25px;
    text-align: center;
}

.cta-button:hover {
    background: #5dbd57;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 15px rgba(110, 207, 104, 0.4);
    text-decoration: none;
}

/* Hero Sections */
#hero-homepage, #hero-ebikes-presentation {
    background: url('../images/mem solar assiste bike.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 150px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 0;
}

#hero-homepage::before, #hero-ebikes-presentation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

#hero-homepage .container, #hero-ebikes-presentation .container {
    position: relative;
    z-index: 2;
}

#hero-homepage h1, #hero-ebikes-presentation h1 {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    animation: fadeIn 1.5s ease-out;
}

#hero-ebikes-presentation {
    background: url('../images/mem 3 wheels.webp') no-repeat center center/cover;
}

/* Products Section */
#products {
    background-color: var(--light-bg);
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    align-items: stretch;
}

.product-card {
    background-color: var(--white-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    padding: 0; 
    overflow: hidden; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.product-card img {
    width: 85%;
    height: 200px;
    object-fit: contain;
    border-radius: var(--border-radius);
    margin: 15px auto;
    transition: transform 0.4s ease;
}
.product-card:hover img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 0;
    padding: 20px 15px;
    background-color: var(--white-bg); 
    flex-grow: 1; 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Intro Section */
#intro .container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

#intro .intro-text {
    flex: 1;
}

#intro .intro-image {
    flex: 1;
}

#intro .intro-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

#intro .intro-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    filter: brightness(1.05);
}

/* Differentiation Section */
#differentiation {
    background-color: #f5f5f5;
}

#differentiation .container {
    display: flex;
    flex-direction: column;
}

#differentiation ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

#differentiation ul li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 1.1em;
}

#differentiation ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #6ecf68;
    font-weight: bold;
    font-size: 1.2em;
}

/* Business Proposition Section */
#business-proposition {
    background-color: #fff;
}

#business-proposition p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* What We Do Section */
#what-we-do .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

#what-we-do .what-we-do-image {
    flex: 1;
}

#what-we-do .what-we-do-text {
    flex: 1;
}

#what-we-do .what-we-do-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

#what-we-do .what-we-do-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    filter: brightness(1.05);
}

/* Commitment Section */
#commitment {
    text-align: center;
    background-color: #3a506b;
    padding: 40px 0;
}

#commitment h2 {
    color: #fff;
    margin-bottom: 0;
}

#commitment h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Products Section */
#products {
    text-align: center;
}

#products h2 {
    text-align: center;
    margin-bottom: 40px;
}

#products h2::after {
    left: 50%;
    transform: translateX(-50%);
}

#products .product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

#products .product-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    padding-bottom: 20px;
}

#products .product-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

#products .product-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 15px;
    transition: all 0.5s ease;
}

#products .product-item:hover img {
    filter: brightness(1.1);
}

#products .product-item p {
    font-weight: 600;
    color: #3a506b;
    font-size: 1.2rem;
    margin-bottom: 0;
    font-family: 'Poppins', sans-serif;
}

/* Latest News Section */
#latest-news {
    background-color: #f5f5f5;
}

#latest-news h2, #latest-news h3 {
    text-align: center;
}

#latest-news h2::after {
    left: 50%;
    transform: translateX(-50%);
}

#latest-news p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#latest-news strong {
    color: #3a506b;
    font-size: 1.2rem;
}

/* Capital Raising Section */
#capital-raising {
    background-color: #fff;
}

#capital-raising h2 {
    margin-bottom: 30px;
}

#capital-raising iframe {
    display: block;
    margin: 0 auto 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

/* Contact Section */
#contact {
    background-color: #f5f5f5;
    text-align: center;
}

#contact h2 {
    text-align: center;
    margin-bottom: 40px;
}

#contact h2::after {
    left: 50%;
    transform: translateX(-50%);
}

#contact form {
    max-width: 600px;
    margin: 0 auto;
}

#contact form input[type="text"],
#contact form input[type="email"],
#contact form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

#contact form input[type="text"]:focus,
#contact form input[type="email"]:focus,
#contact form textarea:focus {
    border-color: #6ecf68;
    box-shadow: 0 0 0 3px rgba(110, 207, 104, 0.2);
    outline: none;
}

#contact form textarea {
    height: 180px;
    resize: vertical;
}

#contact form button {
    display: inline-block;
    background: #6ecf68;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(110, 207, 104, 0.3);
}

#contact form button:hover {
    background: #5dbd57;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(110, 207, 104, 0.4);
}

/* Footer */
footer {
    background: #3a506b;
    color: #f5f5f5;
    text-align: center;
    padding: 40px 0;
    margin-top: 0;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer .footer-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

footer .footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .footer-links a:hover {
    color: #6ecf68;
    text-decoration: none;
}

footer p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #ccc;
}

footer a {
    color: #6ecf68;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

/* Presentation Gallery */
.presentation-gallery {
    width: 66.66%;
    margin: 40px auto;
    position: relative;
    border: 3px solid #3a506b;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-radius: var(--border-radius);
}

.video-container {
    width: 66.66%;
    margin: 40px auto;
    border: 3px solid #3a506b;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (height / width) */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.bordered-video {
    width: 66.66%;
    margin: 0 auto;
    display: block;
    border: 3px solid #3a506b;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-radius: var(--border-radius);
    overflow: hidden;
    line-height: 0; /* Removes extra space around the iframe */
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (height / width) */
    height: 0;
}

.bordered-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.presentation-container {
    display: flex;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.presentation-slide {
    min-width: 100%;
    transition: transform 0.5s ease;
}

.presentation-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: #3a506b;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: #2c3e50;
}

.fullscreen {
    cursor: pointer;
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: white;
    font-size: 24px;
    background-color: rgba(0,0,0,0.5);
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.fullscreen:hover {
    background-color: rgba(0,0,0,0.8);
}

/* CEO Presentation Section */
#ceo-presentation .presentation-content {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

#ceo-presentation .presentation-text {
    flex: 2;
    padding-right: 20px;
}

#ceo-presentation .presentation-images-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

#ceo-presentation .presentation-images-sidebar img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

#ceo-presentation .presentation-images-sidebar .image-caption {
    text-align: center;
    font-size: 0.9em;
    color: #555;
    margin-top: 5px;
}

/* Product Display Gallery */
.product-display-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.product-display-gallery .product-item {
    flex: 1 1 calc(33.33% - 40px);
    box-sizing: border-box;
    text-align: center;
}

.product-display-gallery .product-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Media Gallery */
#media-ebikes .media-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: flex-start;
}

#media-ebikes .media-item {
    flex: 0 0 calc(20% - 16px);
    box-sizing: border-box;
    text-align: center;
    padding: 0px;
    border: none;
    border-radius: 0;
    background-color: transparent;
    margin-bottom: 20px;
    max-width: 180px;
}

#media-ebikes .media-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#media-ebikes .media-item p {
    font-size: 0.9em;
    color: #333;
    margin-top: 10px;
    font-weight: bold;
}

/* KPI Table */
.kpi-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.kpi-table th, .kpi-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.kpi-table th {
    background-color: #3a506b;
    color: white;
    font-weight: bold;
}

.kpi-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.kpi-table tbody tr:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

.kpi-table tbody tr:last-child td {
    border-bottom: none;
}

.mobile-nav {
    display: none;
}

/* Stili per layout a due colonne */
.two-column {
    display: flex;
    flex-direction: row;
    gap: 20px; /* Adjust as needed */
}

.text-column {
    flex: 2; /* 2/3 width */
    padding-right: 30px; /* Adjust as needed */
}

.rd-image {
    flex: 1; /* 1/3 width */
}

.rd-image img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.rd-image img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.diff-image img {
    max-width: 60%;
    height: auto;
}

.recycling-box {
    background-color: #3a506b;
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.recycling-box h3 {
    color: white;
}

#latest-news h2,
#latest-news h3 {
    text-align: center;
}

#latest-news .two-column .text-column p,
#latest-news .two-column .text-column ul,
#latest-news .two-column .text-column li {
    text-align: left;
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .hamburger-icon {
        cursor: pointer;
        padding: 15px;
        display: inline-block;
    }

    .hamburger-icon span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 5px 0;
    }

    .mobile-links {
        display: none;
        list-style: none;
        background-color: #3a506b;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 0;
    }

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

    .mobile-links li {
        text-align: center;
        padding: 15px 0;
    }

    .mobile-links li a {
        color: #fff;
        text-decoration: none;
        font-size: 1.2rem;
        transition: color 0.3s ease;
    }

    .mobile-links li a:hover {
        color: #6ecf68; /* Or any other desired hover color */
    }

    header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    h1 {
        font-size: 2.2em;
    }
    
    h2 {
        font-size: 1.8em;
    }
    
    #hero-homepage, #hero-ebikes-presentation {
        padding: 100px 0;
    }
    
    #products .product-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    #contact form {
        padding: 0 15px;
    }

    /* Full-width sections with padding */
    .presentation-gallery,
    .video-container,
    .bordered-video,
    .container {
        width: 100%;
        padding: 0 10px;
    }

    /* Responsive iframes */
    iframe {
        width: 100%;
        height: auto;
    }

    /* Flexbox galleries */
    .presentation-slide,
    .product-display-gallery,
    .media-gallery {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .product-display-gallery .product-item,
    .media-gallery .media-item {
        flex: 1 1 45%; /* 2 columns on mobile */
        margin: 5px;
    }

    /* Stack two-column layouts */
    #intro .container,
    #differentiation .container,
    #what-we-do .container,
    .two-column,
    #ceo-presentation .presentation-content {
        flex-direction: column;
    }

    /* Reduced font sizes */
    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.4em;
    }

    h3 {
        font-size: 1.2em;
    }

    p {
        font-size: 0.95rem;
    }

    /* Center presentation gallery */
    .presentation-gallery {
        margin-left: auto;
        margin-right: auto;
    }

    /* Proportional images */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Padding for fixed header */
    main section {
        padding-top: 80px;
    }
}

@media (max-width: 576px) {
    header nav ul {
        flex-direction: column;
        align-items: center;
    }

    header nav ul li {
        margin: 5px 0;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    #hero-homepage, #hero-ebikes-presentation {
        padding: 80px 0;
    }
    
    #products .product-gallery {
        grid-template-columns: 1fr;
    }
    
    .cta-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}
