/*
Theme Name: Bagni Ristrutturazioni
Theme URI: https://bagniristrutturazioni.it
Author: Secure Home
Author URI: https://bagniristrutturazioni.it
Description: Tema personalizzato per il sito di vasche con sportello e bagni accessibili per anziani e disabili. Design moderno e accessibile.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bagni-ristrutturazioni
Tags: custom-menu, custom-logo, featured-images, accessibility-ready
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-phone {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s;
}

.header-phone:hover {
    opacity: 0.9;
}

.numero-verde-logo {
    height: 50px !important;
    width: auto !important;
    max-width: none !important;
    min-width: auto !important;
    object-fit: contain !important;
    display: block !important;
    visibility: visible !important;
}

.numero-verde-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #20b2aa;
    color: #fff;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    transition: background 0.3s;
    min-height: 60px;
    height: 60px;
}

.header-phone:hover .numero-verde-box {
    background: #1a9b94;
}

.numero-verde-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.numero-verde-number {
    font-size: 2.25rem;
    color: #fff;
    white-space: nowrap;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1;
}

.numero-verde-text {
    color: #20b2aa;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
    text-align: left;
}

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

.site-logo img {
    max-height: 50px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.header-phone img.numero-verde-logo {
    height: 50px !important;
    max-height: 50px !important;
    min-height: 50px !important;
    width: auto !important;
    max-width: none !important;
    min-width: 200px !important;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: #20b2aa;
}


/* Hero Section */
.hero-section {
    background: #fff;
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 650px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Overlay con sfumatura leggera per mantenere leggibilità del testo */
.hero-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.6) 40%, rgba(255, 255, 255, 0.3) 70%, transparent 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

/* ImgChange plugin hero integration */
.hero-section--imgchange::before {
    display: none;
}

.hero-section--imgchange .hero-section__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.hero-section--imgchange .hero-section__media .imgchange-hero {
    width: 100%;
    height: 100%;
    max-width: none;
}

.hero-section--imgchange .hero-section__media .imgchange-hero__image {
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.375rem;
    color: #555;
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 400;
}

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

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #20b2aa;
    color: #fff;
}

.btn-primary:hover {
    background: #1a9b94;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 178, 170, 0.3);
}

.btn-primary span {
    font-size: 1.25rem;
}

.btn-secondary {
    background: transparent;
    color: #20b2aa;
    border: 2px solid #20b2aa;
}

.btn-secondary:hover {
    background: #20b2aa;
    color: #fff;
}

.btn-secondary span {
    font-size: 1.25rem;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: #fff;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: #e0f7f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #20b2aa;
    font-size: 2rem;
}

.service-icon svg {
    width: 36px;
    height: 36px;
    fill: #20b2aa;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.service-description {
    color: #666;
    line-height: 1.6;
}

/* Works Section */
.works-section {
    padding: 80px 0;
    background: #fff;
}

.works-slider {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto 0;
}

.work-item {
    display: none;
}

.work-item.active {
    display: block;
}

.work-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

.work-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.work-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.work-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.work-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.work-image.before .work-label {
    background: #ff4444;
    color: #fff;
}

.work-image.after .work-label {
    background: #20b2aa;
    color: #fff;
}

.works-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.works-nav-button {
    background: #20b2aa;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1.25rem;
}

.works-nav-button:hover {
    background: #1a9b94;
    transform: scale(1.1);
}

.works-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.works-counter {
    color: #666;
    font-weight: 500;
}

/* Why Choose Us Section */
.why-choose-section {
    padding: 100px 0;
    background: #20b2aa;
    color: #fff;
}

.why-choose-section .section-title,
.why-choose-section .section-subtitle {
    color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature-card {
    text-align: center;
}

.feature-icon {
    width: 90px;
    height: 90px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    fill: #fff;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-description {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works-section {
    padding: 80px 0;
    background: #fff;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.step-number {
    width: 90px;
    height: 90px;
    background: #20b2aa;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #20b2aa;
    opacity: 0.3;
    transform: scale(1.2);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.step-description {
    color: #666;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.testimonial-quote {
    font-size: 4rem;
    color: #e0f7f6;
    line-height: 1;
    margin-bottom: 1rem;
    font-weight: 300;
    font-family: Georgia, serif;
}

.testimonial-stars {
    color: #ffc107;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

.testimonial-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
    color: #1a1a1a;
}

.testimonial-details {
    color: #999;
    font-size: 0.9rem;
}

/* Contact Form Section */
.contact-section {
    padding: 80px 0;
    background: #fff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #666;
    margin-bottom: 2rem;
}

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

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

.contact-icon {
    color: #20b2aa;
    font-size: 1.5rem;
    margin-top: 0.25rem;
    min-width: 24px;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: #20b2aa;
}

.contact-text {
    color: #666;
}

.contact-text strong {
    color: #20b2aa;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #20b2aa;
    box-shadow: 0 0 0 3px rgba(32, 178, 170, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ff4444;
}

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

.error-message {
    color: #ff4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

#submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.privacy-note {
    font-size: 0.875rem;
    color: #666;
    margin-top: 1rem;
    text-align: center;
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.footer-section a:hover {
    color: #20b2aa;
}

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

/* Incentives Section */
.incentives-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.incentive-icon-circle {
    width: 120px;
    height: 120px;
    background: #20b2aa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    color: #fff;
    font-weight: 700;
}

.incentive-card {
    max-width: 800px;
    margin: 3rem auto;
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.incentive-check {
    color: #20b2aa;
    font-size: 1.5rem;
    min-width: 24px;
    margin-top: 0.25rem;
}

.incentive-item strong {
    color: #1a1a1a;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.incentive-item p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}


/* Logo responsive */
@media (max-width: 768px) {
    .site-logo img {
        max-height: 40px;
        max-width: 150px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .main-navigation {
        display: block;
    }
    
    .main-navigation.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        padding: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-content {
        position: relative;
    }
    
    .header-right {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-end;
    }
    
    .numero-verde-logo {
        height: 45px;
        max-width: 200px;
        min-width: auto;
    }
    
    .numero-verde-box {
        padding: 0.75rem 1.25rem;
        gap: 0.75rem;
        min-height: 45px;
    }
    
    .numero-verde-number {
        font-size: 1.4rem;
    }
    
    .numero-verde-icon {
        width: 26px;
        height: 26px;
    }
    
    .hero-section {
        min-height: auto;
    }
    
    .hero-section .container {
        padding: 60px 20px;
    }
    
    .hero-section::after {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.4) 80%, transparent 100%);
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .services-section,
    .works-section,
    .why-choose-section,
    .incentives-section,
    .how-it-works-section,
    .testimonials-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 3rem;
    }
    
    .work-images {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .work-image img {
        height: 300px;
    }
    
    .services-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .incentive-card {
        padding: 2rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .site-footer {
        padding: 40px 0 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

