/* 
* Motachurle Center - Main Stylesheet
* Author: Motachurle Center
* Version: 1.0
*/

/* Base Styles & Reset
-------------------------------------------------- */
:root {
    --primary-color: #e53012;
    --secondary-color: #333333;
    --accent-color: #0072ce;
    --text-color: #333333;
    --light-text: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #666666;
    --border-color: #dddddd;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --footer-background: #222222;
    --main-font: 'Helvetica Neue', Arial, sans-serif;
    --heading-font: 'Helvetica Neue', Arial, sans-serif;
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 10px = 1rem */
}

body {
    font-family: var(--main-font);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1.6rem;
    overflow-x: hidden;
    background-color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography
-------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

h1 {
    font-size: 3.6rem;
}

h2 {
    font-size: 3rem;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
}

h2:after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 1.5rem auto 0;
}

h3 {
    font-size: 2.2rem;
}

h4 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5rem;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
    font-size: 1.8rem;
    color: var(--dark-gray);
}

/* Buttons
-------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: #c42a10;
    color: var(--light-text);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--light-text);
}

.btn-secondary:hover {
    background-color: #005ca3;
    color: var(--light-text);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-tertiary:hover {
    background-color: var(--accent-color);
    color: var(--light-text);
}

/* Header
-------------------------------------------------- */
header {
    background-color: #ffffff;
    box-shadow: var(--box-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1.5rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: auto;
    height: 60px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 2.5rem;
}

nav ul li a {
    color: var(--secondary-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.5rem;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

/* Hero Section
-------------------------------------------------- */
.hero {
    padding: 15rem 0 8rem;
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    flex: 0 0 50%;
    padding-right: 4rem;
}

.hero-content h1 {
    margin-bottom: 2rem;
    font-size: 4.2rem;
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--dark-gray);
}

.hero-image {
    flex: 0 0 50%;
    text-align: center;
    margin-top: 2rem;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Chi Siamo Section
-------------------------------------------------- */
.chi-siamo {
    padding: 8rem 0;
    background-color: #ffffff;
}

.section-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.text-content {
    flex: 0 0 48%;
}

.values {
    flex: 0 0 48%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.value-item {
    flex: 0 0 100%;
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
    text-align: center;
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.value-icon {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem;
}

.value-item h3 {
    margin-bottom: 1rem;
}

.value-item p {
    color: var(--dark-gray);
}

/* Servizi Section
-------------------------------------------------- */
.servizi {
    padding: 8rem 0;
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.service-card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    padding: 2rem;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img, .service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    margin-bottom: 1.5rem;
}

.service-card p {
    color: var(--dark-gray);
}

/* Ricambi Section
-------------------------------------------------- */
.ricambi {
    padding: 8rem 0;
    background-color: #ffffff;
}

.parts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 5rem;
}

.part-card {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    padding: 2rem;
    text-align: center;
}

.part-card:hover {
    transform: translateY(-5px);
}

.part-card img {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
}

.part-card h3 {
    margin-bottom: 1.5rem;
}

.part-card p {
    color: var(--dark-gray);
}

.brands-slider {
    margin-top: 5rem;
    text-align: center;
}

.brands-slider h3 {
    margin-bottom: 3rem;
}

.brands-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.brand {
    margin: 1.5rem;
    text-align: center;
}

.brand-icon {
    fill: none;
    stroke: var(--dark-gray);
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
}

.brand span {
    display: block;
    color: var(--dark-gray);
    font-size: 1.4rem;
}

/* Testimonianze Section
-------------------------------------------------- */
.testimonianze {
    padding: 8rem 0;
    background-color: var(--light-gray);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    padding: 0 2rem;
}

.testimonial-content:before,
.testimonial-content:after {
    content: '"';
    font-size: 4rem;
    color: var(--medium-gray);
    position: absolute;
    height: 3rem;
    line-height: 0.9;
}

.testimonial-content:before {
    top: 0;
    left: 0;
}

.testimonial-content:after {
    bottom: -1rem;
    right: 0;
    transform: rotate(180deg);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-icon {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 40px;
    height: 40px;
    margin-right: 1.5rem;
}

.author-info h4 {
    margin-bottom: 0.5rem;
}

.author-info p {
    color: var(--dark-gray);
    margin-bottom: 0;
    font-size: 1.4rem;
}

/* Blog Preview Section
-------------------------------------------------- */
.blog-preview {
    padding: 8rem 0;
    background-color: #ffffff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.blog-card {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 2rem;
}

.blog-content h3 {
    margin-bottom: 1rem;
}

.blog-content p {
    margin-bottom: 2rem;
    color: var(--dark-gray);
}

.blog-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Contatti Section
-------------------------------------------------- */
.contatti {
    padding: 8rem 0;
    background-color: var(--light-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.contact-info {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--box-shadow);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.info-icon {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 24px;
    height: 24px;
    margin-right: 1.5rem;
    margin-top: 0.3rem;
}

.info-item h3 {
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.social-links {
    margin-top: 3rem;
}

.social-links h3 {
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
}

.social-icon {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 24px;
    height: 24px;
    margin-right: 2rem;
    transition: var(--transition);
}

.social-icon:hover {
    stroke: var(--primary-color);
}

.contact-form {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--box-shadow);
}

.contact-form h3 {
    margin-bottom: 0.5rem;
}

.contact-form p {
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

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

.form-group input {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1.6rem;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--accent-color);
    outline: none;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 1rem;
}

.form-group.checkbox label {
    margin-bottom: 0;
}

/* Footer
-------------------------------------------------- */
footer {
    background-color: var(--footer-background);
    color: var(--light-text);
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-info {
    grid-column: span 1;
}

.footer-logo {
    width: auto;
    height: 50px;
    margin-bottom: 1.5rem;
}

.footer-links h4, .footer-contact h4 {
    color: var(--light-text);
    margin-bottom: 2rem;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a {
    color: var(--medium-gray);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--light-text);
}

.footer-contact p {
    margin-bottom: 1rem;
    color: var(--medium-gray);
}

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

.footer-bottom p {
    margin-bottom: 1rem;
    color: var(--medium-gray);
    font-size: 1.4rem;
}

/* Thank You Page
-------------------------------------------------- */
.thank-you {
    padding: 15rem 0 8rem;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    fill: none;
    stroke: var(--success-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 80px;
    height: 80px;
    margin: 0 auto 3rem;
}

/* Legal Pages
-------------------------------------------------- */
.legal-page {
    padding: 15rem 0 8rem;
}

.legal-page h1 {
    margin-bottom: 3rem;
}

.legal-content {
    background-color: var(--light-gray);
    padding: 4rem;
    border-radius: var(--border-radius);
}

.last-updated {
    color: var(--dark-gray);
    margin-bottom: 3rem;
    font-style: italic;
}

.legal-content h2 {
    text-align: left;
    margin-top: 4rem;
}

.legal-content h2:after {
    margin-left: 0;
}

.legal-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.legal-content ul li, .legal-content ol li {
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style-type: disc;
}

.legal-content ol {
    list-style-type: decimal;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.cookie-table th, .cookie-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cookie-table th {
    background-color: #f0f0f0;
    font-weight: 600;
}

/* Blog
-------------------------------------------------- */
.blog-header {
    padding: 15rem 0 5rem;
    background-color: var(--light-gray);
    text-align: center;
}

.blog-header h1 {
    margin-bottom: 1rem;
}

.blog-header p {
    font-size: 1.8rem;
    color: var(--dark-gray);
}

.blog-articles {
    padding: 5rem 0;
}

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

.blog-meta {
    display: flex;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
    font-size: 1.4rem;
}

.blog-meta .date {
    margin-right: 1.5rem;
}

.blog-meta .category {
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 0.3rem 1rem;
    border-radius: 2rem;
}

.blog-newsletter {
    background-color: var(--light-gray);
    padding: 6rem 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background-color: #ffffff;
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.newsletter-content h2 {
    margin-bottom: 1.5rem;
}

.newsletter-content p {
    margin-bottom: 3rem;
    color: var(--dark-gray);
}

/* Blog Article
-------------------------------------------------- */
.blog-article {
    padding: 15rem 0 5rem;
}

.article-header {
    text-align: center;
    margin-bottom: 4rem;
}

.article-meta {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
    font-size: 1.4rem;
}

.article-meta span {
    margin: 0 1rem;
}

.article-meta .category {
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 0.3rem 1rem;
    border-radius: 2rem;
}

.article-featured-image {
    margin-bottom: 4rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    text-align: left;
    margin-top: 4rem;
}

.article-content h2:after {
    margin-left: 0;
}

.article-content h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.article-content ul li, .article-content ol li {
    margin-bottom: 1rem;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-cta {
    background-color: var(--light-gray);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 5rem 0;
}

.article-cta p {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.article-share {
    margin: 5rem 0;
    text-align: center;
}

.article-share h3 {
    margin-bottom: 2rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
}

.share-button {
    display: flex;
    align-items: center;
    margin: 0 1rem;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.4rem;
    transition: var(--transition);
}

.share-button.facebook {
    background-color: #3b5998;
    color: var(--light-text);
}

.share-button.twitter {
    background-color: #1da1f2;
    color: var(--light-text);
}

.share-button.whatsapp {
    background-color: #25d366;
    color: var(--light-text);
}

.share-button.email {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.share-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 16px;
    height: 16px;
    margin-right: 0.8rem;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    margin: 5rem 0;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.prev-article, .next-article {
    flex: 0 0 48%;
}

.next-article {
    text-align: right;
}

.article-navigation span {
    display: block;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.article-navigation a {
    font-weight: 500;
    font-size: 1.8rem;
}

.related-articles {
    background-color: var(--light-gray);
    padding: 6rem 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

/* Responsive Styles
-------------------------------------------------- */
@media screen and (max-width: 1024px) {
    html {
        font-size: 56.25%; /* 9px = 1rem */
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 50%; /* 8px = 1rem */
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        flex: 0 0 100%;
        padding-right: 0;
        margin-bottom: 4rem;
        text-align: center;
    }
    
    .hero-image {
        flex: 0 0 100%;
    }
    
    .section-content {
        flex-direction: column;
    }
    
    .text-content, .values {
        flex: 0 0 100%;
    }
    
    .text-content {
        margin-bottom: 4rem;
    }
    
    .services-grid, .parts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid, .related-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    header {
        padding: 1rem 0;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: var(--box-shadow);
        transition: var(--transition);
        z-index: 1100;
        padding: 8rem 2rem 2rem;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 1.5rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1200;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .services-grid, .parts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .share-button {
        margin: 0.5rem;
    }
    
    .article-navigation {
        flex-direction: column;
    }
    
    .prev-article, .next-article {
        flex: 0 0 100%;
        margin-bottom: 2rem;
    }
    
    .next-article {
        text-align: left;
    }
}
