/*
Theme Name: VFV Molinella
Description: WordPress theme converted from Vue.js application for Vigili del Fuoco Volontari Molinella
Version: 1.0
Author: Massbit
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    outline: none;
}

*:active {
    border: none;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.8);
    font-weight: 400;
}

/* Flexbox Utilities */
.flex-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    padding-bottom: 3em;
}

/* Typography */
h1.title {
    padding-top: 2em;
    font-size: 1.65em;
    letter-spacing: 0.03em;
    color: rgba(0, 0, 0, 0.65);
    font-weight: 700;
    text-align: center;
    font-family: 'Nunito', sans-serif;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 8em;
}

.element-title {
    margin: 0.9em 0 0.2em;
    font-size: 1.2em;
    letter-spacing: 0.02em;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.8);
    font-family: 'Nunito', sans-serif;
}

.subtitle {
    padding-top: 1em;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(0, 0, 0, 0.4);
    font-family: 'Nunito', sans-serif;
}

/* Navigation */
.navbar {
    position: fixed;
    height: 3.5em;
    background-color: #1E88E5;
    color: #fff;
    top: 0;
    right: 0;
    left: 0;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    flex-shrink: 0;
    z-index: 6;
    padding: 0;
    text-transform: capitalize;
}

.navbar .nav-group {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    flex-shrink: 0;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar .nav-group-right {
    width: 100%;
    flex-direction: row-reverse;
    justify-content: right;
}

.navbar .nav-group-left {
    width: 100%;
    justify-content: left;
}

.navbar li {
    display: block;
}

.navbar a {
    position: relative;
    width: 100%;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    margin: 0 0.35em;
    padding: 0 0.6em;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25em;
    font-family: 'Nunito', sans-serif;
}

.navbar a:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.top-img-container {
    position: relative;
    top: 0.5em;
}

.img-container {
    width: 100%;
    height: 5em;
    width: 5em;
    margin: 0 1.2em;
    background-color: #fff;
    border-radius: 3em;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.img-container > a {
    position: relative;
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

.img-container > a:hover {
    background-color: transparent !important;
}

.logo {
    background-image: url('assets/images/sprites.svg');
    background-repeat: no-repeat;
    background-size: 182px 2221px;
    background-position: 9px -1376px;
    position: relative;
    height: 100%;
    width: 100%;
}

/* Mobile Navigation */
.mobile-navbar {
    display: none;
    position: fixed;
    height: 3.5em;
    background-color: #1E88E5;
    color: #fff;
    top: 0;
    right: 0;
    left: 0;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    z-index: 5;
    padding: 0 2em;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
}

.mobile-navbar .mobile-menu-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    margin-right: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.mobile-navbar .mobile-menu-btn:hover {
    opacity: 0.8;
}

.mobile-navbar .material-icons {
    font-size: 24px;
}

.mobile-navbar .site-title {
    letter-spacing: 0.08em;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
}

/* Main Content */
.main-container {
    padding-top: 5em;
    min-height: calc(100vh - 5em);
    display: flex;
    flex-direction: column;
}

/* Page layout to ensure footer stays at bottom */
#page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Footer */
#footer {
    position: relative;
    bottom: 0;
    right: 0;
    left: 0;
    display: flex;
    background-color: transparent;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: nowrap;
    color: rgba(0, 0, 0, 0.74);
    border-top: 0.04em solid rgba(0, 0, 0, 0.07);
    margin-top: auto;
    padding: 2em 0;
}

#footer div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: nowrap;
}

#footer ul {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

#footer li {
    display: inline-block;
    margin: 0 0.78em;
}

#footer .interactive-element {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0.8em;
    height: 3.5em;
    width: auto;
    border-radius: 2em;
    transition: all 0.3s ease;
}

#footer .interactive-element:hover {
    transform: translateY(-2px);
}

#footer button {
    cursor: pointer;
    background: none;
    border: none;
    background-color: rgba(0, 0, 0, 0);
    outline: none;
    width: 4em;
    border-radius: 0.4em 0 0 0.4em;
    height: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    color: inherit;
    transition: background-color 0.3s ease;
}

#footer .interactive-element:hover button {
    background-color: rgba(229, 57, 53, 0.8);
}

/* Footer contact icons */
#footer .place,
#footer .phone,
#footer .mail {
    width: 24px;
    height: 24px;
    mask-image: url('assets/images/icons.svg');
    mask-repeat: no-repeat;
    mask-size: 24px 644px;
    background: rgba(0, 0, 0, 0.7);
    transition: background 0.2s ease;
}

#footer .place {
    mask-position: center -239px;
}

#footer .phone {
    mask-position: center -215px;
}

#footer .mail {
    mask-position: center -191px;
}

#footer .interactive-element:hover .place,
#footer .interactive-element:hover .phone,
#footer .interactive-element:hover .mail {
    background: #fff;
}

#footer span {
    border: 0.1em solid rgba(0, 0, 0, 0);
    display: inline-flex;
    flex: none;
    border-left: 0;
    width: 10em;
    height: 100%;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    word-break: break-word;
    border-radius: 0 0.4em 0.4em 0;
    font-size: 0.85em;
    letter-spacing: 0.02em;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s ease;
    font-family: 'Nunito', sans-serif;
}

#footer .interactive-element:hover span {
    border-color: rgba(229, 57, 53, 0.7);
}

/* Footer link section */
#footer .link-section {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: nowrap;
    vertical-align: middle;
}

#footer .link-section ul {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

#footer .link-section li {
    display: inline-block;
    margin: 0 0.78em;
}

#footer .link-section a {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.5em;
    height: 2.5em;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Responsive sizing for social media containers */
@media (max-width: 992px) {
    #footer .link-section a {
        width: 2.2em;
        height: 2.2em;
    }
}

@media (max-width: 600px) {
    #footer .link-section a {
        width: 2em;
        height: 2em;
    }
}

#footer .link-section a:hover {
    background-color: rgba(229, 57, 53, 0.8);
    transform: translateY(-2px);
}

#footer .link-section .instagram {
    width: 21px !important;
    height: 21px !important;
}

#footer .link-section .instagram,
#footer .link-section .facebook,
#footer .link-section .tiktok {
    width: 19px;
    height: 19px;
    mask-image: url('assets/images/icons.svg');
    mask-repeat: no-repeat;
    mask-size: 24px 644px;
    background: rgba(0, 0, 0, 0.7);
    transition: background 0.2s ease;
}

#footer .link-section .instagram {
    mask-position: center -264px;
}

#footer .link-section .facebook {
    mask-position: center -289px;
}

#footer .link-section .tiktok {
    mask-position: center -625px;
}

#footer .link-section a:hover .instagram,
#footer .link-section a:hover .facebook,
#footer .link-section a:hover .tiktok {
    background: #fff;
}

#footer .subtitle {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    margin: 0 0 1em;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.6);
    font-family: 'Nunito', sans-serif;
}

#footer .credits-name {
    margin-left: 0.4em;
    color: #F44336;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    width: auto;
    font-size: 1em;
    display: block !important;
}

/* Icons */
.icon, .ico {
    height: 24px;
    width: 24px;
    mask-image: url('assets/images/icons.svg');
    mask-repeat: no-repeat;
    mask-size: 24px 644px;
    background: rgba(0, 0, 0, 0.7);
    transition: background 0.2s ease;
}

.home { mask-position: center 2px; }
.group { mask-position: center -22px; }
.car { mask-position: center -45px; }
.event { mask-position: center -70px; }
.help { mask-position: center -94px; }
.jobs { mask-position: center -118px; }
.photo { mask-position: center -166px; }
.person { mask-position: center -142px; }
.place { mask-position: center -239px; }
.phone { mask-position: center -215px; }
.mail { mask-position: center -191px; }
.instagram { mask-position: center -268px; }
.facebook { mask-position: center -289px; }
.tiktok { mask-position: center -581px; }

/* Responsive Design */
@media (max-width: 992px) {
    .navbar {
        overflow-y: auto;
        flex-direction: column;
        left: -16.1em;
        right: initial;
        height: 100%;
        width: 16em;
        background-color: #fff;
        color: rgba(0, 0, 0, 0.9);
        justify-content: flex-start;
        padding-top: 8em;
        transition: left 0.3s ease;
    }
    
    .navbar.open-nav {
        left: 0;
    }
    
    .navbar .nav-group-right {
        flex-direction: column-reverse;
        justify-content: flex-end;
    }
    
    .navbar .nav-group-left {
        flex-direction: column;
        margin-bottom: 2em;
    }
    
    .navbar .nav-group {
        height: auto;
    }
    
    .navbar li {
        width: 90%;
        margin: 0.25em auto;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .img-container a {
        width: 100% !important;
        padding: 0 !important;
    }

    .img-container a:hover {
        background-color: transparent !important;
    }
    
    .navbar a {
        font-weight: 600;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        border-radius: 0.25em;
        padding: 0.65em 0.6em;
        width: 100%;
        text-decoration: none;
        color: inherit;
        font-family: 'Nunito', sans-serif;
    }
    
    .navbar a:hover {
        color: #1E88E5;
        background-color: rgba(30, 136, 229, 0.2);
    }
    
    .navbar a:hover .ico {
        background: rgb(30, 136, 229);
    }
    
    .navbar .ico {
        display: block;
        margin-right: 1.2em;
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }
    
    .navbar .active {
        color: #1E88E5;
        pointer-events: none;
    }
    
    .navbar .active a .ico {
        background: rgb(30, 136, 229);
    }
    
    .navbar .active:after {
        display: none;
    }
    
    .top-img-container {
        position: absolute;
        top: 1.5em;
    }
    
    .img-container {
        margin: 0 auto;
    }
    
    .mobile-navbar {
        display: flex;
    }
    
    #footer li {
        margin: 0 1.75em 0.5em;
    }
    
    #footer .interactive-element {
        margin: 1.2em 0.7em;
    }
    
    #footer button {
        border-radius: 0.4em;
    }
    
    #footer span {
        display: none;
    }
    
    #footer .link-section li {
        margin: 0 1.75em 0.5em;
    }
}

@media (max-width: 600px) {
    h1.title {
        padding: 1em 0;
    }
    
    .subtitle {
        font-size: 0.7em;
    }
    
    #footer li {
        margin: 0 0.85em;
    }
    
    #footer .interactive-element {
        margin: 0.15em;
    }
    
    #footer button {
        width: 3.2em;
        height: 3em;
    }
    
    #footer .link-section li {
        margin: 0 0.85em;
    }
    
    #footer .link-section a {
        width: 2em;
        height: 2em;
    }

    #footer .link-section .instagram {
        width: 19px;
        height: 19px;
        mask-size: 19px 430px;
    }
    
    #footer .link-section .facebook {
        width: 19px;
        height: 19px;
        mask-size: 19px 430px;
    }
    
    #footer .link-section .tiktok {
        width: 19px;
        height: 19px;
        mask-size: 19px 430px;
    }
    
    /* Mobile breakpoint (600px and below) */
    @media (max-width: 600px) {
        #footer .link-section .instagram {
            width: 16px;
            height: 16px;
            mask-size: 16px 430px;
        }
        
        #footer .link-section .facebook {
            width: 16px;
            height: 16px;
            mask-size: 16px 430px;
        }
        
        #footer .link-section .tiktok {
            width: 16px;
            height: 16px;
            mask-size: 16px 430px;
        }
    }
    
    #footer .place,
    #footer .phone,
    #footer .mail {
        width: 20px;
        height: 20px;
        mask-size: 20px 537px;
    }
    
    /* Mobile breakpoint (600px and below) for contact icons */
    @media (max-width: 600px) {
        #footer .place,
        #footer .phone,
        #footer .mail {
            width: 18px;
            height: 18px;
            mask-size: 18px 483px;
        }
        #footer .place {
            mask-position: center -178px;
        }
        #footer .phone {
            mask-position: center -160px;
        }
        #footer .mail {
            mask-position: center -142px;
        }
        #footer .link-section .instagram {
            height: 16px !important;
            width: 16px !important;
            mask-position: center -175px;
        }
        #footer .link-section .facebook {
            mask-position: center -191px;
        }
        #footer .link-section .tiktok {
            mask-position: center -416px;
        }
    }
}

@media (max-width: 350px) {
    #footer li {
        margin: 0 0.85em;
    }
}

/* Dark overlay for mobile navigation */
.dark-cover {
    z-index: -1;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.3s linear;
}

.dark-cover.appear {
    opacity: 0;
    z-index: -1;
}

@media (max-width: 992px) {
    .dark-cover.appear {
        opacity: 1;
        z-index: 4;
    }
}

/* Utility Classes */
.navbar-open {
    overflow: hidden !important;
    padding-right: 17px;
}

@media only screen and (max-width: 992px) {
    .navbar-open {
        padding-right: 0;
    }
}

/* Desktop navbar - hide icons */
@media (min-width: 993px) {
    .navbar .ico {
        display: none;
    }
}

/* Enhanced hover effects for navbar items */
.navbar a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.25em;
}

@media (max-width: 992px) {
    .navbar a:hover {
        color: #1E88E5;
        background-color: rgba(30, 136, 229, 0.2);
    }
    
    .navbar a:hover .ico {
        background: rgb(30, 136, 229);
    }
    
    /* Ensure icons are visible in mobile navigation */
    .navbar .ico {
        background: rgba(0, 0, 0, 0.6);
    }
    
    .navbar a:hover .ico {
        background: rgb(30, 136, 229);
    }
    
    .navbar .active .ico {
        background: rgb(30, 136, 229);
    }
} 