.faq-answer {
  background: #f8fcfd;
  color: #222;
  font-size: 1rem;
  padding: 0 28px 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-in-out, padding 0.35s ease-in-out;
  box-sizing: border-box;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

.modal-content {
  position: relative;
  background-color: #fff;
  margin: 40px auto;
  padding: 30px;
  border-radius: 12px;
  max-width: 800px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

.modal-content h2 {
  color: #2ec4b6;
  margin-bottom: 20px;
}

.modal-content h3 {
  color: #333;
  margin: 25px 0 15px;
}

.modal-content p {
  line-height: 1.6;
  margin-bottom: 15px;
  color: #444;
}

.modal-content ul {
  margin: 15px 0;
  padding-left: 20px;
}

.modal-content li {
  margin-bottom: 8px;
  color: #444;
}

.close {
  font-size: 28px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover {
  color: #2ec4b6;
}
.faq-answer.open {
  padding: 0 28px 18px 22px;
  max-height: 1000px; /* Un valore sufficientemente alto per contenere il contenuto */
}
/* FAQ Section */
.faq-section {
  background: #f8fcfd;
  padding: 60px 0 40px 0;
}
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}
.faq-item {
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(46,196,182,0.07);
  margin-bottom: 18px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item .faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  outline: none;
  font-size: 1.13rem;
  font-weight: 600;
  color: #2ec4b6;
  padding: 20px 28px 18px 22px;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-item .faq-question:hover {
  color: #159a8c;
}
.faq-answer {
  background: #f8fcfd;
  color: #222;
  font-size: 1rem;
  padding: 0 28px 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding-bottom 0.2s;
  box-sizing: border-box;
}
.faq-answer.open {
  padding-bottom: 18px;
}
.faq-item.faq-hidden {
  display: none;
}
.faq-showall-block .btn {
  margin-top: 0.5rem;
  font-size: 1rem;
  padding: 10px 28px;
}
/* Carousel arrow styles */
.carousel-arrow {
  background: #fff;
  border: 2px solid #e3f8f6;
  color: #2ec4b6;
  font-size: 1.7rem;
  font-weight: 700;
  padding: 0.2rem 0.2rem;
  cursor: pointer;
  transition: border 0.18s, box-shadow 0.18s, background 0.18s;
  border-radius: 50%;
  box-shadow: 0 2px 8px 0 rgba(46,196,182,0.10);
  margin: 0 0.5rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-arrow svg {
  display: block;
}
.carousel-arrow:hover, .carousel-arrow:focus {
  background: #e3f8f6;
  border-color: #2ec4b6;
  outline: none;
}
.services-carousel {
  position: relative;
  justify-content: center;
  gap: 0.5rem;
}
.carousel-img {
  max-width: 420px;
  min-width: 0;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(46,196,182,0.07);
  background: #f8fcfc;
}
@media (max-width: 600px) {
  .carousel-img {
    max-width: 98vw;
  }
  .carousel-arrow {
    font-size: 1.5rem;
    padding: 0 0.6rem;
  }
}
/* --- Accordion Styles for 'I Nostri Servizi' section --- */
.services-accordion {
  margin-top: 2rem;
  border-radius: 14px;
  background: #f8fcfc;
  box-shadow: 0 2px 16px 0 rgba(46,196,182,0.07);
  overflow: hidden;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.service-accordion-item + .service-accordion-item {
  border-top: 1px solid #e3f8f6;
}
.service-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  background: none;
  border: none;
  outline: none;
  padding: 1.1rem 1.5rem;
  font-family: inherit;
  font-size: 1.13rem;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  transition: background 0.18s;
  border-radius: 0;
  gap: 1.1rem;
}
.service-accordion-header[aria-expanded="true"] {
  background: #e3f8f6;
  color: #2ec4b6;
}
.service-list-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
}
.service-list-title {
  font-size: 1.13rem;
  font-weight: 600;
}
.service-accordion-desc {
  margin-top: 0.7rem;
  padding: 0 2.7rem 1.1rem 4.2rem;
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
  background: none;
  transition: all 0.2s;
}
/* Carousel styles for servizi section */
.services-carousel {
  width: 100%;
  max-width: 700px;
  margin: 2.2rem auto 2.2rem auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 16px 0 rgba(46,196,182,0.09);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.services-carousel img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
@media (max-width: 600px) {
  .services-carousel {
    min-height: 140px;
    max-width: 98vw;
  }
}
@media (max-width: 600px) {
  .service-accordion-header {
    font-size: 1rem;
    padding: 0.9rem 1rem;
    gap: 0.7rem;
  }
  .service-accordion-desc {
    padding: 0 1.2rem 0.9rem 3.2rem;
    font-size: 0.97rem;
  }
}
/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    padding-top: 80px; /* Offset per header fisso */
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #666;
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

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

.btn-secondary:hover {
    background: #2196f3;
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e9ecef;
    z-index: 100;
    transition: all 0.3s ease;
}

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

.logo-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.logo-text h1 {
    font-size: 1.8rem;
    margin: 0;
    color: #2196f3;
}

.tagline {
    font-size: 0.9rem;
    color: #666;
    font-weight: 300;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2196f3;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2196f3;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* HERO overlay e animazioni */
.hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #e3f2fd 0%, #b2ebf2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
/* Fix overlay e testo hero */
.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(120deg, rgba(33,150,243,0.05) 0%, rgba(0,188,212,0.05) 100%);
    z-index: 0;
    pointer-events: none;
}
/* Blocco testo con fondo bianco trasparente */
.hero-text {
    background: rgba(255,255,255,0.85);
    border-radius: 18px;
    padding: 2rem 2.5rem;
    box-shadow: 0 4px 24px rgba(33,150,243,0.07);
    max-width: 520px;
}

/* Responsive design per hero section */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
        align-items: flex-start;
    }
    .hero-text {
        padding: 1.5rem;
        margin-top: 2rem;
        max-width: 100%;
    }
    .hero-title {
        font-size: 2rem !important;
        margin-bottom: 1rem;
    }
    .hero-subtitle {
        font-size: 1.1rem !important;
        margin-bottom: 1.5rem;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .hero-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0 40px;
    }
    .hero-text {
        padding: 1.25rem;
        margin-top: 1rem;
    }
    .hero-title {
        font-size: 1.75rem !important;
    }
    .hero-subtitle {
        font-size: 1rem !important;
    }
}
.hero-title, .hero-subtitle {
    color: #114488;
    text-shadow: none;
}
.hero-content, .hero-image {
    position: relative;
    z-index: 2;
}
.hero-title, .hero-subtitle {
    color: #1976d2;
    text-shadow: 0 2px 8px rgba(255,255,255,0.7);
}
.animated-fadein {
    opacity: 0;
    animation: fadeInUp 1s 0.2s forwards;
}
.animated-fadein-img {
    opacity: 0;
    animation: fadeInUp 1.2s 0.5s forwards;
}
.animated-fadein-delay {
    opacity: 0;
    animation: fadeInUp 1s 0.7s forwards;
}
.animated-fadein-delay2 {
    opacity: 0;
    animation: fadeInUp 1s 1s forwards;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Divider onda */
.divider-wave {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    width: 100%;
    z-index: 3;
    line-height: 0;
}
.divider-wave svg {
    display: block;
    width: 100%;
    height: 100px;
}

/* Accent color e dettagli */
a, .nav-link, .btn-secondary {
    color: #00bcd4;
}
a:hover, .nav-link:hover, .btn-secondary:hover {
    color: #1976d2;
}
.section-header h2 {
    border-bottom: 3px solid #00bcd4;
    display: inline-block;
    padding-bottom: 0.3em;
    margin-bottom: 1.2rem;
    letter-spacing: 0.02em;
}

/* Tipografia migliorata */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.hero-title {
    font-size: 2.9rem;
    color: #1976d2;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: 0.03em;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: #1976d2;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 400;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: #1976d2;
    margin-bottom: 1rem;
}

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

/* ===== ABOUT SECTION ===== */
.about {
    padding: 80px 0;
    background: #ffffff;
}

.about-text h3 {
    color: #1976d2;
    margin-bottom: 1rem;
}

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

.feature {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h4 {
    color: #1976d2;
    margin-bottom: 0.5rem;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 80px 0;
    background: #f8f9fa;
}

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

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

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #1976d2;
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    margin-top: 1rem;
}

.service-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

.service-card li:last-child {
    border-bottom: none;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 80px 0;
    background: #ffffff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: #1976d2;
    margin-bottom: 2rem;
}

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

.contact-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact-item h4 {
    color: #1976d2;
    margin-bottom: 0.5rem;
}

.contact-item p {
    margin: 0;
    color: #666;
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 1.5rem;
}

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

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2196f3;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.checkbox-label a {
    color: #2196f3;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* ===== FOOTER ===== */
.footer {
    background: #183153;
    color: #e3f2fd;
    padding: 60px 0 20px;
    position: relative;
}
.divider-footer {
    margin-bottom: -1px;
}
/* Footer content layout is now handled by the new grid system above */
.footer-section h3,
.footer-section h4 {
    color: #2ec4b6;
    margin-bottom: 1rem;
}
.footer-section p {
    color: #b2ebf2;
    margin-bottom: 1rem;
}
.footer-section ul {
    list-style: none;
    padding: 0;
}
.footer-section ul li {
    margin-bottom: 0.5rem;
}
.footer-section ul li a {
    color: #b2ebf2;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-section ul li a:hover {
    color: #2ec4b6;
}
.footer-social {
    display: flex;
    gap: 1.1rem;
    margin-top: 0.5rem;
}
.footer-social-icon svg {
    stroke: #fff;
    transition: stroke 0.2s, fill 0.2s;
}
.footer-social-icon:hover svg,
.footer-social-icon:focus svg {
    stroke: #2ec4b6;
    fill: #fff;
}
.footer-bottom {
    border-top: 1px solid #2ec4b6;
    padding-top: 20px;
    text-align: center;
}
.footer-bottom p {
    color: #b2ebf2;
    margin: 0;
}
.footer-bottom a {
    color: #2ec4b6;
    text-decoration: underline;
}
/* Footer responsive styles are now handled by the new grid system above */

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #333;
}

.modal h2 {
    color: #1976d2;
    margin-bottom: 1rem;
}

.modal h3 {
    color: #1976d2;
    margin: 1.5rem 0 0.5rem;
}

.modal p {
    margin-bottom: 1rem;
    color: #666;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .logo-image {
        width: 40px;
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .nav {
        display: none;
    }
    
    .nav.active {
        display: flex !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav.active .nav-list {
        flex-direction: column;
        gap: 1rem;
        margin: 0;
        padding: 0;
    }
    
    .nav.active .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid #eee;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-main-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-main-image {
        max-width: 300px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }
    .feature {
        padding: 1.2rem 0.7rem;
    }
    .feature-icon {
        font-size: 2.1rem;
        margin-bottom: 0.5rem;
    }
    .feature h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    .feature p {
        font-size: 0.95rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    /* Footer content layout is now handled by the new grid system above */
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .footer-content {
        text-align: center;
    }
    .divider-wave svg {
        height: 60px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-text {
        padding: 1.2rem 1rem;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .logo-image {
        width: 35px;
        height: 35px;
    }
    
    .logo-text h1 {
        font-size: 1.3rem;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 1.3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }
    .divider-wave svg {
        height: 40px;
    }
    .hero-title {
        font-size: 1.3rem;
    }
}

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

.hero-text,
.service-card,
.feature {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #2196f3;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        color: #fff;
    }
    
    .btn-secondary {
        border-color: #000;
        color: #000;
    }
} 

/* Hero full image background */
.hero-bg-image {
    background: url('../img/immagine_medico_ecografia_domicilio.jpg') center center/cover no-repeat;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 0;
}
.hero-bg-overlay {
    background: linear-gradient(120deg, rgba(33,60,120,0.45) 0%, rgba(0,188,212,0.25) 100%);
    z-index: 1;
}
.hero-overlay-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 70vh;
    padding: 0 0 4vw 4vw;
}
.hero-text {
    background: rgba(255,255,255,0.90);
    border-radius: 18px;
    padding: 2rem 2.5rem;
    box-shadow: 0 4px 24px rgba(33,150,243,0.07);
    max-width: 520px;
    margin-bottom: 3vw;
}
.hero-title, .hero-subtitle {
    color: #114488;
    text-shadow: none;
}
@media (max-width: 900px) {
    .hero-bg-image, .hero-overlay-content {
        min-height: 50vh;
    }
    .hero-text {
        padding: 1.2rem 1rem;
        max-width: 100%;
    }
}
@media (max-width: 600px) {
    .hero-bg-image, .hero-overlay-content {
        min-height: calc(70vh - 60px);
        padding: 40px;
        align-items: center;
        justify-content: flex-end;
    }
    .hero-overlay-content {
        padding: 0 0 2vw 0;
        align-items: center;
        padding-top: 70px;
    }
    .hero-text {
        max-width: 100%;
        margin-bottom: 6vw;
        padding: 1rem 0.7rem;
        text-align: center;
    }
} 

/* Hero text box right and smaller */
.hero-overlay-content {
    align-items: flex-end;
    padding: 0 1vw 4vw 0;
}
.hero-text {
    max-width: 512px;
    padding: 1rem 1.1rem;
    margin-bottom: 4vw;
}
@media (max-width: 600px) {
    .hero-overlay-content {
        align-items: center;
        padding: 0 0 2vw 0;
    }
    .hero-text {
        max-width: 100%;
        margin-bottom: 2vw;
        padding: 1rem 0.7rem;
        text-align: center;
    }
} 

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.hero-buttons .btn + .btn {
    margin-left: 0;
    margin-top: 0;
}
@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }
    .hero-buttons .btn + .btn {
        margin-top: 0.7rem;
    }
} 

.affidabilita-badge-row {
    display: flex;
    gap: 2.2rem;
    margin: 2.5rem 0 1.5rem 0;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.affidabilita-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.1rem 1.3rem 0.7rem 1.3rem;
    box-shadow: 0 2px 12px rgba(46,196,182,0.07);
    min-width: 120px;
    min-height: 110px;
    font-size: 1.05rem;
    color: #114488;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: box-shadow 0.2s;
}
.affidabilita-badge svg {
    margin-bottom: 0.5rem;
    display: block;
}
.affidabilita-badge:hover {
    box-shadow: 0 4px 24px rgba(46,196,182,0.13);
}
@media (max-width: 700px) {
    .affidabilita-badge-row {
        flex-direction: column;
        gap: 1.2rem;
        align-items: stretch;
    }
    .affidabilita-badge {
        min-width: 0;
        min-height: 0;
        align-items: flex-start;
    }
} 

.testimonials {
    background: #f8f9fa;
    padding: 70px 0 50px 0;
}
.testimonials-list {
    display: flex;
    gap: 2.2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.testimonial-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(33,150,243,0.07);
    padding: 2rem 1.5rem 1.2rem 1.5rem;
    max-width: 340px;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}
.testimonial-stars span {
    color: #fbbf24;
    font-size: 1.3rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
}
.testimonial-text {
    font-size: 1.08rem;
    color: #183153;
    margin-bottom: 1.1rem;
    font-style: italic;
}
.testimonial-user {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.5rem;
}
.testimonial-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid #2ec4b6;
}
.testimonial-name {
    font-weight: 600;
    color: #2ec4b6;
    font-size: 1.05rem;
}
.testimonial-form-block {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(33,150,243,0.07);
    max-width: 420px;
    margin: 0 auto;
    padding: 2rem 1.5rem 1.2rem 1.5rem;
    text-align: center;
}
.testimonial-form-block h3 {
    color: #183153;
    margin-bottom: 1.2rem;
}
.testimonial-form-note {
    font-size: 0.95rem;
    color: #666;
    margin-top: 0.7rem;
}
.stars-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 0.2rem;
}
.stars-input input[type="radio"] {
    display: none;
}
.stars-input label {
    font-size: 1.7rem;
    color: #b2ebf2;
    cursor: pointer;
    transition: color 0.2s;
}
.stars-input input[type="radio"]:checked ~ label,
.stars-input label:hover,
.stars-input label:hover ~ label {
    color: #fbbf24;
}
.testimonial-form .form-group {
    margin-bottom: 1.1rem;
    text-align: left;
}
.testimonial-form label {
    font-weight: 500;
    color: #183153;
    margin-bottom: 0.3rem;
    display: block;
}
.testimonial-form input,
.testimonial-form textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid #e3f2fd;
    border-radius: 8px;
    font-size: 1rem;
    margin-top: 0.2rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.testimonial-form input:focus,
.testimonial-form textarea:focus {
    border-color: #2ec4b6;
    outline: none;
}
@media (max-width: 900px) {
    .testimonials-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .testimonial-card {
        max-width: 100%;
    }
} 

/* ===== FOOTER REDESIGN ===== */

/* Footer layout - all sections on one row except social */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

/* Footer social section separated */
.footer-social-section {
    text-align: left;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.footer-social-section h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Footer contacts styling */
.footer-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contacts li {
    margin-bottom: 0.75rem;
}

.contact-link {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border-radius: 6px;
    padding-left: 0.5rem;
    margin-left: -0.5rem;
}

.contact-link:hover {
    color: #2ec4b6;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    color: #2ec4b6;
    transition: all 0.3s ease;
}

.contact-link:hover .contact-icon {
    transform: scale(1.1);
    color: #fff;
}

/* Phone link special styling */
.phone-link {
    font-weight: 600;
    color: #2ec4b6;
}

.phone-link:hover {
    color: #fff;
    background: linear-gradient(135deg, #2ec4b6 0%, #1a8a7f 100%);
}

/* Email link styling */
.email-link {
    word-break: break-all;
}

/* Location link styling */
.location-link {
    cursor: default;
    color: #ccc;
}

.location-link:hover {
    color: #ccc;
    background: none;
    transform: none;
}

/* Responsive footer layout */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-social-section {
        margin-top: 0;
        border-top: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1rem;
    }
    
    /* Center align contacts in mobile */
    .footer-section:last-child {
        text-align: center;
    }
    
    .footer-contacts {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .footer-contacts li {
        margin-bottom: 0;
        width: 100%;
        text-align: center;
    }
    
    .contact-link {
        justify-content: center;
        padding: 0.5rem 1rem;
        margin: 0;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .contact-link:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }
    
    .contact-icon {
        margin-right: 0.5rem;
    }
}

/* ===== FLOATING CALL BUTTON ===== */

.floating-call-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    transform: translateY(-50px);
    z-index: 9999;
    animation: callButtonPulse 2s infinite;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.call-button-link {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2ec4b6 0%, #1a8a7f 100%);
    color: #fff;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(46, 196, 182, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.call-button-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(46, 196, 182, 0.4);
    background: linear-gradient(135deg, #1a8a7f 0%, #2ec4b6 100%);
    color: #fff;
    text-decoration: none;
}

.call-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 0.25rem;
    transition: all 0.3s ease;
}

.call-button-link:hover .call-button-icon {
    transform: rotate(15deg) scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.call-button-text {
    white-space: nowrap;
}

/* Call button pulse animation */
@keyframes callButtonPulse {
    0% {
        transform: translateY(-50px);
        box-shadow: 0 8px 25px rgba(46, 196, 182, 0.3);
    }
    50% {
        transform: translateY(-50px);
        box-shadow: 0 8px 25px rgba(46, 196, 182, 0.5), 0 0 0 10px rgba(46, 196, 182, 0.1);
    }
    100% {
        transform: translateY(-50px);
        box-shadow: 0 8px 25px rgba(46, 196, 182, 0.3);
    }
}

/* Mobile responsive for call button */
@media (max-width: 768px) {
    .floating-call-button {
        bottom: 20px;
        right: 20px;
        z-index: 9999;
    }
    
    .call-button-link {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .call-button-text {
        display: none;
    }
    
    .call-button-icon {
        margin-right: 0;
        width: 28px;
        height: 28px;
    }
}

/* Hide call button on very small screens */
@media (max-width: 480px) {
    .floating-call-button {
        bottom: 15px;
        right: 15px;
        z-index: 9999;
    }
    
    .call-button-link {
        padding: 0.75rem;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .floating-call-button {
        animation: none;
    }
    
    .call-button-link:hover {
        transform: none;
    }
    
    .call-button-link:hover .call-button-icon {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .call-button-link {
        background: #000;
        border: 2px solid #fff;
        color: #fff;
    }
    
    .contact-link {
        color: #fff;
        border: 1px solid #fff;
    }
} 

/* ===== SEO INTRO SECTION ===== */

.seo-intro {
    background: linear-gradient(135deg, #f8fcfd 0%, #e3f8f6 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.seo-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23e3f8f6" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.seo-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.seo-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2c3e50;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.2px;
    text-align: justify;
    text-align-last: center;
}

/* Responsive design per SEO intro */
@media (max-width: 768px) {
    .seo-intro {
        padding: 2rem 0;
    }
    
    .seo-text {
        font-size: 1rem;
        line-height: 1.6;
        text-align: left;
        text-align-last: left;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .seo-intro {
        padding: 1.5rem 0;
    }
    
    .seo-text {
        font-size: 0.95rem;
        line-height: 1.5;
        text-align: justify;
    }
}

/* Animazione sottile per il testo SEO */
.seo-text {
    animation: fadeInUp 0.8s ease-out;
}

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

/* ===== STATIC MAP LINK ===== */

.static-map-link {
    display: block;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, #f8fcfd 0%, #e3f8f6 100%);
    border: 2px solid #e3f8f6;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 120px;
    position: relative;
    overflow: hidden;
}

.static-map-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 196, 182, 0.15);
    border-color: #2ec4b6;
    text-decoration: none;
    color: inherit;
}

.static-map-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 196, 182, 0.05) 0%, rgba(26, 138, 127, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.static-map-link:hover::before {
    opacity: 1;
}

.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
    z-index: 1;
}

.map-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2ec4b6 0%, #1a8a7f 100%);
    border-radius: 50%;
    color: #fff;
    flex-shrink: 0;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.static-map-link:hover .map-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(46, 196, 182, 0.3);
}

.map-text {
    flex: 1;
    text-align: left;
}

.map-text h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    transition: color 0.3s ease;
}

.map-text p {
    color: #5a6c7d;
    font-size: 0.95rem;
    margin: 0;
    transition: color 0.3s ease;
}

.static-map-link:hover .map-text h4 {
    color: #2ec4b6;
}

.static-map-link:hover .map-text p {
    color: #1a8a7f;
}

.map-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #2ec4b6;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.static-map-link:hover .map-arrow {
    transform: translateX(3px);
    color: #1a8a7f;
}

/* Responsive design per static map */
@media (max-width: 768px) {
    .static-map-link {
        height: 100px;
        padding: 1rem;
    }
    
    .map-icon {
        width: 40px;
        height: 40px;
        margin-right: 0.75rem;
    }
    
    .map-text h4 {
        font-size: 1rem;
    }
    
    .map-text p {
        font-size: 0.9rem;
    }
    
    .map-arrow {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .static-map-link {
        height: 90px;
        padding: 0.75rem;
    }
    
    .map-icon {
        width: 36px;
        height: 36px;
        margin-right: 0.5rem;
    }
    
    .map-text h4 {
        font-size: 0.95rem;
    }
    
    .map-text p {
        font-size: 0.85rem;
    }
    
    .map-arrow {
        width: 24px;
        height: 24px;
    }
} 

 