/* ============================================
   VibraBene Benessere - Main Stylesheet
   Color Palette from Logo:
   - Verde: #7B9E3F
   - Blu/Acqua: #5BA8A0
   - Bianco: #FFFFFF
   - Grigio: #F5F5F5
   ============================================ */

:root {
    --color-primary: #7B9E3F;
    --color-secondary: #25887e;
    --color-accent: #6B8E3F;
    --color-white: #FFFFFF;
    --color-light-bg: #F5F5F5;
    --color-text-dark: #333333;
    --color-text-light: #666666;
    --font-primary: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    line-height: 1.6;
    background: var(--color-light-bg);
    position: relative;
    overflow-x: hidden;
}

/* Background Image */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/background_sito.png') center/cover no-repeat;
    filter: blur(8px) brightness(0.9);
    z-index: -1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}




.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 200px;
    list-style: none;
    padding: 10px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    color: var(--color-text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-link:hover {
    background: var(--color-light-bg);
    color: var(--color-primary);
    padding-left: 25px;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 120px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(123, 158, 63, 0.3) 0%, rgba(91, 168, 160, 0.3) 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    animation: fadeInUp 1s ease-out;
}


/* Hero Main Container - Photo + Text */
.hero-main {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 30px auto;
}

.hero-photo {
    width: 240px;
    height: 240px;
    object-fit: cover;
    object-position: center top;
    /* Mostra la parte superiore per includere la fronte */
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-text-box {
    padding: 40px 50px;
    flex: 1;
}

.hero-title {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    text-align: left;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0;
    color: rgba(73, 72, 72, 0.85);
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    text-align: left;
}

.hero-cta {
    display: inline-block;
    padding: 15px 40px;
    background: var(--color-white);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    margin-top: 10px;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        top: 10px;
        opacity: 1;
    }

    100% {
        top: 30px;
        opacity: 0;
    }
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

.content-section {
    padding: 100px 0;
    position: relative;
}

.content-section:nth-child(even) {
    background: rgba(255, 255, 255, 0.9);
}

.content-section:nth-child(odd) {
    background: rgba(245, 245, 245, 0.9);
}

.section-transparent {
    background-color: rgba(255, 255, 255, 0.3) !important;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-even .section-grid {
    direction: rtl;
}

.section-even .section-grid>* {
    direction: ltr;
}

.section-image img,
.placeholder-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Image Fit Utilities */
.img-fit-contain {
    object-fit: contain !important;
    background-color: transparent;
}

.img-fit-cover {
    object-fit: cover !important;
}

.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--color-secondary);
    margin-bottom: 20px;
    font-weight: 400;
}

.section-description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Floating Image Layout (La Mia Storia) */
.section-content-floating {
    max-width: 1000px;
    margin: 0 auto;
}

.floating-image {
    max-width: 350px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.img-left {
    float: left;
    margin-right: 40px;
}

.img-right {
    float: right;
    margin-left: 40px;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

@media (max-width: 768px) {
    .floating-image {
        float: none;
        display: block;
        margin: 0 auto 30px;
        width: 100%;
        max-width: 100%;
    }

    .img-left,
    .img-right {
        margin-right: 0;
        margin-left: 0;
    }
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 35px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
}

/* ============================================
   CONTACTS - SOCIAL WALL
   ============================================ */

.contacts-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    font-size: 1.2rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.social-wall {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 900px;
    margin: 0 auto 60px auto;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 0;
    /* Permette al flex item di shrink correttamente */
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.social-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 28px;
    height: 28px;
}

.social-info {
    flex: 1;
    min-width: 0;
    /* Permette il wrapping del testo */
}

.social-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.social-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
    word-break: break-word;
    /* Permette il wrapping di testi lunghi */
    overflow-wrap: break-word;
}

/* Social Card Colors */
.social-card.email .social-icon {
    background: rgba(123, 158, 63, 0.1);
    color: var(--color-primary);
    border: 2px solid rgba(123, 158, 63, 0.3);
}

.social-card.email:hover .social-icon {
    background: rgba(123, 158, 63, 0.15);
    border-color: var(--color-primary);
}

.social-card.instagram .social-icon {
    background: rgba(91, 168, 160, 0.1);
    color: var(--color-secondary);
    border: 2px solid rgba(91, 168, 160, 0.3);
}

.social-card.instagram:hover .social-icon {
    background: rgba(91, 168, 160, 0.15);
    border-color: var(--color-secondary);
}

.social-card.facebook .social-icon {
    background: rgba(123, 158, 63, 0.1);
    color: var(--color-primary);
    border: 2px solid rgba(123, 158, 63, 0.3);
}

.social-card.facebook:hover .social-icon {
    background: rgba(123, 158, 63, 0.15);
    border-color: var(--color-primary);
}

.social-card.tiktok .social-icon {
    background: rgba(91, 168, 160, 0.1);
    color: var(--color-secondary);
    border: 2px solid rgba(91, 168, 160, 0.3);
}

.social-card.tiktok:hover .social-icon {
    background: rgba(91, 168, 160, 0.15);
    border-color: var(--color-secondary);
}

.qr-section {
    text-align: center;
    max-width: 600px;
    margin: 60px auto 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.qr-section h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.qr-section p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.qr-container {
    display: inline-block;
    padding: 20px;
    background: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qr-code {
    width: 250px;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Closing Quote - Frase Finale Ad Effetto */
.closing-quote {
    text-align: center;
    max-width: 800px;
    margin: 80px auto 0 auto;
    padding: 50px 30px;
    position: relative;
}

.closing-quote:not(.visible) .quote-line {
    opacity: 0;
}

.quote-text {
    font-family: 'Caveat', cursive;
    font-style: normal;
    font-size: 2.8rem;
    line-height: 1.3;
    color: var(--color-primary);
    margin: 0;
    transform: rotate(-1.5deg);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-shadow: 0 2px 8px rgba(123, 158, 63, 0.15);
}

.quote-line {
    display: block;
    opacity: 0;
}

/* Animazioni fade-in attivate solo quando diventa visibile */
.closing-quote.visible .quote-line {
    animation: fadeInText 1s ease-out forwards;
}

.closing-quote.visible .quote-line:nth-child(1) {
    animation-delay: 0.5s;
}

.quote-line:nth-child(2) {
    font-size: 3.2rem;
    font-weight: 700;
}

.closing-quote.visible .quote-line:nth-child(2) {
    animation-delay: 1.5s;
}

.quote-line.quote-cta {
    margin-top: 20px;
    color: var(--color-secondary);
    font-size: 2.6rem;
    font-weight: 600;
}

.closing-quote.visible .quote-line.quote-cta {
    animation-delay: 2.5s;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive for Social Wall */
@media (max-width: 768px) {
    .social-wall {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .social-card {
        padding: 20px;
    }

    .qr-section {
        padding: 30px 20px;
    }

    .qr-code {
        width: 200px;
    }

    .closing-quote {
        margin: 50px auto 0 auto;
        padding: 30px 20px;
    }

    .quote-text {
        font-size: 2rem;
    }

    /* Disabilita effetto typewriter su mobile e permetti text wrap */
    .quote-line {
        white-space: normal;
        width: auto;
        overflow: visible;
    }

    .closing-quote.visible .quote-line {
        animation: fadeIn 0.8s ease-out forwards;
    }

    .closing-quote.visible .quote-line:nth-child(1) {
        animation-delay: 0.3s;
    }

    .closing-quote.visible .quote-line:nth-child(2) {
        animation-delay: 0.6s;
    }

    .closing-quote.visible .quote-line.quote-cta {
        animation-delay: 0.9s;
    }

    .quote-line:nth-child(2) {
        font-size: 2.4rem;
    }

    .quote-line.quote-cta {
        font-size: 2rem;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    width: 120px;
    height: auto;
    margin-bottom: 15px;
    /*filter: brightness(0) invert(1);*/
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.powered-by {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 10px;
}

.powered-by a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.powered-by a:hover {
    text-decoration: underline;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* AOS Animations */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-left"] {
    transform: translateX(-50px);
}

[data-aos="fade-right"] {
    transform: translateX(50px);
}

[data-aos].aos-animate {
    transform: translateX(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 968px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-even .section-grid {
        direction: ltr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        margin-right: 10px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 10px 0 10px 20px;
        margin-top: 10px;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-toggle {
        cursor: pointer;
    }

    .dropdown-link {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .hero {
        padding-top: 90px;
        padding-bottom: 100px;
        min-height: 100vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-main {
        flex-direction: column;
        gap: 25px;
    }

    .hero-photo {
        width: 180px;
        height: 180px;
    }

    .hero-text-box {
        padding: 30px 25px;
        max-width: 90%;
    }

    .section-title {
        font-size: 2rem;
    }

    .content-section {
        padding: 60px 0;
    }


}