:root {
    --primary-color: #316378;
    --bg-light: #f4f7f8;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --accent-gold: #d4af37;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
}

h1,
h2,
h3,
.brand-logo {
    font-family: 'Playfair Display', serif;
}

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

/*--- HEADER & NAVIGATION ---*/
header {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    transition: all 0.3s ease;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

header.scrolled .nav-container {
    padding: 5px 5%;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    color: white;
    margin-left: 15px;
}

.header-actions {
    display: flex;
    align-items: center;
}

.header-contacts {
    display: flex;
    align-items: center;
}

.nav-contact-icon {
    color: var(--text-light);
    margin-left: 15px;
    display: flex;
    transition: opacity 0.3s;
}

.nav-contact-icon:hover {
    opacity: 0.8;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

nav ul li a:hover {
    opacity: 0.8;
}

/*--- HERO SECTION ---*/
.hero {
    background: linear-gradient(rgba(49, 99, 120, 0.7), rgba(49, 99, 120, 0.5)), url('img/chi-siamo.jpg') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 1px;
}

.btn {
    display: inline-block;
    padding: 12px 35px;
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/*--- SECTION STYLE GENERAL ---*/
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 15px;
    position: relative;
    font-weight: 400;
}

.section-title.white {
    color: var(--text-light);
}

.section-subtitle {
    text-align: center;
    font-style: italic;
    margin-bottom: 50px;
    color: #7f8c8d;
}

/*--- ABOUT / IL SALONE ---*/
.about-section {
    background-color: #ffffff;
    padding: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text {
    text-align: left;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
    text-align: left;
}

.about-text .section-title,
.about-text .section-subtitle {
    text-align: left;
}

.about-images {
    display: flex;
    flex-direction: column;
}

.about-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/*--- EMOZIONI ---*/
.emozioni-section {
    background-color: var(--bg-light);
}

.emozioni-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.emozioni-text {
    text-align: left;
}

.emozioni-text p {
    font-size: 1.1rem;
    color: #555;
    font-style: italic;
}

.emozioni-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.emozioni-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

/*--- RITUALI / CAROUSEL ---*/
.services-section {
    background-color: #ffffff;
}

.swiper {
    width: 100%;
    padding: 15px 60px 60px 60px;
    box-sizing: border-box;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color) !important;
    background: white;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin-top: -30px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px !important;
    font-weight: bold;
}

.swiper-button-prev {
    left: 5px !important;
}

.swiper-button-next {
    right: 5px !important;
}

.swiper-slide {
    height: auto;
    display: flex;
}

.service-card {
    background: #ffffff;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    width: 100%;
}

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

.service-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.service-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

/*--- SOCIAL & FEED SECTION ---*/
.social-section {
    background-color: var(--bg-light);
}

.social-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 25px;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 20px;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
}

.facebook-btn {
    background-color: #1877F2;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.fb-feed-container {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    overflow: hidden;
}

/*--- CONTACT & HOURS ---*/
.contact-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

.info-box h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.info-box ul {
    list-style: none;
}

.info-box ul li {
    margin-bottom: 15px;
    font-size: 15px;
    opacity: 0.9;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 2px;
}

/*--- PRE-FOOTER ---*/
.pre-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 30px 20px;
    text-align: center;
    font-size: 14px;
}

.pre-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.pre-footer-box h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
    display: inline-block;
}

.pre-footer-box ul {
    list-style: none;
    padding: 0;
}

.pre-footer-box ul li {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.pre-footer-box ul li.center {
    justify-content: center;
}

/*--- FOOTER ---*/
footer {
    background-color: #254b5b;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 30px 20px;
    font-size: 13px;
}

footer a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 10px;
}

/* Responsive (Mobile First optimizations via max-width) */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .logo-placeholder {
        order: 1;
    }

    .header-actions {
        order: 2;
    }

    .mobile-menu-btn {
        display: block;
    }

    nav {
        width: 100%;
        display: none;
        order: 3;
        margin-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 15px;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .nav-contact-icon {
        margin-left: 10px;
    }

    .about-grid,
    .contact-grid,
    .emozioni-layout,
    .social-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-text,
    .about-text p,
    .about-text .section-title,
    .about-text .section-subtitle {
        text-align: center;
    }

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

    .hero-content p {
        font-size: 1.1rem;
    }

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

    .emozioni-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    .emozioni-text {
        text-align: center;
        margin-top: 20px;
    }

    .emozioni-text h2 {
        text-align: center;
    }

    .btn,
    .social-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        justify-content: center;
    }

    .swiper {
        padding: 15px 10px 60px 10px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

/*--- UTILITY CLASSES ---*/
.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-25 {
    margin-top: 25px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-50 {
    margin-top: 50px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-50 {
    margin-bottom: 50px;
}

.mb-60 {
    margin-bottom: 60px;
}

.mb-80 {
    margin-bottom: 80px;
}

.pb-10 {
    padding-bottom: 10px;
}

.pb-20 {
    padding-bottom: 20px;
}

.pb-40 {
    padding-bottom: 40px;
}

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

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

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

.bg-primary {
    background-color: var(--primary-color);
}

.bg-gray {
    background-color: #f9f9f9;
}

/*--- SEMANTIC CLASSES ---*/
.intro-container {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.intro-container.max-w-700 {
    max-width: 700px;
}

.intro-container.max-w-800 {
    max-width: 800px;
}

.intro-text-p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.contact-item.center {
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.contact-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.contact-link-lg {
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.contact-link-sm {
    font-size: 1rem;
    letter-spacing: normal;
}

.social-icon-link {
    color: white;
    font-size: 24px;
    text-decoration: none;
    margin-right: 15px;
    display: flex;
}

.listino-notice {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.listino-btn {
    border-color: var(--text-light);
    color: var(--text-light);
    background-color: transparent;
}

.rituali-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rituali-card a {
    text-decoration: none;
    color: inherit;
}

.rituali-card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.rituali-card-content {
    padding: 20px;
    flex-grow: 1;
}

.rituali-card-title {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.rituali-card-desc {
    font-size: 0.95rem;
    color: #666;
}

.rituali-card-btn {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.rituali-extra-imgs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.rituali-extra-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.rituali-back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
}

.rituali-single-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.rituali-single-col {
    flex: 1 1 400px;
    min-width: 300px;
}

.rituali-single-main-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.rituali-badge {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/*--- VIDEO SECTION ---*/
.video-section {
    background-color: #ffffff;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #000;
}

.plyr {
    border-radius: 8px;
    height: 100%;
}

/*--- REMAINING UTILITY CLASSES ---*/
.fs-18 {
    font-size: 1.8rem;
}

.fs-20 {
    font-size: 2rem;
}

.btn-block {
    display: inline-block;
    text-align: center;
    width: 100%;
}

.h-600 {
    height: 600px;
}

.h-500 {
    height: 500px;
}

.salone-list {
    margin-top: 15px;
    margin-bottom: 15px;
    padding-left: 20px;
    line-height: 1.6;
    color: var(--text-color);
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded-8 {
    border-radius: 8px;
}

.py-60 {
    padding: 60px 0;
}

/*--- CONTATTI SPECIFIC CLASSES ---*/
.text-light-70 {
    color: rgba(255, 255, 255, 0.7);
}

.orari-header {
    margin-top: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
}

.orari-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.social-container {
    margin-top: 30px;
    display: flex;
    align-items: center;
}

.social-link {
    color: white;
    text-decoration: none;
    display: flex;
}

.mr-20 {
    margin-right: 20px;
}

.community-text {
    font-size: 1.1rem;
    color: #555;
}

.map-iframe {
    border: 0;
    width: 100%;
    height: 100%;
}

.fb-iframe {
    border: none;
    overflow: hidden;
    max-width: 100%;
    border-radius: 8px;
}

/*--- LISTINO ---*/
.listino-section {
    min-height: calc(100vh - 200px);
}

/*--- SALONE & RITUALI GALLERY ---*/
@media (min-width: 769px) {
    .about-grid-2col {
        grid-template-columns: 2fr 1fr;
        gap: 80px;
    }
}

.gallery-section {
    background-color: #f9f9f9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/*--- RECENSIONI ---*/
.reviews-section {
    background-color: var(--bg-light);
}

.review-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top: 4px solid var(--accent-gold);
    text-align: center;
}

.review-stars {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 1rem;
    color: #555;
    font-style: italic;
    flex-grow: 1;
    margin-bottom: 20px;
    line-height: 1.6;
}

.review-author {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}