/* =========================================================================
   LOVE ETIPET - CSS Variables & Reset
   ========================================================================= */

:root {
    /* Colors based on Copper/Bronze logo */
    --color-primary: #a86d46;
    --color-primary-dark: #8c5736;
    --color-primary-light: #c88d66;
    --color-accent: #c49977;
    
    /* Neutrals */
    --color-bg: #ffffff; /* Bianco puro */
    --color-bg-alt: #f9f9f9; /* Grigio chiarissimo */
    --color-text: #2f2520; /* Very dark brown, better than black */
    --color-text-light: #6a5951;
    --color-white: #ffffff;
    
    /* Typography */
    --font-sans: 'Montserrat', system-ui, -apple-system, sans-serif;
    --font-serif: 'Cormorant Garamond', serif;
    
    /* Spacing & Layout */
    --max-width: 1200px;
    --section-padding: 5rem 1rem;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(47, 37, 32, 0.05);
    --shadow-md: 0 10px 20px rgba(47, 37, 32, 0.08);
    --shadow-lg: 0 20px 40px rgba(47, 37, 32, 0.12);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* =========================================================================
   LAYOUT UTILITIES
   ========================================================================= */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

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

.text-center { text-align: center; }
.text-white { color: var(--color-white) !important; }
.opacity-80 { opacity: 0.8; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Split Layout */
.split-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .split-layout {
        flex-direction: row;
        justify-content: space-between;
    }
    .split-layout.reverse {
        flex-direction: row-reverse;
    }
    .split-text, .split-image {
        flex: 1;
    }
    .split-text {
        max-width: 500px;
    }
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn i { font-size: 1.2rem; }

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(168, 109, 70, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 109, 70, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--color-text);
    color: var(--color-white);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover, .btn-outline-light:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.5);
    color: var(--color-white);
}
.btn-outline-light:hover {
    background-color: var(--color-white);
    color: var(--color-primary-dark);
}

/* =========================================================================
   COMPONENTS
   ========================================================================= */

/* Navbar */
/* Navigation structure */
.header-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color-white);
    transition: var(--transition);
}

.top-bar {
    background-color: var(--color-bg-alt);
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(168, 109, 70, 0.05);
    font-size: 0.85rem;
    transition: var(--transition);
}

.scrolled .top-bar {
    padding: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    border: none;
}

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

.top-bar-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.location-item i {
    color: var(--color-primary);
}

.phone-highlight {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(168, 109, 70, 0.2);
    transition: var(--transition);
    white-space: nowrap;
}

.phone-highlight:hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.05);
}

.h24-badge {
    font-size: 0.75rem;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.1rem 0.6rem;
    border-radius: 50px;
    margin-left: 0.5rem;
    font-weight: 400;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(168, 109, 70, 0.1);
}

.scrolled .navbar {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {
    .top-bar-locations {
        display: none; /* Hide addresses on small mobile to keep phone prominent */
    }
    .top-bar-container {
        justify-content: center;
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 90px; /* Logo ingrandito */
    width: auto;
    display: block;
    transition: var(--transition);
}

.scrolled .logo-img {
    height: 70px; /* Più grande anche in fase di scroll */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav-link:not(.btn):hover::after {
    width: 100%;
}

.nav-link:not(.btn):hover {
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-primary-dark);
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }
    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('../img/hero_dog_cat_person.png') center/cover no-repeat fixed;
    padding-top: 150px; /* Increased for top-bar + navbar */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(47, 37, 32, 0.8) 0%, rgba(47, 37, 32, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--color-white);
    max-width: 600px;
}

.hero-subtitle {
    display: inline-block;
    background-color: rgba(168, 109, 70, 0.2);
    border: 1px solid rgba(168, 109, 70, 0.5);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta { 
    display: flex; 
    gap: 2rem; 
    flex-wrap: wrap; 
    align-items: center;
}

.hero-cta-main {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.h24-info {
    font-size: 0.9rem;
    color: var(--color-white);
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.h24-info i {
    color: var(--color-accent);
}

.hero-cta .btn-secondary { color: white; border-color: rgba(255,255,255,0.7); height: fit-content; }
.hero-cta .btn-secondary:hover { background-color: var(--color-primary); border-color: transparent; }

/* Image Wrappers */
.image-wrapper {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 10; /* Un formato widescreen elegante */
    box-shadow: var(--shadow-md);
}
.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.image-wrapper:hover img {
    transform: scale(1.05);
}
.image-wrapper.shadow { box-shadow: var(--shadow-lg); }
.image-wrapper.subtle-border { border: 10px solid var(--color-white); box-shadow: var(--shadow-md); }

/* Service Cards */
.service-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.service-card.featured {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}
.service-card.featured h3 { color: var(--color-white); }
.service-card.featured p { color: rgba(255,255,255,0.8); }

.card-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    display: inline-flex;
    padding: 1rem;
    background-color: var(--color-bg-alt);
    border-radius: 50%;
}
.service-card.featured .card-icon { background-color: rgba(255,255,255,0.1); color: var(--color-white); }

/* Product Grid */
.product-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background-color: #ffffff;
    padding: 1rem;
}
.product-info { padding: 1.5rem; text-align: center; }
.product-info h4 { margin-bottom: 0.5rem; font-family: var(--font-sans); color: var(--color-primary-dark);}
.product-info p { color: var(--color-text-light); font-size: 0.9rem; }

a.clickable-product {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-top: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

a.clickable-product:hover .btn-link {
    gap: 0.8rem;
    color: var(--color-primary-dark);
}

.blog-card img {
    transition: transform 0.5s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

/* Rainbow Bridge Section */
.rainbow-section {
    background: linear-gradient(135deg, #3a4b60 0%, #222b36 100%); /* Notte stellata/calma */
    padding: 6rem 1rem;
    position: relative;
    overflow: hidden;
}

.rainbow-icon {
    font-size: 3rem;
    color: #e5b887;
    margin-bottom: 1rem;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.memory-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 1rem;
    backdrop-filter: blur(12px);
    color: var(--color-white);
    transition: var(--transition);
}

.memory-card:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.1);
}

.memory-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: calc(var(--border-radius) - 4px);
    margin-bottom: 1rem;
}

.memory-content h5 { color: #e5b887; margin-bottom: 0.5rem; font-size: 1.2rem;}
.dedication { font-style: italic; font-size: 0.95rem; margin-bottom: 1rem; opacity: 0.9; }
.family-name { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.6); }

.call-to-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    padding: 2rem;
    background: rgba(168, 109, 70, 0.2);
    border-color: rgba(168, 109, 70, 0.4);
}
.call-to-action-card i { font-size: 2rem; color: #e5b887; }

/* Footer */
.footer {
    background-color: var(--color-text);
    color: var(--color-white);
    padding: 4rem 1rem 1rem;
}

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

.footer-logo-img {
    height: 120px; /* Logo più grande nel footer */
    margin-bottom: 1.5rem;
    background-color: #ffffff; /* Assicura sfondo bianco intorno al logo se il footer è scuro */
    padding: 10px;
    border-radius: 8px;
    opacity: 1;
}

.slogan-footer { font-style: italic; opacity: 0.8; }
.footer-desc { font-size: 0.9rem; opacity: 0.7; }

.footer-col h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--color-primary-light); padding-left: 5px;}

.contact-col p { margin-bottom: 1rem; opacity: 0.8; font-size: 0.9rem; }
.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: var(--color-primary-light);
}
.contact-link:hover { color: var(--color-white); }
.contact-link i { font-size: 1.3rem; }

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

/* Reviews Section */
.google-badge-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1.2rem 2.5rem;
    background: var(--color-white);
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}

.google-logo-sm { height: 26px; }

.stars-summary {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.rating-number {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-text);
}

.stars { color: #fbbc04; display: flex; gap: 3px; font-size: 1.1rem; }

.review-count {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-style: italic;
}

.reviews-grid { 
    margin-top: 2rem; 
    gap: 2rem;
}

.review-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    text-align: left;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: #4285F4;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.reviewer-name {
    display: block;
    font-weight: 600;
    color: var(--color-primary-dark);
    font-size: 1.1rem;
}

.review-date {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.review-stars { color: #fbbc04; font-size: 1rem; margin-top: 0.3rem; }

.review-text {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.google-icon-tiny {
    position: absolute;
    bottom: 1.2rem;
    right: 1.5rem;
    color: #4285F4;
    font-size: 1.4rem;
    opacity: 0.2;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--color-white);
    color: #4285F4;
    border: 2px solid #4285F4;
    padding: 0.9rem 2.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    text-decoration: none;
}

.btn-google:hover {
    background-color: #4285F4;
    color: var(--color-white);
    transform: scale(1.02);
}

@media (max-width: 992px) {
    .reviews-grid { grid-template-columns: 1fr; max-width: 600px; margin-left: auto; margin-right: auto; }
}

/* =========================================================================
   MODERNIZATION UPGRADES
   ========================================================================= */

/* Swiper Customization */
.reviews-swiper {
    padding-bottom: 3rem !important;
}
.swiper-pagination-bullet-active {
    background-color: var(--color-primary-dark) !important;
}
.swiper-slide {
    height: auto;
    display: flex;
}
.swiper-slide .review-card {
    height: 100%;
    width: 100%;
    margin: 0;
}

/* F.A.Q. Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover {
    box-shadow: var(--shadow-md);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
}
.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-primary-dark);
}
.faq-question i {
    font-size: 1.2rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: var(--color-bg-alt);
}
.faq-answer p {
    padding: 0 2rem 1.5rem;
    margin: 0;
    color: var(--color-text);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
    color: #FFF;
}

/* Scroll Fade-in Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* Structure gallery carousel - Refined */
.structure-swiper.image-wrapper {
  max-width: 600px;
  width: 100%;
  margin-left: 0;
}
.structure-swiper .swiper-pagination-bullet {
  background: var(--color-primary);
  opacity: 0.7;
}
.structure-swiper .swiper-pagination-bullet-active {
  background: var(--color-primary-dark);
  opacity: 1;
}
