/* 
===============================================================================
THEME SPECIFICATIONS - Santa Maria del Carmine WordPress Theme
===============================================================================

Theme Name: SMDC Theme (Santa Maria del Carmine)
Theme URI: https://santamariadelcarmine.it
Author: Dario Davico
Author URI: https://dariodavico.it
Description: Custom WordPress theme for Chiesa Santa Maria del Carmine in Pisa. Built with Bulma CSS framework, featuring a clean, elegant design with warm colors and smooth animations. Mobile-responsive with customizer options.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smdc-theme
Domain Path: /languages

================================================================================
DESIGN SPECIFICATIONS
================================================================================

COLOR PALETTE:
- Primary: #A52A2A (Soft brick red) - Used for headings, buttons, highlights
- Secondary: #C19A6B (Muted gold) - Used for accents, borders, hover effects
- Third: #555555 (Neutral gray) - Used for text, secondary elements
- Accent: #556B2F (Olive green) - Used sparingly for special elements
- Light: #FDFDF8 (Very light ivory) - Main background color
- Dark: #3C2F2F (Warm dark brown) - Main text color, dark sections
- Light Gold: #F5F0E6 (Very pale gold) - Section backgrounds

TYPOGRAPHY:
- Headings: Playfair Display (Google Fonts) - 300 weight for elegance
- Body: Open Sans (Google Fonts) - 300/400/600 weights for readability

================================================================================
*/

/* ===============================================================================
1. CSS VARIABLES (CUSTOM PROPERTIES)
===============================================================================
*/

:root {
    /* Color Palette */
    --primary: #A52A2A; /* Soft brick red */
    --secondary: #C19A6B; /* Muted gold */
    --third: #555555; /* Neutral gray */
    --forth: #CCCCCC; /* Light gray */
    --accent: #556B2F; /* Olive green */
    --light: #FDFDF8; /* Very light ivory */
    --dark: #3C2F2F; /* Warm dark brown */
    --light-gold: #F5F0E6; /* Very pale gold */
    
    /* Layout */
    --header-height: 90px;
    --container-width: 1200px;
    --section-padding: 5rem;
    --card-border-radius: 2px;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.03);
    --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.1);
    
    /* Borders */
    --border-light: 1px solid rgba(193, 154, 107, 0.1);
    --border-medium: 1px solid rgba(193, 154, 107, 0.2);
    --border-dark: 1px solid rgba(193, 154, 107, 0.3);
}

/* ===============================================================================
2. GLOBAL STYLES
===============================================================================
*/

html, body {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    font-family: var(--font-body);
    line-height: 1.6;
    background-color: var(--light);
    color: var(--dark);
    margin: 0;
    padding: 0;
    height: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure {
    margin: 0;
    padding: 0;
}

/* ===============================================================================
3. TYPOGRAPHY
===============================================================================
*/

h1, h2, h3, h4, h5, h6, .title {
    font-family: var(--font-heading);
    font-weight: 300;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.title.is-1 { font-size: 3rem; }
.title.is-2 { font-size: 2.5rem; }
.title.is-3 { font-size: 2rem; }
.title.is-4 { font-size: 1.5rem; }
.title.is-5 { font-size: 1.25rem; }
.title.is-6 { font-size: 1rem; }

.subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--third);
    line-height: 1.5;
}

.base-font-heading{ 
    font-family: var(--font-heading) !important;
}

.base-font-body{ 
    font-family: var(--font-body) !important;
}

p {
    margin-bottom: 1rem;
    font-weight: 300;
    color: var(--dark);
}

.base-color-secondary{
    color: var(--secondary);
}

/* ===============================================================================
4. NAVBAR HEADER
===============================================================================
*/

#main-header {
    background-color: var(--light);
    border-bottom: none;
    box-shadow: none;
    transition: all var(--transition-normal);
    z-index: 1000;
}

#main-header.scrolled {
    border-bottom: var(--border-medium);
    box-shadow: var(--shadow-medium);
    padding: 0.8rem 0 !important;
}

/* Navbar Brand Container */
.navbar-brand {
    display: flex;
    align-items: center;
}

/* Logo Link - Clickable Area */
.navbar-logo {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem !important;
    background-color: transparent !important;
    transition: all var(--transition-normal);
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
}

.navbar-logo:hover {
    background-color: rgba(165, 42, 42, 0.05) !important;
}

.navbar-logo:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 70px !important;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    
    border-radius: 50%;
    padding: 5px;
    border: 1px solid var(--secondary);
}

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

.logo-text {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo-text .title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--primary) !important;
    text-decoration: none;
}

.logo-text .subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--dark) !important;
    transition: all var(--transition-normal);
    overflow: hidden;
    text-decoration: none;
}

/* When scrolled - shrink logo */
#main-header.scrolled .logo-img {
    /* width: 50px !important;
    transform: scale(0.95); */
}

#main-header.scrolled .logo-text .title {
    /* font-size: 1.2rem; */
}

#main-header.scrolled .logo-text .subtitle {
    opacity: 0;
    max-height: 0;
    margin: 0 !important;
    padding: 0 !important;
}

/* Navbar Items */
.navbar-item {
    color: var(--dark) !important;
    font-weight: 400;
    padding: 1rem 1.8rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color var(--transition-normal);
    position: relative;
    background-color: transparent !important;
}

.navbar-item:hover:not(.navbar-logo) {
    color: var(--primary) !important;
    background-color: transparent !important;
}

.navbar-item.is-active {
    color: var(--primary) !important;
    background-color: transparent !important;
    font-weight: 600;
}

.navbar-item.is-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.8rem;
    right: 1.8rem;
    height: 2px;
    background-color: var(--primary);
}

/* Mobile burger menu */
.navbar-burger {
    color: var(--primary) !important;
    height: 70px;
    width: 70px;
}

.navbar-burger span {
    height: 2px;
    width: 20px;
}

/* ===============================================================================
5. HERO SECTION
===============================================================================
*/

.hero.is-primary {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero.is-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(60, 47, 47, 0.6), rgba(60, 47, 47, 0.4));
    z-index: 0;
}

.hero-body {
    position: relative;
    z-index: 1;
    padding: 4rem 1.5rem;
}

.hero .title {
    color: white !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero .subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.hero .button {
    /* border-radius: 2px; */
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: all var(--transition-normal);
    padding: 0.9rem 2.2rem;
    /* margin: 0 0.5rem; */
}

.hero .button.is-white.is-outlined {
    border-color: white;
    color: white;
    background-color: transparent;
}

.hero .button.is-white.is-outlined:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.hero .button.is-white {
    background-color: white;
    color: var(--dark);
}

.hero .button.is-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* ===============================================================================
6. SECTIONS
===============================================================================
*/

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

#mass-times,
#events {
    background-color: var(--light-gold);
}

#about-us,
#map,
#home,
#orario,
#mappa {
    background-color: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.dd_line-sep {
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    margin-bottom: 2rem;
}

.dd_line-sep::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background-color: var(--secondary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* ===============================================================================
7. CARDS
===============================================================================
*/

/* Mass Cards */
.mass-card {
    background-color: white;
    border-radius: var(--card-border-radius);
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
    border: var(--border-light);
    height: 100%;
    overflow: hidden;
}

.mass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.mass-header {
    background-color: white;
    padding: 1.5rem;
    text-align: center;
    border-bottom: var(--border-medium);
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 400 !important;
    margin-bottom: 0;
}

.mass-body {
    padding: 1.5rem;
}

.mass-time {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mass-time:last-child {
    border-bottom: none;
}

.mass-time span:first-child {
    font-weight: 400;
    color: var(--dark);
}

.mass-time span:last-child {
    font-weight: 400;
    color: var(--primary);
}

/* Event Cards */
.events .columns {
    display: flex;
    flex-wrap: wrap;
    margin: -1rem;
}

.events .column {
    display: flex;
    margin-bottom: 2rem;
    padding: 1rem;
}

.event-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
    border: var(--border-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.event-date {
    background-color: white;
    color: var(--dark);
    padding: 1rem;
    text-align: center;
    border-bottom: var(--border-medium);
}

.event-date .day {
    font-size: 2rem;
    font-weight: 300;
    display: block;
    line-height: 1;
    color: var(--primary);
}

.event-date .month {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--third);
}

.event-details {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-details h3 {
    color: var(--dark);
    margin-bottom: 0.8rem;
    font-weight: 400;
    font-size: 1.3rem;
}

.event-details .content {
    color: var(--third);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.read-more {
    align-self: flex-start;
    margin-top: auto;
}

.read-more.button.is-outlined.is-dark {
    border-color: var(--dark);
    color: var(--dark);
    background-color: transparent;
}

.read-more.button.is-outlined.is-dark:hover {
    background-color: var(--dark);
    color: var(--light);
}


/* Archive styles */
.event-card {
    position: relative;
    height: 100%;
    transition: transform 0.3s ease;
}

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

.archived-event {
    opacity: 0.8;
}

.event-date {
    text-align: center;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 4px 4px 0 0;
}

.event-date .day {
    font-size: 2rem;
    font-weight: bold;
    display: block;
    line-height: 1;
}

.event-date .month {
    font-size: 1rem;
    text-transform: uppercase;
}

.event-date .year {
    font-size: 0.9rem;
    display: block;
}

/* Pagination styles */
.pagination {
    justify-content: center;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 4px;
    background: #f5f5f5;
    color: #333;
}

.pagination .page-numbers.current {
    background: #3273dc;
    color: white;
}

.pagination .page-numbers:hover {
    background: #dbdbdb;
}

/* Tabs styles */
.tabs.is-toggle li.is-active a {
    background-color: #3273dc;
    border-color: #3273dc;
    color: #fff;
}

.tabs.is-toggle a {
    border-color: #dbdbdb;
    color: #4a4a4a;
}

.tabs.is-toggle a:hover {
    background-color: #f5f5f5;
    border-color: #b5b5b5;
}




/* ===============================================================================
8. MAP SECTION
===============================================================================
*/

.map-container {
    border-radius: var(--card-border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    margin-top: 2rem;
    border: var(--border-light);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}




/* ===============================================================================
9. SAINT BOX
===============================================================================
*/

.saint-box{
  height: 100% !important;
  display: flex; 
  flex-direction: column;
  background-color: var(--light);
}



/* ===============================================================================
10. FOOTER
===============================================================================
*/

.footer {
    background-color: var(--dark);
    color: #ddd;
    padding: 4rem 0 2rem 0;
    margin-top: auto;
    flex-shrink: 0;
}

.footer h3 {
    color: var(--light-gold);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color var(--transition-normal);
    font-weight: 300;
}

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

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
    color: #bbb;
}

.contact-info i {
    color: var(--secondary);
    margin-top: 5px;
    font-size: 1rem;
    width: 20px;
}

.site-url {
    color: var(--secondary);
    font-weight: 300;
}

.social-links .button {
    background-color: rgba(255, 255, 255, 0.05);
    color: #bbb;
    border: none;
    transition: all var(--transition-normal);
    margin-right: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.social-links .button:hover {
    background-color: var(--secondary) !important;
    color: var(--dark) !important;
    transform: translateY(-2px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.creator-credit {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.creator-credit a {
    color: var(--secondary);
    text-decoration: none;
}

.creator-credit a:hover {
    text-decoration: underline;
}

/* ===============================================================================
10. SCROLL TO TOP BUTTON
===============================================================================
*/

#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    color: var(--dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-medium);
    font-size: 1.2rem;
}

#scrollToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollToTop:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

/* ===============================================================================
11. UTILITIES
===============================================================================
*/

.has-text-primary {
    color: var(--primary) !important;
}

.has-text-secondary {
    color: var(--secondary) !important;
}

.has-text-light-gold {
    color: var(--light-gold) !important;
}

a:focus,
button:focus,
.button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}


/* Opacity utilities */
.opacity-30 { opacity: 0.3; background-color: rgba(0,0,0,0.3); }
.opacity-50 { opacity: 0.5; background-color: rgba(0,0,0,0.5); }
.opacity-60 { opacity: 0.6; background-color: rgba(0,0,0,0.6); }
.opacity-70 { opacity: 0.7; background-color: rgba(0,0,0,0.7); }
.opacity-80 { opacity: 0.8; background-color: rgba(0,0,0,0.8); }


/* Transparency effects */

.is-glass {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgb(255, 252, 246);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.is-glass:hover {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.is-frosted {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* ===============================================================================
12. RESPONSIVE STYLES
===============================================================================
*/

/* Tablet */
@media screen and (max-width: 1023px) {
    :root {
        --section-padding: 4rem;
    }
    
    .title.is-1 { font-size: 2.5rem; }
    .title.is-2 { font-size: 2rem; }
    
    .hero .title {
        font-size: 2.8rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }

    #main-header.scrolled .logo-text .subtitle {
     display: none;
    }
    #main-header.scrolled .logo-container{
        /* padding-bottom: 10px; */
    }

 
}

/* Mobile */
@media screen and (max-width: 768px) {
    :root {
        --section-padding: 3rem;
    }
    
    .title.is-1 { font-size: 2rem; }
    .title.is-2 { font-size: 1.8rem; }
    
    .logo-container {
        flex-direction: column;
        align-items: center;
    }
    
    .logo-img {
        width: 80px;
    }
    
    .logo-text .title {
        font-size: 1.3rem;
    }
    
    .logo-text .subtitle {
        font-size: 0.8rem;
    }
    
    .hero .title {
        font-size: 2.2rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .hero .button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        /* margin: 0.5rem 0 !important; */
    }
    
    .buttons.is-centered {
        flex-direction: column;
        align-items: center;
    }
    
    .buttons.is-centered .button {
        width: 100%;
        max-width: 250px;
    }
    
    .map-container iframe {
        height: 350px;
    }
    
    .navbar-item {
        /* padding: 0.75rem 1rem; */
        font-size: 0.85rem;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    :root {
        --section-padding: 2rem;
    }
    
    .title.is-1 { font-size: 1.8rem; }
    .title.is-2 { font-size: 1.5rem; }
    
    .logo-img {
        width: 60px;
    }
    
    .logo-text .title {
        font-size: 1.2rem;
    }
    
    .logo-text .subtitle {
        font-size: 0.75rem;
    }
    
    .hero .title {
        font-size: 1.8rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .hero .button {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .map-container iframe {
        height: 300px;
    }
    
    .mass-header {
        padding: 1.2rem;
        font-size: 1.1rem;
    }
    
    .mass-body {
        padding: 1.2rem;
    }
    
    .mass-time {
        padding: 0.6rem 0;
    }
    
    .event-details {
        padding: 1.2rem;
    }
    
    .event-details h3 {
        font-size: 1.1rem;
    }
    
    #scrollToTop {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .navbar-item {
        /* padding: 0.5rem 0.8rem; */
        font-size: 0.75rem;
    }
}

/* ===============================================================================
13. ANIMATIONS
===============================================================================
*/

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===============================================================================
END OF STYLESHEET
===============================================================================
*/