/* Theme: SuleTema - Il Tema Ufficiale del Salento */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #f59e0b; /* Sole del Salento */
    --primary-hover: #d97706;
    --suletema-sea: #0ea5e9; /* Mare di Salento */
    --suletema-sea-deep: #1e3a8a; /* Blu profondo */
    --suletema-wind: #f8fafc; /* Vento fresco (slate 50) */
    --suletema-text: #0f172a; /* Slate 900 */
    --suletema-text-light: #475569; /* Slate 600 */
    --suletema-border: #e2e8f0; /* Slate 200 */
    --suletema-card-bg: rgba(255, 255, 255, 0.9);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--suletema-wind);
    color: var(--suletema-text);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-image: 
        radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(245, 158, 11, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
}

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

/* Header & Glassmorphism */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
}

.logo img {
    max-height: 50px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Elegant Navigation */
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 32px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    color: var(--suletema-text-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-transform: capitalize;
    font-family: 'Outfit', sans-serif;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.main-nav a:hover {
    color: var(--suletema-sea);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--suletema-sea) 100%);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 480px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-bottom: 5px solid var(--primary);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.7) 0%, rgba(15, 23, 42, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem !important;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin: 0;
    letter-spacing: -1px;
    text-transform: capitalize;
}

.hero-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: var(--primary);
    margin: 20px auto 0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Main Site Content */
.site-content {
    padding: 80px 0;
    min-height: 50vh;
}

.content-main h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--suletema-text);
    margin-top: 0;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.content-body {
    font-size: 1.1rem;
    color: var(--suletema-text-light);
    line-height: 1.8;
}

.content-body h2 {
    font-family: 'Outfit', sans-serif;
    color: var(--suletema-text);
    font-size: 2rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.content-body h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--suletema-text);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 12px;
}

.content-body a {
    color: var(--suletema-sea);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    border-bottom: 2px dashed rgba(14, 165, 233, 0.3);
}

.content-body a:hover {
    color: var(--suletema-sea-deep);
    border-bottom-color: var(--suletema-sea-deep);
}

/* Impedisce al tema di sovrascrivere lo stile dei pulsanti con classe (es. cta-button, btn) */
.content-body a.cta-button,
.content-body a.btn,
.content-body a.button {
    color: #ffffff !important;
    border-bottom: none !important;
    text-decoration: none !important;
}

.content-body a.cta-button:hover,
.content-body a.btn:hover,
.content-body a.button:hover {
    color: #ffffff !important;
    opacity: 0.95;
}

/* Sidebar & Widgets (Premium Card Layout) */
.widget-box {
    background: var(--suletema-card-bg);
    border: 1px solid var(--suletema-border);
    padding: 24px;
    margin-bottom: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.widget-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.1), 0 4px 6px -2px rgba(14, 165, 233, 0.05);
    border-color: rgba(14, 165, 233, 0.3);
}

.widget-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--suletema-text);
    margin-top: 0;
    margin-bottom: 18px;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 8px;
    display: inline-block;
}

.widget-content {
    font-size: 0.95rem;
    color: var(--suletema-text-light);
    line-height: 1.6;
}

/* Footer Section */
.site-footer {
    background-color: var(--suletema-sea-deep);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0;
    border-top: 5px solid var(--primary);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-legal strong {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-left: 24px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Quick Edit Floating Button */
.quick-edit-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #f59e0b 100%) !important;
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.4) !important;
    border: none !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Forms and Buttons inside content */
.btn-cookie {
    border-radius: 8px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
}

.cookie-banner {
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--suletema-border);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem !important;
    }
    
    .site-footer {
        padding: 40px 0;
    }
}
