/* Reset e Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --primary-dark: #003d7a;
    --secondary-color: #00cc66;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header e Navbar */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

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

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.brand-location {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
}

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

.btn-nav {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section with Carousel */
.hero {
    position: relative;
    color: var(--white);
    padding: 0;
    text-align: center;
    height: 600px;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

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

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 61, 122, 0.75) 0%, rgba(0, 102, 204, 0.65) 50%, rgba(0, 61, 122, 0.85) 100%);
    z-index: 2;
    backdrop-filter: blur(0.5px);
}

.hero-container {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: var(--secondary-color);
    position: relative;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #00b359;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 204, 102, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.badge-icon {
    background: var(--secondary-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 12px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: var(--white);
    width: 40px;
    border-radius: 6px;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Chi Siamo Section */
.chi-siamo {
    padding: 80px 0;
    background: var(--white);
}

.chi-siamo-wrapper {
    display: block;
}

.chi-siamo-text {
    max-width: 100%;
}

.intro-text {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.intro-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

.chi-siamo-text > p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.chi-siamo-highlights {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.highlight-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.highlight-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.1);
}

.highlight-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.highlight-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.highlight-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0;
}

.highlight-content strong {
    color: var(--primary-color);
    font-weight: 700;
}

.zone-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.zone-tag {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: all 0.3s;
    cursor: default;
}

.zone-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.2);
}

/* Zone Coperte Section */
.zone-coperte {
    padding: 80px 0;
    background: var(--background);
}

.zone-map-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

#map-container {
    width: 90%;
    max-width: 1200px;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--primary-color);
}

/* Servizi Section */
.servizi {
    padding: 80px 0;
    background: var(--white);
    overflow: hidden;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 4rem;
}

/* Clean Services List - Stile minimale */
.servizi-list {
    max-width: 800px;
    margin: 0 auto;
}

.servizio-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s;
}

.servizio-item:last-child {
    border-bottom: none;
}

.servizio-item:hover {
    padding-left: 1rem;
}

.servizio-icon {
    font-size: 3.5rem;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.servizio-item:hover .servizio-icon {
    transform: scale(1.1) rotate(-5deg);
}

.servizio-content {
    flex: 1;
}

.servizio-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
    transition: color 0.3s;
}

.servizio-item:hover .servizio-content h3 {
    color: var(--primary-color);
}

.servizio-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Calcolatore Preventivo Section */
.calcolatore-preventivo {
    padding: 80px 0;
    background: var(--white);
}

.calcolatore-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.calcolatore-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.calc-group {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.calc-group:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.calc-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

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

.calc-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.calc-option {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.calc-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

.calc-option.active {
    background: linear-gradient(135deg, var(--primary-color), #0052a3);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.option-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

.option-price {
    font-size: 0.85rem;
    opacity: 0.8;
}

.calc-option.active .option-price {
    opacity: 1;
}

.option-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Slider */
.slider-container {
    padding: 1rem 0;
}

#metratura {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) 10%, #e0e0e0 10%, #e0e0e0 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

#metratura::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.4);
    transition: all 0.3s;
}

#metratura::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.6);
}

#metratura::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.4);
}

.slider-value {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

/* Extra Services */
.extra-services {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s;
}

.checkbox-option:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.extra-checkbox {
    width: 22px;
    height: 22px;
    margin-right: 1rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    cursor: pointer;
}

.checkbox-title {
    font-weight: 600;
    color: var(--primary-dark);
}

.checkbox-price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.95rem;
}

/* Result Card */
.calcolatore-result {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.result-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 102, 204, 0.15);
}

.result-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.price-display {
    background: linear-gradient(135deg, var(--primary-color), #0052a3);
    color: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.price-label {
    font-size: 0.9rem;
    opacity: 0.9;
    display: block;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    line-height: 1.2;
}

.price-details {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span:first-child {
    color: var(--text-light);
    font-size: 0.95rem;
}

.detail-row span:last-child {
    font-weight: 700;
    color: var(--primary-dark);
}

.result-disclaimer {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.result-disclaimer p {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: #856404;
}

.result-disclaimer ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: #856404;
}

.result-disclaimer li {
    margin-bottom: 0.25rem;
}

/* Perché Noi Section */
.perche-noi {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.perche-noi-header {
    margin-bottom: 4rem;
}

.vantaggi-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.vantaggio-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.4s;
    text-align: center;
    border: 2px solid transparent;
}

.vantaggio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.vantaggio-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.vantaggio-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.vantaggio-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.vantaggio-highlight {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Stats Container with Horizontal Scroll Animation */
.stats-container {
    margin-top: 3rem;
    overflow: hidden;
    background: transparent;
    padding: 2.5rem 0;
    position: relative;
    margin-left: -20px;
    margin-right: -20px;
}

.stats-track {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    padding-left: 20px;
    will-change: transform;
    transition: transform 0.1s linear;
}

.stat-item {
    flex-shrink: 0;
    text-align: center;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.8) 100%);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 250, 0.95) 100%);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.15);
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Preventivo Section */
.preventivo {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.preventivo-info h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.preventivo-info p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.8rem;
    min-width: 40px;
}

.contact-item strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 0.3rem;
}

.contact-item p {
    margin: 0;
    font-size: 1rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary-dark);
}

.preventivo-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

.form-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.privacy-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.privacy-checkbox span {
    flex: 1;
}

.privacy-checkbox a {
    font-weight: 600;
}

.privacy-checkbox a:hover {
    text-decoration: none;
}

/* Contatti Section */
.contatti {
    padding: 80px 0;
    background: var(--white);
}

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

.zona {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.zona:hover {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: var(--shadow);
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: var(--bg-light);
}

.faq-container {
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem 2rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
    font-size: 1rem;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

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

.footer-section h3,
.footer-section h4 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.logo-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

/* Responsive Design */
/* Tablet e dispositivi medi */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .calcolatore-preventivo {
        padding: 50px 0;
    }

    .calcolatore-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .calcolatore-form {
        gap: 1.25rem;
    }

    .calcolatore-result {
        position: static;
    }

    .calc-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .calc-group {
        padding: 1rem;
        border-radius: 12px;
    }

    .calc-label {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .calc-icon {
        font-size: 1.25rem;
    }

    .calc-option {
        padding: 0.85rem 0.6rem;
        border-radius: 10px;
        gap: 0.35rem;
    }

    .option-title {
        font-size: 0.85rem;
    }

    .option-price {
        font-size: 0.75rem;
    }

    .option-badge {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
        top: -6px;
        right: -6px;
    }

    .slider-container {
        margin-top: 0.5rem;
    }

    .slider-value {
        font-size: 1.1rem;
        margin-top: 0.75rem;
    }

    #metratura {
        height: 6px;
    }

    .extra-services {
        gap: 0.75rem;
    }

    .checkbox-option {
        padding: 0.85rem;
        border-radius: 10px;
    }

    .checkbox-title {
        font-size: 0.9rem;
    }

    .checkbox-price {
        font-size: 0.8rem;
    }

    .result-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .result-card h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .price-display {
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .price-label {
        font-size: 0.85rem;
    }

    .price-amount {
        font-size: 1.6rem;
    }

    .price-details {
        gap: 0.6rem;
        margin-bottom: 1rem;
    }

    .detail-row {
        font-size: 0.85rem;
    }

    .result-disclaimer {
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 1rem;
    }

    .result-disclaimer p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .result-disclaimer ul {
        gap: 0.35rem;
    }

    .result-disclaimer li {
        font-size: 0.75rem;
    }

    .btn-block {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-description {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .trust-badges {
        gap: 1.5rem;
    }

    .badge span {
        font-size: 0.9rem;
    }

    .badge-icon {
        width: 26px;
        height: 26px;
    }

    .carousel-indicators {
        bottom: 20px;
        gap: 10px;
    }

    .intro-text {
        font-size: 1.15rem;
    }

    .map-fade-edges {
        box-shadow:
            inset 80px 0 100px -20px rgba(248, 249, 250, 1),
            inset -80px 0 100px -20px rgba(248, 249, 250, 1),
            inset 0 70px 90px -20px rgba(248, 249, 250, 1),
            inset 0 -70px 90px -20px rgba(248, 249, 250, 1);
    }

    .servizio-item {
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .servizio-icon {
        font-size: 3rem;
    }

    .servizio-content h3 {
        font-size: 1.6rem;
    }

    .servizio-content p {
        font-size: 0.95rem;
    }

    .vantaggi-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .vantaggio-card {
        padding: 2rem;
    }

    .preventivo-wrapper {
        grid-template-columns: 1fr;
    }

    .preventivo-form {
        padding: 2rem;
    }

    .contact-icon {
        font-size: 1.5rem;
        min-width: 35px;
    }

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

    .faq-question {
        font-size: 1rem;
        padding: 1.25rem 1.5rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.25rem 1.5rem;
    }

    footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Smartphone landscape e tablet portrait */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        height: 500px;
    }

    .hero h1 {
        font-size: 2rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .hero-description {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }

    .preventivo-wrapper {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .servizio-item {
        padding: 1.5rem 0;
    }

    .stats-container {
        padding: 2rem 0;
        margin-left: -15px;
        margin-right: -15px;
    }

    .stats-track {
        gap: 1.5rem;
        padding: 1rem 0;
        padding-left: 15px;
    }

    .stat-item {
        padding: 1.25rem 1.5rem;
        min-width: 160px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .vantaggi-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .chi-siamo-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .chi-siamo-text {
        padding: 0 1.5rem;
    }

    .highlight-item {
        padding: 1.2rem;
        margin: 0 1.5rem;
    }

    .chi-siamo-visual {
        order: -1;
    }

    .visual-card svg {
        width: 250px;
        height: 250px;
    }

    .zone-tag {
        padding: 0.45rem 1rem;
        font-size: 0.85rem;
    }

    #map-container {
        width: 90%;
        height: 350px;
    }
}

/* Smartphone portrait */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .section-title {
        font-size: 1.5rem;
        padding: 0 0.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .calcolatore-preventivo {
        padding: 40px 0;
    }

    .calcolatore-wrapper {
        gap: 1.25rem;
        margin-top: 1.25rem;
    }

    .calcolatore-form {
        gap: 1rem;
    }

    .calc-options {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .calc-option {
        padding: 0.75rem 0.85rem;
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .calc-group {
        padding: 0.85rem;
        border-radius: 10px;
    }

    .calc-label {
        font-size: 0.9rem;
        margin-bottom: 0.85rem;
    }

    .calc-icon {
        font-size: 1.15rem;
    }

    .option-title {
        font-size: 0.9rem;
    }

    .option-price {
        font-size: 0.8rem;
    }

    .option-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.35rem;
    }

    .slider-value {
        font-size: 1rem;
        margin-top: 0.6rem;
    }

    #metratura {
        height: 5px;
    }

    .extra-services {
        gap: 0.6rem;
    }

    .checkbox-option {
        padding: 0.75rem;
    }

    .checkbox-title {
        font-size: 0.85rem;
    }

    .checkbox-price {
        font-size: 0.75rem;
    }

    .result-card {
        padding: 1.25rem;
    }

    .result-card h3 {
        font-size: 1rem;
        margin-bottom: 0.85rem;
    }

    .price-display {
        gap: 0.4rem;
        margin-bottom: 1rem;
        padding: 0;
    }

    .price-label {
        font-size: 0.8rem;
    }

    .price-amount {
        font-size: 1.4rem;
    }

    .price-details {
        gap: 0.5rem;
        margin-bottom: 0.85rem;
    }

    .detail-row {
        font-size: 0.8rem;
    }

    .result-disclaimer {
        padding: 0.85rem;
        margin-bottom: 0.85rem;
    }

    .result-disclaimer p {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }

    .result-disclaimer li {
        font-size: 0.7rem;
    }

    .btn-block {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .hero {
        height: 450px;
    }

    .hero h1 {
        font-size: 1.8rem;
        padding: 0 1.5rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        padding: 0 1.5rem;
        margin-bottom: 2rem;
    }

    .hero-cta {
        padding: 0 1.5rem;
        justify-content: center;
    }

    .hero-cta .btn-secondary {
        display: none;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        max-width: 280px;
    }

    .trust-badges {
        display: none;
    }

    .carousel-indicators {
        bottom: 15px;
        gap: 8px;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    .servizi,
    .perche-noi,
    .preventivo,
    .contatti {
        padding: 50px 0;
    }

    .chi-siamo {
        padding: 50px 0;
        min-height: 500px;
    }

    .chi-siamo-text {
        max-width: 100%;
        padding: 0 1rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .map-fade-edges {
        box-shadow:
            inset 40px 0 60px -10px rgba(248, 249, 250, 1),
            inset -40px 0 60px -10px rgba(248, 249, 250, 1),
            inset 0 40px 60px -10px rgba(248, 249, 250, 1),
            inset 0 -40px 60px -10px rgba(248, 249, 250, 1);
    }

    .highlight-item {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        margin: 0 0.5rem;
    }

    .highlight-icon {
        font-size: 2rem;
        flex-shrink: 0;
    }

    .highlight-content h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .highlight-content p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .zone-tags {
        justify-content: center;
        padding: 0 0.5rem;
        gap: 0.5rem;
    }

    .zone-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .servizio-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .servizio-item:hover {
        padding-left: 0;
    }

    .servizio-icon {
        font-size: 2.5rem;
    }

    .servizio-content h3 {
        font-size: 1.4rem;
    }

    .servizio-content p {
        font-size: 0.9rem;
    }

    .vantaggio-card {
        padding: 1.5rem;
    }

    .stats-container {
        padding: 1.5rem 0;
        margin-left: -12px;
        margin-right: -12px;
    }

    .stats-track {
        gap: 1.25rem;
        padding: 0.75rem 0;
        padding-left: 12px;
    }

    .stat-item {
        padding: 1rem 1.25rem;
        min-width: 140px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .preventivo-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .zone-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .zona {
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
    }

    .logo-footer svg {
        width: 40px;
        height: 40px;
    }

    .logo-footer {
        gap: 0.8rem;
    }

    .footer-links li {
        font-size: 0.9rem;
    }
}

/* Disabilita hover effects su dispositivi touch */
@media (hover: none) {
    .highlight-item:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .servizio-item:hover .servizio-icon {
        transform: none;
    }

    .servizio-item:hover .servizio-content h3 {
        color: var(--primary-dark);
    }

    .vantaggio-card:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .zona:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .zone-tag:hover {
        transform: none;
        background: var(--white);
        color: var(--primary-color);
    }

    .btn-primary:hover {
        transform: none;
    }

    .btn-secondary:hover {
        transform: none;
    }
}

/* Animazioni */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.servizio-card,
.vantaggio {
    animation: fadeInUp 0.6s ease-out;
}

/* Success Message Styles */
.success-message {
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

/* Google Reviews Badge */
.google-reviews-badge {
    max-width: 600px;
    margin: 3rem auto 2rem;
    padding: 0 20px;
}

.google-badge-link {
    display: block;
    text-decoration: none;
    background: white;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.google-badge-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 102, 204, 0.2);
}

.google-badge-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.google-logo {
    flex-shrink: 0;
}

.google-badge-text {
    flex: 1;
}

.google-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.stars {
    color: #FBBC05;
    font-size: 1.5rem;
    line-height: 1;
}

.rating-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.google-review-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.google-cta {
    color: #4285F4;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Responsive Google Badge */
@media (max-width: 768px) {
    .google-badge-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .google-cta {
        white-space: normal;
    }
}

/* Anti-bot protection for contact links */
.protected-email,
.protected-phone {
    pointer-events: none;
    opacity: 0.6;
    cursor: default;
}

.protected-email.loaded,
.protected-phone.loaded {
    pointer-events: auto;
    opacity: 1;
    cursor: pointer;
}
