/* ============================================
   TEMPLATE VARIANTS - HEADER & FOOTER STYLES
   Questo file gestisce le variazioni di stile per header e footer
   in base al template attivo (classic, elegant, modern)
   ============================================ */

/* ============================================
   ELEGANT TEMPLATE
   ============================================ */
.template-elegant {
    --primary-color: var(--agency-primary, #d4af37);
    --primary-dark: #1a1a1a;
    --primary-light: #f4e4b8;
    --text-color: #1a1a1a;
    --bg-color: #faf8f3;
}

/* Header Elegant */
.template-elegant .agency-header {
    background: #1a1a1a;
    border-bottom: 3px solid var(--agency-primary, #d4af37);
    box-shadow: 0 2px 15px rgba(212, 175, 55, 0.2);
}

.template-elegant .agency-branding h1,
.template-elegant .agency-info h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--agency-primary, #d4af37);
    letter-spacing: 0.05em;
}

.template-elegant .agency-header .tagline {
    font-family: 'Montserrat', sans-serif;
    color: #f4e4b8;
    font-weight: 300;
    letter-spacing: 0.03em;
}

.template-elegant .footer .tagline,
.template-elegant .footer .footer-agency-tagline,
.template-elegant .footer .footer-description {
    color: #64748b;
    font-family: 'Montserrat', sans-serif;
}

.template-elegant .agency-logo {
    border: 2px solid var(--agency-primary, #d4af37);
    background: #2a2a2a;
}

/* Navigation Elegant */
.template-elegant .agency-nav a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #faf8f3 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.template-elegant .agency-nav a:hover {
    color: var(--agency-primary, #d4af37) !important;
    transform: translateY(-2px);
}

.template-elegant .agency-nav a.active {
    color: var(--agency-primary, #d4af37) !important;
    border-bottom: 2px solid var(--agency-primary, #d4af37);
}

.template-elegant .contact-btn {
    background: var(--agency-primary, #d4af37) !important;
    color: #1a1a1a !important;
    border: 2px solid var(--agency-primary, #d4af37) !important;
    font-weight: 600;
}

.template-elegant .contact-btn:hover {
    background: transparent !important;
    color: var(--agency-primary, #d4af37) !important;
}

.template-elegant .contact-btn.current-page {
    background: #1a1a1a !important;
    color: var(--agency-primary, #d4af37) !important;
    border: 2px solid var(--agency-primary, #d4af37) !important;
}

/* Dropdown Elegant */
.template-elegant .nav-dropdown-menu {
    background: #2a2a2a !important;
    border: 1px solid var(--agency-primary, #d4af37);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.template-elegant .nav-dropdown-menu a,
.template-elegant .agency-nav .nav-dropdown-menu a,
.template-elegant .agency-header .nav-dropdown-menu a,
body.template-elegant .nav-dropdown-menu a {
    color: #faf8f3 !important;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.template-elegant .nav-dropdown-menu a:hover,
.template-elegant .agency-nav .nav-dropdown-menu a:hover,
.template-elegant .agency-header .nav-dropdown-menu a:hover,
body.template-elegant .nav-dropdown-menu a:hover {
    background: rgba(212, 175, 55, 0.15) !important;
    border-left-color: var(--agency-primary, #d4af37);
    color: var(--agency-primary, #d4af37) !important;
    font-weight: 600;
}

.template-elegant .dropdown-trigger.active {
    color: var(--agency-primary, #d4af37) !important;
}

/* Footer Elegant */
.template-elegant .footer {
    background: #1a1a1a;
    color: #faf8f3;
    border-top: 3px solid var(--agency-primary, #d4af37);
}

.template-elegant .footer-title,
.template-elegant .footer h3,
.template-elegant .footer h4 {
    font-family: 'Playfair Display', serif;
    color: var(--agency-primary, #d4af37);
    font-weight: 700;
}

.template-elegant .footer a {
    color: #faf8f3;
    transition: color 0.3s ease;
}

.template-elegant .footer a:hover {
    color: var(--agency-primary, #d4af37);
}

.template-elegant .footer-social a {
    border: 2px solid var(--agency-primary, #d4af37);
    color: var(--agency-primary, #d4af37);
}

.template-elegant .footer-social a:hover {
    background: var(--agency-primary, #d4af37);
    color: #1a1a1a;
}

/* Breadcrumb Elegant */
.template-elegant .breadcrumb {
    background: #2a2a2a;
    border-bottom: 1px solid var(--agency-primary, #d4af37);
}

.template-elegant .breadcrumb a {
    color: #faf8f3;
}

.template-elegant .breadcrumb a:hover {
    color: var(--agency-primary, #d4af37);
}

/* ============================================
   MODERN TEMPLATE
   ============================================ */
.template-modern {
    --primary-color: #667eea;
    --primary-dark: #764ba2;
    --primary-light: #a78bfa;
    --text-color: #1e293b;
    --bg-color: #f8fafc;
}

/* Header Modern */
.template-modern .agency-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    border-bottom: none;
}

.template-modern .agency-branding h1,
.template-modern .agency-info h1 {
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.template-modern .agency-header .tagline {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.template-modern .footer .tagline,
.template-modern .footer .footer-agency-tagline,
.template-modern .footer .footer-description {
    color: #64748b;
}

.template-modern .agency-logo {
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

/* Navigation Modern */
.template-modern .agency-nav a {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9) !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.template-modern .agency-nav a:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
}

.template-modern .agency-nav a.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    border-bottom: none;
}

.template-modern .contact-btn {
    background: #ffffff !important;
    color: #667eea !important;
    border: 2px solid #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.template-modern .contact-btn:hover {
    background: transparent !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.template-modern .contact-btn.current-page {
    background: #ffffff !important;
    color: #667eea !important;
    border: 2px solid #ffffff !important;
}

/* Force fix per contact button modern - extra specificity */
body.template-modern .agency-header .contact-btn {
    background: #ffffff !important;
    color: #667eea !important;
}

body.template-modern .agency-header .contact-btn:hover {
    background: transparent !important;
    color: #ffffff !important;
}

body.template-modern .agency-header .contact-btn.current-page {
    background: #ffffff !important;
    color: #667eea !important;
    border: 2px solid #ffffff !important;
}

/* Dropdown Modern */
.template-modern .nav-dropdown-menu {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.template-modern .nav-dropdown-menu a,
.template-modern .agency-nav .nav-dropdown-menu a,
.template-modern .agency-header .nav-dropdown-menu a,
body.template-modern .nav-dropdown-menu a {
    color: #ffffff !important;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.template-modern .nav-dropdown-menu a:hover,
.template-modern .agency-nav .nav-dropdown-menu a:hover,
.template-modern .agency-header .nav-dropdown-menu a:hover,
body.template-modern .nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-left-color: #ffffff;
    color: #ffffff !important;
    font-weight: 600;
}

.template-modern .dropdown-trigger.active {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

/* Footer Modern */
.template-modern .footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #f8fafc;
    border-top: 4px solid #667eea;
}

.template-modern .footer-title,
.template-modern .footer h3,
.template-modern .footer h4 {
    color: #a78bfa;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.template-modern .footer a {
    color: #f8fafc;
    transition: color 0.3s ease;
}

.template-modern .footer a:hover {
    color: #a78bfa;
}

.template-modern .footer-social a {
    border: 2px solid #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.template-modern .footer-social a:hover {
    background: #667eea;
    color: #ffffff;
}

/* Breadcrumb Modern */
.template-modern .breadcrumb {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-bottom: 2px solid #667eea;
}

.template-modern .breadcrumb a {
    color: #667eea;
    font-weight: 600;
}

.template-modern .breadcrumb a:hover {
    color: #764ba2;
}

/* ============================================
   CLASSIC TEMPLATE (Default)
   ============================================ */
.template-classic {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --text-color: #1f2937;
    --bg-color: #ffffff;
}

/* Header Classic */
.template-classic .agency-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.template-classic .agency-branding h1,
.template-classic .agency-info h1 {
    color: #2563eb;
    font-weight: 700;
}

.template-classic .agency-header .tagline {
    color: #6b7280;
    font-weight: 400;
}

.template-classic .agency-logo {
    border: 2px solid #e5e7eb;
    background: #f9fafb;
}

/* Navigation Classic */
.template-classic .agency-nav a {
    color: #4b5563 !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.template-classic .agency-nav a:hover {
    color: #2563eb !important;
}

.template-classic .agency-nav a.active {
    color: #2563eb !important;
    border-bottom: 2px solid #2563eb;
}

.template-classic .contact-btn {
    background: #2563eb !important;
    color: #ffffff !important;
    border: 2px solid #2563eb !important;
}

.template-classic .contact-btn:hover {
    background: #1e40af !important;
}

.template-classic .contact-btn.current-page {
    background: #1e40af !important;
}

/* Dropdown Classic */
.template-classic .nav-dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #e5e7eb;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.template-classic .nav-dropdown-menu a,
.template-classic .agency-nav .nav-dropdown-menu a,
.template-classic .agency-header .nav-dropdown-menu a,
body.template-classic .nav-dropdown-menu a {
    color: #1f2937 !important;
    border-left: 3px solid transparent;
    font-weight: 500;
    background: #ffffff !important;
}

.template-classic .nav-dropdown-menu a:hover,
.template-classic .agency-nav .nav-dropdown-menu a:hover,
.template-classic .agency-header .nav-dropdown-menu a:hover,
body.template-classic .nav-dropdown-menu a:hover {
    background: #f3f4f6 !important;
    border-left-color: #2563eb;
    color: #2563eb !important;
}

.template-classic .dropdown-trigger.active {
    color: #2563eb !important;
}

/* Footer Classic */
.template-classic .footer {
    background: #f9fafb;
    color: #374151;
    border-top: 1px solid #e5e7eb;
}

.template-classic .footer-title,
.template-classic .footer h3,
.template-classic .footer h4 {
    color: #2563eb;
    font-weight: 700;
}

.template-classic .footer a {
    color: #4b5563;
    transition: color 0.3s ease;
}

.template-classic .footer a:hover {
    color: #2563eb;
}

.template-classic .footer-social a {
    border: 2px solid #2563eb;
    color: #2563eb;
}

.template-classic .footer-social a:hover {
    background: #2563eb;
    color: #ffffff;
}

/* Breadcrumb Classic */
.template-classic .breadcrumb {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.template-classic .breadcrumb a {
    color: #2563eb;
}

.template-classic .breadcrumb a:hover {
    color: #1e40af;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .template-elegant .agency-nav a,
    .template-modern .agency-nav a,
    .template-classic .agency-nav a {
        font-size: 0.85rem;
    }
    
    .template-elegant .agency-branding h1,
    .template-modern .agency-branding h1,
    .template-classic .agency-branding h1 {
        font-size: 1.3rem;
    }
}
/* ============================================
   FOOTER OVERRIDE - Sovrascrive stili inline
   Aggiungi questo alla fine di template-variants.css
   ============================================ */

/* Stili base footer comuni */
.agency-footer {
    padding: 3rem 0 !important;
}

.footer-content-wrapper {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.footer-content {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1.5fr !important;
    gap: 3rem !important;
}

.footer-section h4 {
    margin-bottom: 1rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

.footer-section a {
    display: block !important;
    text-decoration: none !important;
    margin-bottom: 0.5rem !important;
    font-size: 0.9rem !important;
    transition: color 0.3s ease !important;
}

/* Branding footer */
.footer-section > div:first-child {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-bottom: 1rem !important;
}

.footer-section > div:first-child > div:first-child {
    width: 50px !important;
    height: 50px !important;
    border-radius: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    flex-shrink: 0 !important;
}

.footer-section > div:first-child > div:first-child img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 15px !important;
}

.footer-section > div:first-child > div:last-child h3 {
    font-size: 1.2rem !important;
    margin-bottom: 0.2rem !important;
}

.footer-section > div:first-child > div:last-child p {
    font-size: 0.9rem !important;
    margin: 0 !important;
}

.footer-section > p {
    line-height: 1.6 !important;
    font-size: 0.9rem !important;
}

/* Social icons */
.footer-section > div:last-child {
    display: flex !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
}

.footer-section > div:last-child a {
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
    margin-bottom: 0 !important;
}

/* Info box */
.footer-section > div[style*="border"] {
    border-radius: 12px !important;
    padding: 1.5rem !important;
}

.footer-section > div[style*="border"] p {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
    font-size: 0.9rem !important;
}

.footer-section > div[style*="border"] p:last-child {
    margin-bottom: 0 !important;
}

.footer-section > a[style*="background: linear-gradient"] {
    display: block !important;
    text-align: center !important;
    padding: 0.8rem !important;
    border: none !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    margin-top: 1rem !important;
}

/* Copyright */
.footer-content-wrapper > div:last-child {
    text-align: center !important;
    padding-top: 2rem !important;
    margin-top: 2rem !important;
    border-top: 1px solid !important;
    font-size: 0.85rem !important;
}

/* ============================================
   ELEGANT FOOTER OVERRIDE
   ============================================ */
.template-elegant .agency-footer {
    background: #1a1a1a !important;
    color: #faf8f3 !important;
    border-top: 3px solid var(--agency-primary, #d4af37) !important;
}

.template-elegant .footer-section h4 {
    color: var(--agency-primary, #d4af37) !important;
}

.template-elegant .footer-section a {
    color: #faf8f3 !important;
}

.template-elegant .footer-section a:hover {
    color: var(--agency-primary, #d4af37) !important;
}

.template-elegant .footer-section > div:first-child > div:first-child {
    background: #2a2a2a !important;
    border: 2px solid var(--agency-primary, #d4af37) !important;
    color: var(--agency-primary, #d4af37) !important;
}

.template-elegant .footer-section > div:first-child > div:last-child h3 {
    color: var(--agency-primary, #d4af37) !important;
}

.template-elegant .footer-section > div:first-child > div:last-child p {
    color: #64748b !important;
}

.template-elegant .footer-section > p {
    color: #64748b !important;
}

.template-elegant .footer-section > div:last-child a[href*="facebook"] {
    background: var(--agency-primary, #d4af37) !important;
    color: #1a1a1a !important;
}

.template-elegant .footer-section > div:last-child a[href*="instagram"] {
    background: var(--agency-primary, #d4af37) !important;
    color: #1a1a1a !important;
}

.template-elegant .footer-section > div[style*="border"] {
    background: #2a2a2a !important;
    border: 1px solid var(--agency-primary, #d4af37) !important;
}

.template-elegant .footer-section > div[style*="border"] p {
    color: #faf8f3 !important;
}

.template-elegant .footer-section > a[style*="background: linear-gradient"] {
    background: var(--agency-primary, #d4af37) !important;
    color: #1a1a1a !important;
}

.template-elegant .footer-content-wrapper > div:last-child {
    border-top-color: var(--agency-primary, #d4af37) !important;
    color: #faf8f3 !important;
}

/* ============================================
   MODERN FOOTER OVERRIDE
   ============================================ */
.template-modern .agency-footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    color: #f8fafc !important;
    border-top: 4px solid #667eea !important;
}

.template-modern .footer-section h4 {
    color: #a78bfa !important;
}

.template-modern .footer-section a {
    color: #f8fafc !important;
}

.template-modern .footer-section a:hover {
    color: #a78bfa !important;
}

.template-modern .footer-section > div:first-child > div:first-child {
    background: rgba(102, 126, 234, 0.2) !important;
    border: 2px solid #667eea !important;
    color: #ffffff !important;
}

.template-modern .footer-section > div:first-child > div:last-child h3 {
    color: #a78bfa !important;
}

.template-modern .footer-section > div:first-child > div:last-child p {
    color: #cbd5e1 !important;
}

.template-modern .footer-section > p {
    color: #cbd5e1 !important;
}

.template-modern .footer-section > div:last-child a[href*="facebook"] {
    background: #667eea !important;
}

.template-modern .footer-section > div:last-child a[href*="instagram"] {
    background: #667eea !important;
}

.template-modern .footer-section > div[style*="border"] {
    background: rgba(102, 126, 234, 0.1) !important;
    border: 1px solid #667eea !important;
}

.template-modern .footer-section > div[style*="border"] p {
    color: #f8fafc !important;
}

.template-modern .footer-section > a[style*="background: linear-gradient"] {
    background: #667eea !important;
    color: #ffffff !important;
}

.template-modern .footer-content-wrapper > div:last-child {
    border-top-color: #667eea !important;
    color: #cbd5e1 !important;
}

/* ============================================
   CLASSIC FOOTER OVERRIDE
   ============================================ */
.template-classic .agency-footer {
    background: #f9fafb !important;
    color: #374151 !important;
    border-top: 1px solid #e5e7eb !important;
}

.template-classic .footer-section h4 {
    color: #2563eb !important;
}

.template-classic .footer-section a {
    color: #4b5563 !important;
}

.template-classic .footer-section a:hover {
    color: #2563eb !important;
}

.template-classic .footer-section > div:first-child > div:first-child {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
}

.template-classic .footer-section > div:first-child > div:last-child h3 {
    color: #1f2937 !important;
}

.template-classic .footer-section > div:first-child > div:last-child p {
    color: #6b7280 !important;
}

.template-classic .footer-section > p {
    color: #6b7280 !important;
}

.template-classic .footer-section > div:last-child a[href*="facebook"] {
    background: #3b5998 !important;
}

.template-classic .footer-section > div:last-child a[href*="instagram"] {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%) !important;
}

.template-classic .footer-section > div[style*="border"] {
    background: #f0f9ff !important;
    border: 1px solid #bfdbfe !important;
}

.template-classic .footer-section > div[style*="border"] p {
    color: #1e3a8a !important;
}

.template-classic .footer-section > a[style*="background: linear-gradient"] {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
}

.template-classic .footer-content-wrapper > div:last-child {
    border-top-color: #e5e7eb !important;
    color: #6b7280 !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* ============================================
   PLATFORM FOOTER (Powered by SiteForTravel)
   ============================================ */
.platform-footer {
    display: block !important;
    visibility: visible !important;
    background: #1a1a1a !important;
    color: white !important;
    padding: 1.5rem 0 !important;
    border-top: 1px solid #333 !important;
    position: relative !important;
    z-index: 100 !important;
}

.platform-footer-content {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 2rem !important;
    flex-wrap: wrap !important;
}

.platform-footer-branding {
    display: flex !important;
    align-items: center !important;
    gap: 2rem !important;
    flex-wrap: wrap !important;
}

.platform-footer-logo {
    height: 25px !important;
    width: auto !important;
    filter: brightness(0) invert(1) !important;
    opacity: 0.8 !important;
}

.platform-footer-text {
    font-size: 0.9rem !important;
    color: rgba(255,255,255,0.8) !important;
}

.platform-footer-link {
    color: white !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.platform-footer-link:hover {
    color: rgba(255,255,255,0.9) !important;
}

.platform-footer-links {
    display: flex !important;
    gap: 2rem !important;
    font-size: 0.9rem !important;
    flex-wrap: wrap !important;
}

.platform-link {
    color: rgba(255,255,255,0.7) !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
}

.platform-link:hover {
    color: white !important;
}

@media (max-width: 768px) {
    .platform-footer-content {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .platform-footer-branding {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .platform-footer-links {
        justify-content: center !important;
    }
}