:root {
    --primary-color: #2e7d32;
    --primary-light: #4caf50;
    --primary-dark: #1b5e20;
    --text-on-primary: #ffffff;
    --background-color: #ffffff;
    --text-color: #333333;
    --secondary-text: #666666;
    --light-grey: #f5f5f5;
    --border-color: #eeeeee;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    --section-padding: 80px 0;
    --transition: all 0.3s ease;
    --focus-ring: 0 0 0 3px rgba(46, 125, 50, 0.5);
    --navbar-height: 70px;
    --mobile-navbar-height: 60px;
    --sidebar-width: 250px;
}

[data-theme="dark"] {
    --primary-color: #4caf50;
    --primary-light: #66bb6a;
    --primary-dark: #388e3c;
    --text-on-primary: #ffffff;
    --background-color: #121212;
    --text-color: #f5f5f5;
    --secondary-text: #bbbbbb;
    --light-grey: #1e1e1e;
    --border-color: #333333;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    --hover-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    --focus-ring: 0 0 0 3px rgba(76, 175, 80, 0.5);
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    line-height: 1.2;
    color: inherit;
}

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

a:focus {
    outline: none;
    box-shadow: var(--focus-ring);
}

ul {
    list-style: none;
}

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

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--text-on-primary);
    padding: 8px 16px;
    z-index: 1100;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: none;
    box-shadow: var(--focus-ring);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-text);
    max-width: 600px;
    margin: 1.5rem auto 0;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    border: 2px solid var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn:focus {
    outline: none;
    box-shadow: var(--focus-ring);
}

.btn:active {
    transform: translateY(1px);
}

.btn.outline {
    background-color: transparent;
    color: var(--primary-color);
}

.btn.outline:hover {
    background-color: var(--primary-color);
    color: var(--text-on-primary);
}

.btn-secondary {
    background-color: var(--light-grey);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.card {
    background-color: var(--background-color);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

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

.navbar {
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    padding: 0.75rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(46, 125, 50, 0.95);
    backdrop-filter: blur(10px);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-on-primary);
    display: flex;
    align-items: center;
    z-index: 100;
}

.logo:focus {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: 4px;
}

.logo span {
    color: #e0f2f1;
    font-weight: 300;
}

.logo-icon {
    margin-right: 8px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: var(--transition);
}

.menu li {
    position: relative;
}

.menu a {
    color: var(--text-on-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
}

.menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.menu a:hover:after,
.menu a:focus:after,
.menu a[aria-current="page"]:after {
    width: 100%;
}

.menu a:focus {
    outline: none;
    box-shadow: var(--focus-ring);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-on-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    z-index: 100;
}

.mobile-menu-btn:focus {
    outline: none;
    box-shadow: var(--focus-ring);
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-on-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:focus {
    outline: none;
    box-shadow: var(--focus-ring);
}

.hero {
    min-height: 100vh;
    padding-top: var(--navbar-height);
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8)), 
                url('../image/cover.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
}

[data-theme="dark"] .hero {
    background: linear-gradient(rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.8)), 
                url('../image/cover.webp') center/cover no-repeat;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 2rem;
    color: var(--text-color);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.services {
    background-color: var(--light-grey);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.service-card {
    height: 100%;
    background-color: var(--background-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.service-card:focus-within {
    box-shadow: var(--focus-ring), var(--card-shadow);
}

.service-card-header {
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    padding: 1.5rem;
    text-align: center;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.service-icon i {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition);
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.service-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-description {
    margin-bottom: 1.5rem;
}

.service-features {
    margin-top: auto;
}

.service-features li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.product-card {
    height: 100%;
    background-color: var(--background-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.product-card:focus-within {
    box-shadow: var(--focus-ring), var(--card-shadow);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.product-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.product-description {
    color: var(--secondary-text);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about {
    background-color: var(--light-grey);
    padding: 5rem 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    margin-top: 2rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.about-image {
    position: relative;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    height: auto;
    padding: 1rem;
    background-color: var(--background-color);
    box-shadow: var(--card-shadow);
    border-radius: 8px;
    transform: rotate(-2deg);
    transition: var(--transition);
}

.about-image:hover {
    transform: rotate(0deg);
    box-shadow: var(--hover-shadow);
}

.about-image:hover::before {
    top: -0.75rem;
    left: -0.75rem;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: var(--transition);
}

.about-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.tech-profile {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    background-color: var(--background-color);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.tech-avatar {
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.tech-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.tech-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.tech-info p {
    font-size: 1rem;
    line-height: 1.6;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--background-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.repair-services {
    background-color: var(--background-color);
    padding: var(--section-padding);
}

.repair-container {
    margin: 2rem auto 0;
    max-width: 900px;
    padding: 0 1.5rem;
    background-color: var(--background-color);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.repair-section {
    margin-bottom: 3.5rem;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--background-color);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.repair-section:hover {
    transform: translateY(-5px);
}

.repair-section:last-child {
    margin-bottom: 0;
    padding-bottom: 2rem;
    border-bottom: none;
}

.repair-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 0.75rem;
}

.repair-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.repair-section:hover h3::after {
    width: 100px;
}

.repair-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.feature-list {
    margin: 1.5rem 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.feature-list li:hover {
    background-color: var(--light-grey);
}

.feature-icon {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 1.1rem;
    min-width: 1.5rem;
    text-align: center;
}

.feature-list-two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.why-choose-us {
    margin-top: 2.5rem;
    background-color: var(--light-grey);
    padding: 2rem;
    border-radius: 10px;
}

.why-choose-us h3 {
    text-align: center;
    margin-bottom: 1.75rem;
    font-size: 1.5rem;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.why-choose-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--background-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

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

.feature-icon-large {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.why-choose-item h4 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.why-choose-item p {
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.testimonials {
    background-color: var(--background-color);
    overflow: hidden;
}

.testimonials-container {
    position: relative;
    margin-top: 2rem;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease;
    margin-bottom: 1.5rem;
    overflow: visible;
}

.testimonial-slide {
    flex: 0 0 calc(33.333% - 20px);
    min-width: calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    padding: 0 10px;
    box-sizing: border-box;
}

.testimonial-card {
    background-color: var(--light-grey);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 4rem;
    color: rgba(76, 175, 80, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    padding-left: 1rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.author-info {
    text-align: center;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.control-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.control-btn:focus {
    outline: none;
    box-shadow: var(--focus-ring);
}

.indicator-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

[data-theme="dark"] .testimonial-author {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.contact {
    background-color: var(--light-grey);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    padding: 2.5rem;
    border-radius: 10px;
    height: 100%;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.map-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    display: block;
    border-radius: 10px 10px 0 0;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-text {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
}

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

.map-image-container:hover .map-overlay {
    opacity: 1;
}

.location-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.location-details {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.location-address, .location-hours {
    display: flex;
    align-items: flex-start;
}

.highlight-icon {
    background-color: rgba(255, 255, 255, 0.3);
    padding: 0.8rem;
    font-size: 1.2rem;
    border-radius: 50%;
    margin-right: 1rem;
}

.location-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: white;
}

.location-details address, .location-details p {
    font-style: normal;
    line-height: 1.5;
    font-size: 0.95rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-details li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.contact-details h4 {
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.contact-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.directions-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: var(--transition);
}

.directions-link:hover {
    color: white;
    text-decoration: underline;
}

.directions-link i {
    font-size: 0.8rem;
    margin-left: 0.3rem;
}

.brt-info {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.brt-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.brt-info-hours {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.75rem;
}

.brt-info-hours span {
    display: inline-block;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover, 
.social-icon:focus {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.social-icon:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.contact-form {
    background-color: var(--background-color);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

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

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
}

.form-check-input {
    margin-top: 0.3rem;
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.form-check-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

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

.fermopoint-banner {
    background-color: var(--light-grey);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
}

.fermopoint-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: 1;
}

.fermopoint-container {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.fermopoint-content {
    padding-right: 1rem;
}

.fermopoint-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    transform: translateY(0);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

.fermopoint-banner h2 {
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    margin-bottom: 1.25rem;
    color: var(--primary-dark);
    line-height: 1.3;
}

.fermopoint-banner h2 .highlight {
    color: var(--primary-color);
    position: relative;
}

.fermopoint-banner h2 .highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 6px;
    bottom: -6px;
    left: 0;
    background-color: var(--primary-light);
    opacity: 0.3;
    border-radius: 3px;
}

.fermopoint-banner p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

.fermopoint-features {
    margin-bottom: 1.75rem;
}

.fermopoint-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.fermopoint-features li i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

.fermopoint-image {
    position: relative;
}

.fermopoint-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: transform 0.5s ease;
}

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

footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 4rem 0 1.5rem;
}

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

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    color: #fff;
    position: relative;
    padding-bottom: 0.6rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--primary-light);
    bottom: 0;
    left: 0;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #bdc3c7;
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 0.5rem;
}

.footer-links a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
    border-radius: 3px;
}

.company-info {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.company-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #a0a0a0;
}

.footer-contact-info {
    margin-top: 1rem;
}

.footer-contact-info p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact-info i {
    margin-right: 0.8rem;
    color: var(--primary-light);
    min-width: 1.2rem;
}

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

.developer-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #a0a0a0;
}

.developer-info a {
    color: var(--primary-light);
    transition: var(--transition);
    position: relative;
}

.developer-info a:hover {
    color: #ffffff;
}

.developer-info a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.developer-info a:hover::after,
.developer-info a:focus::after {
    width: 100%;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(46, 125, 50, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0);
    }
}

.scroll-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

.scroll-top:focus {
    outline: none;
    box-shadow: var(--focus-ring), 0 4px 10px rgba(0, 0, 0, 0.2);
    animation-play-state: paused;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    font-size: 0.95rem;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.3s ease;
    max-height: 100vh;
    overflow-y: auto;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cookie-header h2 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-dark);
}

.cookie-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--secondary-text);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.cookie-close:hover {
    background-color: var(--light-grey);
    color: var(--text-color);
}

.cookie-close:focus {
    outline: none;
    box-shadow: var(--focus-ring);
}

.cookie-body {
    margin-bottom: 1rem;
}

.cookie-body p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 8px;
    background-color: var(--light-grey);
    transition: var(--transition);
}

.cookie-option:hover {
    background-color: rgba(76, 175, 80, 0.05);
}

.cookie-option input[type="checkbox"] {
    margin-top: 0.25rem;
    margin-right: 1rem;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.cookie-option label {
    flex: 1;
    cursor: pointer;
}

.option-name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.option-description {
    display: block;
    font-size: 0.85rem;
    color: var(--secondary-text);
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cookie-actions .btn,
.cookie-actions .btn-secondary {
    flex: 1 1 auto;
    min-width: 150px;
    margin: 0;
    text-align: center;
}

.cookie-footer {
    font-size: 0.8rem;
    color: var(--secondary-text);
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.cookie-footer a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-footer a:hover {
    color: var(--primary-dark);
}

.cookie-info {
    margin: 0;
}

[data-theme="dark"] .cookie-option:hover {
    background-color: rgba(76, 175, 80, 0.1);
}

.accessibility-panel {
    position: fixed;
    right: auto;
    left: 20px;
    bottom: 90px;
    z-index: 998;
    display: flex;
    flex-direction: column;
}

.accessibility-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-left: auto;
    border: none;
    transition: var(--transition);
}

.accessibility-toggle:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.accessibility-toggle:focus {
    outline: none;
    box-shadow: var(--focus-ring), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.accessibility-options {
    position: absolute;
    bottom: 60px;
    right: auto;
    left: 0;
    background-color: var(--background-color);
    border-radius: 10px;
    padding: 1.5rem;
    width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: scale(0);
    transform-origin: bottom left;
    transition: transform 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.accessibility-panel.active .accessibility-options {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

.accessibility-options h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.accessibility-option {
    margin-bottom: 0.75rem;
}

.accessibility-btn {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 5px;
    background: none;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    color: var(--text-color);
}

.accessibility-btn:hover {
    background-color: var(--light-grey);
}

.accessibility-btn:focus {
    outline: none;
    box-shadow: var(--focus-ring);
}

.accessibility-btn i {
    width: 20px;
    margin-right: 10px;
    color: var(--primary-color);
}

.accessibility-btn span {
    font-size: 0.9rem;
}

.accessibility-btn.active {
    background-color: rgba(76, 175, 80, 0.1);
    border-color: var(--primary-color);
}

.accessibility-toggle-container {
    margin-left: 1rem;
    display: flex;
    align-items: center;
}

body[data-text-size="large"] {
    font-size: 18px;
}

body[data-text-size="larger"] {
    font-size: 20px;
}

body[data-high-contrast="true"] {
    --primary-color: #008000;
    --primary-light: #00a000;
    --primary-dark: #006000;
    --text-color: #000000;
    --background-color: #ffffff;
    --secondary-text: #333333;
    --border-color: #000000;
}

body[data-dyslexic-font="true"] {
    font-family: 'OpenDyslexic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.5px;
    word-spacing: 2px;
    line-height: 1.8;
}

@media (max-width: 991px) {
    .testimonial-slide {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .testimonial-slide {
        flex: 0 0 calc(50% - 20px);
        min-width: calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 992px) {
    .fermopoint-container {
        grid-template-columns: 1fr;
    }
    
    .fermopoint-content {
        order: 2;
        padding-right: 0;
    }
    
    .fermopoint-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .feature-list-two-col {
        grid-template-columns: 1fr;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        margin-bottom: 2rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .tech-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .tech-avatar {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .location-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .repair-container {
        padding: 0 1rem;
    }
    
    .repair-section {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        position: relative;
    }

    .menu {
        position: fixed;
        top: var(--navbar-height);
        left: -100%;
        width: 80%;
        height: calc(100vh - var(--navbar-height));
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem;
        transition: all 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .menu.active {
        left: 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }

    .menu li {
        width: 100%;
        margin: 0.5rem 0;
    }

    .menu a {
        display: block;
        width: 100%;
        padding: 0.75rem;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .accessibility-toggle-container {
        margin-left: 0;
        margin-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1rem;
    }
    
    .cookie-actions {
        flex-direction: column;
    }
    
    .cookie-actions .btn,
    .cookie-actions .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .fermopoint-actions {
        flex-direction: column;
    }
    
    .fermopoint-actions .btn {
        width: 100%;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner.show {
    animation: slideUp 0.5s forwards;
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }
}

.cookie-settings-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 997;
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    border: none;
    border-radius: 30px;
    padding: 8px 15px;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-settings-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.cookie-settings-btn:focus {
    outline: none;
    box-shadow: var(--focus-ring), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cookie-settings-btn i {
    font-size: 1rem;
}

/* Per evitare conflitti con il pulsante 'Torna su' */
@media (max-width: 767px) {
    .cookie-settings-btn {
        bottom: 85px;
    }
}

.form-error-message {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
}

.form-error-message:before {
    content: '\f071';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 5px;
}

.form-error-container {
    background-color: #ffebee;
    color: #c62828;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 3px solid #c62828;
    font-size: 0.95rem;
}

.form-success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    border-left: 3px solid #2e7d32;
    font-size: 1.1rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.form-success-message i {
    margin-right: 8px;
    font-size: 1.2rem;
}

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

/* Stile per l'input disabilitato durante l'invio */
.contact-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Badge reCAPTCHA */
.grecaptcha-badge {
    visibility: hidden;
}

/* Nota sul reCAPTCHA */
.recaptcha-notice {
    font-size: 0.75rem;
    color: var(--secondary-text);
    margin-top: 15px;
    text-align: center;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 998;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-float:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.5), 0 4px 15px rgba(37, 211, 102, 0.4);
    animation-play-state: paused;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* WhatsApp Icon in Contact Section */
.contact-details .fa-whatsapp {
    color: var(--background-color);
}

.contact-details a[href*="wa.me"] {
    color: inherit;
    transition: var(--transition);
}

.contact-details a[href*="wa.me"]:hover {
    color: #25d366;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
        bottom: 150px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 140px;
    }
}

/* Dark theme support */
[data-theme="dark"] .whatsapp-float {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

[data-theme="dark"] .whatsapp-float:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}


/* Stili per il loader dei prodotti */
    .products-container:empty::before {
        content: '';
        display: block;
        width: 100%;
        padding: 60px 20px;
        text-align: center;
        color: var(--text-secondary);
        font-size: 1.1rem;
    }
    
    .products-container.loading::before {
        content: 'Caricamento prodotti in corso...';
    }
    
    /* Animazione di caricamento */
    @keyframes productsFadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .products-container .product-card {
        animation: productsFadeIn 0.5s ease forwards;
    }
    
    /* Stagger animation per i prodotti */
    .products-container .product-card:nth-child(1) {
        animation-delay: 0.1s;
    }
    
    .products-container .product-card:nth-child(2) {
        animation-delay: 0.2s;
    }
    
    .products-container .product-card:nth-child(3) {
        animation-delay: 0.3s;
    }
    
    /* Skeleton loader opzionale */
    .product-skeleton {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
        border-radius: 10px;
        height: 400px;
    }
    
    @keyframes loading {
        0% {
            background-position: 200% 0;
        }
        100% {
            background-position: -200% 0;
        }
    }
    
    /* Messaggio di errore */
    .products-error {
        text-align: center;
        padding: 40px 20px;
        background: #fee;
        color: #c33;
        border-radius: 10px;
        margin: 20px 0;
    }
    
    .products-error i {
        font-size: 2rem;
        margin-bottom: 10px;
        display: block;
    }