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

/* Remove black outline from all clickable elements */
a:focus,
button:focus,
summary:focus,
details:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

body {
    font-family: Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #ffffff;
}

/* Prevent layout shift when images load */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

img[loading="lazy"] {
    min-height: 200px;
    background: #f0f0f0;
}

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

/* Header */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    background-color: #2795F5;
    padding: 2px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    text-align: left;
}

.top-bar-left a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: Roboto, sans-serif;
    transition: opacity 0.3s;
}

.top-bar-left a:hover {
    opacity: 0.8;
}

.top-bar-right {
    text-align: right;
}

.top-bar-right span {
    color: #ffffff;
    font-size: 0.9rem;
    font-family: Roboto, sans-serif;
}

header .container {
    padding: 10px 20px;
    position: relative;
}

.header-main {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

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

.logo img {
    height: 140px;
    width: auto;
    cursor: pointer;
}

.header-phone {
    background-color: #2795F5;
    padding: 12px 20px;
    border-radius: 5px;
    white-space: nowrap;
}

.header-phone a {
    color: #ffffff;
    text-decoration: none;
    font-family: Roboto, sans-serif;
    font-weight: bold;
    font-size: 1.05rem;
    transition: opacity 0.3s;
}

.header-phone a:hover {
    opacity: 0.8;
}

nav {
    display: flex;
    flex: 1;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav ul li {
    position: relative;
}

nav a {
    text-decoration: none;
    color: #000000;
    font-family: Roboto, sans-serif;
    font-weight: bold;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: #2795F5;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

/* Add small down arrow next to Servizi */
.dropdown > a::after {
    content: ' ▾';
    font-size: 1.1em;
    margin-left: 6px;
    font-weight: bold;
}

/* Add invisible bridge between link and menu to prevent closing */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px;
    display: none;
}

.dropdown:hover::after {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 280px;
    z-index: 1000;
    padding: 15px 0;
    list-style: none;
    margin-top: 5px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 1rem;
    text-align: center;
    text-transform: none;
    letter-spacing: 0;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #2795F5;
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #2795F5;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 0;
    width: 100%;
    overflow: hidden;
}

/* About Intro Section */
.about-intro {
    padding: 60px 20px;
    background-color: #ffffff;
}

.about-intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-intro-text h2 {
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-intro-text h3 {
    font-size: 1.1rem;
    color: #000000;
    margin-top: 25px;
    margin-bottom: 15px;
}

.about-intro-text p {
    color: #333333;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
    text-align: justify;
}

.about-intro-text strong {
    color: #000000;
    font-weight: bold;
}

.about-intro-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-intro-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    object-fit: cover;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.hero-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
    background-color: #ffffff;
    color: #2795F5;
    padding: 20px 60px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.5rem;
    transition: background-color 0.3s, transform 0.2s, color 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 3px solid #2795F5;
}

.hero-button:hover {
    background-color: #2795F5;
    color: #ffffff;
    transform: translate(-50%, -50%) scale(1.05);
}

/* Servizi Page */
.servizi-header {
    padding: 30px 20px 15px 20px;
    background-color: #ffffff;
}

.servizi-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.servizi-badge {
    display: inline-block;
    background-color: #2795F5;
    color: #ffffff;
    padding: 15px 40px;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 5px;
}

.servizi-tagline {
    flex: 1;
    text-align: center;
}

.servizi-tagline p {
    color: #4a4a4a;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.servizi-teasers {
    padding: 30px 20px;
}

.teasers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-teaser {
    border: 3px solid #2795F5;
    border-radius: 8px;
    padding: 20px;
    padding-bottom: 70px;
    position: relative;
    background-color: #ffffff;
    transition: box-shadow 0.3s;
}

.service-teaser:hover {
    box-shadow: 0 5px 20px rgba(133, 16, 16, 0.2);
}

.service-teaser h3 {
    color: #000000;
    font-size: 1.3rem;
    margin-bottom: 12px;
    margin-top: 0;
}

.service-teaser p {
    color: #555555;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.teaser-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 3px solid #2795F5;
    background-color: #ffffff;
    color: #2795F5;
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.teaser-button:hover {
    background-color: #2795F5;
    color: #ffffff;
    transform: scale(1.1);
}

/* Buttons */
.cta-button {
    display: inline-block;
    background-color: #2795F5;
    color: #ffffff;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #3aa3f7;
    transform: translateY(-2px);
}

.link-button {
    display: inline-block;
    color: #2795F5;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: color 0.3s;
}

.link-button:hover {
    color: #2795F5;
}

/* Services Grid */
.services-preview,
.services-detail,
.why-us,
.content-section {
    padding: 60px 20px;
}

.services-preview h2,
.services-detail h2,
.why-us h2,
.content-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #000000;
}

/* Services Carousel */
.services-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.services-carousel {
    overflow: hidden;
    width: 100%;
}

.services-grid {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.service-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: calc(33.333% - 14px);
    flex-shrink: 0;
}

.carousel-arrow {
    background-color: #2795F5;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s, transform 0.2s;
    flex-shrink: 0;
    z-index: 10;
}

.carousel-arrow:hover {
    background-color: #1e7dc9;
    transform: scale(1.1);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.service-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #000000;
}

.service-title-link {
    text-decoration: none;
    color: #000000;
    transition: color 0.3s;
}

.service-title-link:hover {
    color: #2795F5;
}

.service-card p {
    color: #555555;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Service Detail Cards */
.service-detail-card {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.service-detail-icon {
    font-size: 4rem;
    flex-shrink: 0;
}

.service-detail-content h2 {
    text-align: left;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.service-detail-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: #000000;
}

.service-detail-content p {
    margin-bottom: 15px;
    color: #333333;
}

.service-detail-content ul {
    list-style: none;
    padding-left: 0;
}

.service-detail-content ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #333333;
}

.service-detail-content ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2795F5;
    font-weight: bold;
}

/* Benefits Grid */
.benefits-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.benefits-carousel {
    overflow: visible;
    width: 100%;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefits-carousel-wrapper .carousel-arrow {
    display: none;
}

.benefit {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.benefit:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.benefit h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2795F5;
}

.benefit p {
    color: #555555;
    display: block;
}

/* Impianti Detail Section */
.impianti-detail {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.impianti-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 50px;
}

.impianti-row:last-child {
    margin-bottom: 0;
}

.impianti-row-reverse {
    direction: rtl;
}

.impianti-row-reverse > * {
    direction: ltr;
}

.impianti-text h2 {
    font-size: 1.8rem;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.4;
}

.impianti-text h3 {
    font-size: 1.3rem;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.4;
}

.impianti-text p {
    color: #333333;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
}

.impianti-text strong {
    color: #000000;
    font-weight: bold;
}

.impianti-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    object-fit: cover;
}

.impianti-image.smaller img {
    width: 80%;
    margin: 0 auto;
    display: block;
}

.impianti-text.align-top {
    align-self: flex-start;
    padding-top: 0;
}

.benefit {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.benefit:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.benefit h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2795F5;
}

.benefit p {
    color: #555555;
}

/* CTA Section */
.cta-section {
    background-color: #f5f5f5;
    padding: 60px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #000000;
    text-transform: lowercase;
    font-style: italic;
    transition: color 0.3s;
    cursor: pointer;
}

.cta-section h2:hover {
    color: #2795F5;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #333333;
}

/* Page Header */
.page-header {
    background-color: #f5f5f5;
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #000000;
}

.page-header p {
    font-size: 1.1rem;
    color: #555555;
    margin-top: 15px;
}

/* Styled Page Header */
.page-header-styled {
    background-color: #2795F5;
    padding: 40px 20px;
}

.page-header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.page-header-styled h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    letter-spacing: 2px;
    margin: 0;
}

.page-header-icon {
    font-size: 2.5rem;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.page-header-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Content Section */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper h2 {
    text-align: left;
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #000000;
}

.content-wrapper p {
    margin-bottom: 20px;
    color: #333333;
    text-align: justify;
}

.features-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.features-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #333333;
}

.features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2795F5;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Contact Section */
.contact-section {
    padding: 60px 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2 {
    text-align: left;
    margin-bottom: 20px;
    color: #000000;
}

.contact-info p {
    margin-bottom: 30px;
    color: #333333;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #000000;
}

.contact-item p,
.contact-item a {
    color: #333333;
    text-decoration: none;
}

.contact-item a:hover {
    color: #2795F5;
}

/* Contact Form */
.contact-form-wrapper {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #000000;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #2795F5;
    border-radius: 5px;
    font-size: 1rem;
    font-family: Roboto, Arial, sans-serif;
    transition: border-color 0.3s;
}

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

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
}

.submit-button {
    background-color: #2795F5;
    color: #ffffff;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.submit-button:hover {
    background-color: #3aa3f7;
    transform: translateY(-2px);
}

.form-message {
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* Footer */
footer {
    background-color: #2795F5;
    color: #ffffff;
    padding: 50px 20px 30px;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.footer-box {
    border: 2px solid #ffffff;
    padding: 30px 40px;
    background-color: rgba(255, 255, 255, 0.1);
    text-align: center;
    border-radius: 10px;
    flex: 1;
    min-width: 280px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.footer-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.footer-box p {
    font-family: Roboto, sans-serif;
    color: #ffffff;
    margin: 10px 0;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.8;
}

.footer-box p:first-child {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 10px;
}

.footer-box a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-box a:hover {
    opacity: 0.8;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: #ffffff;
}

.footer-section p {
    color: #cccccc;
    margin-bottom: 8px;
}

.footer-section a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #2795F5;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Realizations Section */
.realizations-section {
    padding: 60px 20px;
}

.realizations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.realization-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.realization-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.realization-image-placeholder {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.realization-content {
    padding: 25px;
}

.realization-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #000000;
}

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

.realization-location {
    display: inline-block;
    background-color: #2795F5;
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 38px;
    height: 38px;
    fill: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .header-main {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        position: relative;
        padding: 0;
    }

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

    .logo img {
        height: 70px;
    }

    .mobile-menu-toggle {
        display: flex;
        position: static;
        order: 1;
        margin: 0 auto;
        align-self: center;
        padding: 0;
    }

    .header-phone {
        order: 2;
        padding: 10px 16px;
        flex-shrink: 0;
        align-self: center;
    }

    .header-phone a {
        font-size: 0.85rem;
    }

    header .container {
        position: relative;
        padding: 10px 20px;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    nav.active {
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 15px 20px 20px 20px;
    }

    nav ul li {
        border-bottom: 1px solid #eeeeee;
        text-align: center;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav a {
        display: block;
        padding: 12px 0;
        font-size: 1rem;
    }

    .dropdown {
        position: static;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown:hover::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        min-width: auto;
        margin: 0;
        padding: 0;
        background-color: #f5f5f5;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        display: block !important;
    }

    .dropdown.active .dropdown-menu {
        max-height: 250px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dropdown-menu li {
        border-bottom: 1px solid #e0e0e0;
    }

    .dropdown-menu li:last-child {
        border-bottom: none;
    }

    .dropdown-menu a {
        padding: 10px 15px;
        font-size: 0.9rem;
        background-color: #f5f5f5;
    }

    /* Hero */
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* About Intro Section */
    .about-intro-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-intro-text h2 {
        font-size: 1.5rem;
    }

    .about-intro-text h3 {
        font-size: 1.2rem;
    }

    /* Impianti Detail Section */
    .impianti-row,
    .impianti-row-reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        direction: ltr;
    }

    .impianti-text h2 {
        font-size: 1.5rem;
    }

    .impianti-text h3 {
        font-size: 1.2rem;
    }

    /* Styled Page Header */
    .page-header-styled {
        padding: 20px 15px;
    }

    .page-header-content {
        gap: 15px;
        flex-wrap: wrap;
    }

    .page-header-styled h1 {
        font-size: 1.2rem;
        letter-spacing: 1px;
        flex: 1 1 100%;
        order: -1;
    }

    .page-header-icon {
        font-size: 1.5rem;
        width: 45px;
        height: 45px;
    }

    .page-header-icon svg {
        width: 24px;
        height: 24px;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Services Preview Section (Home Carousel) */
    .services-preview {
        padding: 30px 15px;
    }

    .services-preview h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .services-carousel-wrapper {
        gap: 10px;
        margin-bottom: 20px;
    }

    .carousel-arrow {
        width: 35px;
        height: 35px;
        min-width: 35px;
    }

    .carousel-arrow svg {
        width: 18px;
        height: 18px;
    }

    .service-card {
        min-width: calc(50% - 10px);
        padding: 8px;
    }

    .service-card h3 {
        font-size: 0.75rem;
        margin-bottom: 0;
        line-height: 1.2;
        text-align: left;
        white-space: normal;
        word-wrap: break-word;
    }

    .service-card p {
        display: none;
    }

    .service-icon {
        margin-bottom: 8px;
    }

    .service-icon img {
        height: 80px;
        width: 100%;
        object-fit: cover;
        border-radius: 6px;
    }

    /* Why Us Section (Perché Sceglierci) */
    .why-us {
        padding: 30px 15px;
    }

    .why-us h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .benefits-carousel-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .benefits-carousel-wrapper .carousel-arrow {
        display: flex;
        width: 35px;
        height: 35px;
        min-width: 35px;
    }

    .benefits-carousel-wrapper .carousel-arrow svg {
        width: 18px;
        height: 18px;
    }

    .benefits-carousel {
        overflow: hidden;
        width: 100%;
    }

    .benefits-grid {
        display: flex;
        transition: transform 0.5s ease;
        gap: 15px;
    }

    .benefit {
        min-width: 100%;
        flex-shrink: 0;
        padding: 25px 15px;
        background-color: #f9f9f9;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .benefit h3 {
        font-size: 1.1rem;
        margin-bottom: 0;
        text-align: center;
        white-space: normal;
        word-wrap: break-word;
    }

    .benefit p {
        display: none;
    }

    /* Servizi Page Mobile */
    .servizi-header {
        padding: 20px 15px 10px 15px;
    }

    .servizi-header-content {
        flex-direction: column;
        gap: 15px;
    }

    .servizi-badge {
        padding: 10px 25px;
        font-size: 1.1rem;
    }

    .servizi-tagline p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .servizi-teasers {
        padding: 20px 15px;
    }

    .service-teaser h3 {
        font-size: 1.1rem;
    }

    .service-teaser p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .teaser-button {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    /* Service Detail Cards */
    .service-detail-card {
        flex-direction: column;
        gap: 20px;
    }

    .service-detail-icon {
        font-size: 3rem;
    }

    /* Realizations Grid */
    .realizations-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    /* WhatsApp Button */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    /* Footer */
    footer {
        padding: 30px 15px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .footer-box {
        padding: 20px 25px;
        min-width: auto;
        width: 100%;
        text-align: center;
    }

    .footer-box p {
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        line-height: 1.6;
        margin: 8px 0;
    }

    .footer-box p:first-child {
        font-size: 1rem;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .footer-bottom {
        font-size: 0.9rem;
        letter-spacing: 1px;
        padding-top: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .contact-grid {
        gap: 40px;
    }
}