/* ==========================================================================
   Retearte Theme - Stylesheet
   ADSUM Artecontemporanea
   Clean, Modular & Responsive CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset & Global Box Sizing
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-y: scroll;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background: #ffffff;
    color: #333333;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9375rem;
    /* ~15px */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   2. Typography & Base Elements
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #111111;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.6em;
}

h1,
.page-title {
    font-size: 1.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.1rem;
}

h5 {
    font-size: 0.95rem;
}

h6 {
    font-size: 0.85rem;
}

p {
    margin-bottom: 1.25rem;
}

a {
    color: #666666;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:active {
    color: #111111;
}

strong,
b {
    font-weight: 700;
    color: #111111;
}

em,
i {
    font-style: italic;
}

hr {
    display: block;
    clear: both;
    border: 0;
    border-bottom: 1px solid #eaeaea;
    margin: 2rem auto;
}

blockquote {
    border-left: 3px solid #333333;
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555555;
}

ul,
ol {
    margin: 0 0 1.25rem 2rem;
}

ul {
    list-style: disc;
}

ol {
    list-style: decimal;
}

img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

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

/* Accessibility */
.skip-to-content {
    position: absolute;
    top: -9999px;
    left: -9999px;
    background: #000;
    color: #fff;
    padding: 10px 15px;
    z-index: 99999;
}

.skip-to-content:focus {
    top: 10px;
    left: 10px;
}

/* --------------------------------------------------------------------------
   3. Layout Structure
   -------------------------------------------------------------------------- */
#wrap {
    background: #ffffff;
    max-width: 980px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    position: relative;
}

#header_wrap {
    width: 100%;
}

#header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 0 10px 0;
}

#logo {
    display: block;
    margin: 0 auto;
    text-align: center;
}

#site-title {
    margin: 0;
    font-size: 1.5rem;
}

#site-title a {
    display: inline-block;
}

#site-title img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

#blog-title {
    position: absolute;
    text-indent: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#container_wrap {
    margin: 0 auto;
    position: relative;
    clear: both;
    padding: 15px 0 35px 0;
    width: 100%;
}

#container {
    width: 100%;
}

#content {
    width: 100%;
}

#footer_wrap {
    background: #ffffff;
    max-width: 980px;
    width: 100%;
    padding: 25px 20px;
    margin: 0 auto;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-credits,
#credits {
    text-align: center;
    font-size: 0.85rem;
    color: #777777;
}

.footer-credits p,
#credits p {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   4. Navigation & Mobile Hamburger Menu
   -------------------------------------------------------------------------- */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.hamburger-bar {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background-color: #222222;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav,
.nav-primary,
#main-nav,
div.nav,
nav.nav {
    font-weight: 600;
    width: 100%;
    margin: 10px auto 25px auto;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    clear: both;
}

#primary_nav,
.nav ul,
.nav-primary ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

#primary_nav li,
.nav li,
.nav-primary li,
.menu-item {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

#primary_nav li a,
#primary_nav a,
.nav li a,
.nav a,
.nav-primary li a,
.nav-primary a,
.menu-item a {
    color: #555555;
    padding: 14px 18px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    border-bottom: 2px solid transparent;
    line-height: 1;
}

#primary_nav li:hover a,
#primary_nav li a:hover,
#primary_nav a:hover,
#primary_nav li.active a,
#primary_nav li.current-menu-item a,
#primary_nav li.current_page_item a,
#primary_nav li.current-menu-ancestor a,
.nav li:hover a,
.nav li.active a,
.nav li.current-menu-item a,
.nav-primary li:hover a,
.nav-primary li.active a,
.nav-primary li.current-menu-item a,
.menu-item:hover a,
.menu-item.active a,
.menu-item.current-menu-item a,
.menu-item.current_page_item a {
    color: #000000;
    border-bottom: 2px solid #000000;
}

#primary_nav li.menu-social,
#primary_nav li.menu-item-social,
#primary_nav li.menu-item-type-social,
.nav li.menu-social,
.nav li.menu-item-social,
.nav li.menu-item-type-social,
.nav-primary li.menu-social,
.nav-primary li.menu-item-social,
.nav-primary li.menu-item-type-social,
.menu-social,
.menu-item-social {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
}

#primary_nav li.menu-social a,
#primary_nav li.menu-item-social a,
#primary_nav li.menu-item-type-social a,
.nav li.menu-social a,
.nav li.menu-item-social a,
.nav-primary li.menu-social a,
.nav-primary li.menu-item-social a,
.menu-social a,
.menu-item-social a {
    padding: 6px 10px;
    border-bottom: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#primary_nav li.menu-social a:hover,
#primary_nav li.menu-item-social a:hover,
.menu-social a:hover,
.menu-item-social a:hover {
    opacity: 1;
    transform: scale(1.08);
}

#social {
    display: flex;
    align-items: center;
    justify-content: center;
}

#social svg {
    display: block;
    width: 22px;
    height: 22px;
}

/* --------------------------------------------------------------------------
   5. Home Page
   -------------------------------------------------------------------------- */
.home-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.home-text {
    font-size: 0.95rem;
    line-height: 1.8;
}

.home-text p {
    margin-bottom: 1.5rem;
}

.home-featured-event {
    width: 100%;
}

.home-featured-event a {
    display: block;
    text-decoration: none;
}

.home-featured-event img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-featured-event img:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   6. Filter Controls (Artisti ed Eventi)
   -------------------------------------------------------------------------- */
.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 25px;
}

.filter-btn {
    background: #f4f4f4;
    border: 1px solid #dddddd;
    color: #444444;
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
}

.filter-btn:hover {
    background: #e8e8e8;
    color: #111111;
    border-color: #bbbbbb;
}

.filter-btn.active {
    background: #222222;
    color: #ffffff;
    border-color: #222222;
}

/* --------------------------------------------------------------------------
   7. Artists List & Work Cards
   -------------------------------------------------------------------------- */
.artist-works-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 40px auto;
    clear: both;
}

.artist-works-grid .work-card {
    width: 180px;
    height: 120px;
    flex-grow: 0;
    flex-shrink: 0;
}

#artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

#artists-grid .work-card {
    width: 100%;
    height: 170px;
}

.work-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.main-artist-card {
    height: 170px;
}

.work-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.work-card:hover .work-card-bg {
    transform: scale(1.06);
}

.work-card-bg.fallback-bg {
    background: linear-gradient(135deg, #f0f2f5 0%, #c8d3e2 100%);
}

.work-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 70%);
    display: flex;
    align-items: flex-end;
    padding: 14px;
    z-index: 1;
}

.work-card-title {
    color: #ffffff;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   8. Single Artist Page & Portrait
   -------------------------------------------------------------------------- */
.artist-detail,
.page-article,
.event-detail {
    width: 100%;
}

.page-body,
.entry-content {
    line-height: 1.7;
}

.artist-portrait,
.wp-caption.alignleft {
    float: left;
    margin: 5px 25px 20px 0;
    background: #ffffff;
    border: 1px solid #eeeeee;
    padding: 6px;
    text-align: center;
    max-width: 230px;
    width: 100%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.artist-portrait img,
.wp-caption img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

.portrait-caption,
.wp-caption figcaption {
    font-size: 0.75rem;
    color: #777777;
    margin-top: 6px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   9. Events List & Cards
   -------------------------------------------------------------------------- */
.events-header {
    text-align: center;
    margin: 10px auto 25px auto;
}

.events-header .page-title {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.event-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #dcdcdc;
}

.event-image-container {
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #f5f5f5;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-card:hover .event-image {
    transform: scale(1.05);
}

.event-placeholder {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #888888;
    font-size: 0.9rem;
}

.event-content {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-date-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888888;
    margin-bottom: 8px;
}

.event-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.event-title a {
    color: #111111;
    text-decoration: none;
}

.event-title a:hover {
    color: #000000;
}

.event-summary {
    font-size: 0.875rem;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.event-read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: #222222;
    text-decoration: none;
}

.event-read-more:hover {
    text-decoration: underline;
}

.event-meta {
    font-size: 0.95rem;
    color: #555555;
    margin-bottom: 15px;
}

/* --------------------------------------------------------------------------
   10. Gallery & Spazio Espositivo
   -------------------------------------------------------------------------- */
.gallery-header {
    text-align: center;
    margin-bottom: 20px;
}

.gallery-header .page-title {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.gallery-container {
    margin: 25px 0 40px 0;
}

.gallery-thumbs-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.gallery-thumbs {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 6px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.25s ease;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb:hover {
    opacity: 0.9;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: #222222;
    transform: scale(1.04);
}

/* Layout per gallerie con poche immagini (<= 5) come Spazio Espositivo */
.gallery-thumbs-wrapper.few-thumbs {
    padding: 0;
    gap: 0;
    margin-bottom: 20px;
}

.gallery-thumbs-wrapper.few-thumbs .gallery-thumbs {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    padding: 0;
    overflow-x: visible;
}

.gallery-thumbs-wrapper.few-thumbs .gallery-thumb {
    flex: 1 1 0;
    width: auto;
    height: 85px;
    max-width: 180px;
}

.gallery-arrow {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #333333;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.gallery-arrow:hover {
    background: #222222;
    color: #ffffff;
    border-color: #222222;
}

.gallery-main-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 20px;
    min-height: 400px;
}

.gallery-main {
    position: relative;
    max-width: 100%;
    display: inline-block;
}

.gallery-main img {
    max-height: 600px;
    width: auto;
    max-width: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: opacity 0.25s ease;
}

.image-protector {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent;
}

.gallery-main-wrapper .main-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 44px;
    height: 44px;
    font-size: 18px;
}

.gallery-main-wrapper .main-arrow.left {
    left: 15px;
}

.gallery-main-wrapper .main-arrow.right {
    right: 15px;
}

/* --------------------------------------------------------------------------
   11. Contacts & Friends Page
   -------------------------------------------------------------------------- */
.contact-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.contact-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
    border-color: #007cba;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #f4f8fb;
    color: #007cba;
    border-radius: 50%;
    margin-bottom: 15px;
}

.contact-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #222222;
}

.contact-card p {
    font-size: 0.95rem;
    color: #555555;
    margin-bottom: 0;
    line-height: 1.5;
}

.contact-card a {
    color: #007cba;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.map-container {
    margin: 10px 0 45px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

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

.friends-section {
    margin-top: 45px;
    padding-top: 30px;
    border-top: 1px solid #eeeeee;
}

.friends-section h3 {
    font-size: 1.6rem;
    color: #222222;
    margin-bottom: 25px;
    text-align: center;
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.friend-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    text-decoration: none !important;
    color: #444444;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.02);
}

.friend-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    border-color: #007cba;
    color: #007cba;
}

.friend-card svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   12. Utilities & Helper Classes
   -------------------------------------------------------------------------- */
.center {
    display: block;
    margin: 0 auto;
    text-align: center;
}

.left {
    float: left !important;
}

.right {
    float: right !important;
}

.fine {
    font-size: 0.85rem;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.aligncenter {
    display: block;
    margin: 10px auto;
    clear: both;
}

/* View Transitions */
:root {
    view-transition-name: none;
}

::view-transition-group(*) {
    animation-duration: 0.6s;
    animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
}

::view-transition-old(*),
::view-transition-new(*) {
    animation-duration: 0.6s;
    animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --------------------------------------------------------------------------
   13. Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* Tablet & Mobile Breakpoint (<= 768px) */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        right: 0;
    }

    #header {
        padding: 16px 45px 12px 10px;
        justify-content: center;
    }

    #logo {
        max-width: 100%;
        margin: 0 auto;
    }

    #logo img {
        width: 100%;
        max-width: 525px;
        height: auto;
        display: block;
    }

    .nav,
    .nav-primary,
    #main-nav {
        display: none;
        border-top: none;
        border-bottom: 1px solid #eaeaea;
        background: #fcfcfc;
        border-radius: 8px;
        padding: 8px 0;
        margin: 0 0 20px 0;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    }

    .nav.menu-open,
    .nav-primary.menu-open,
    #main-nav.menu-open {
        display: block;
        animation: navSlideDown 0.3s ease forwards;
    }

    #primary_nav,
    .nav ul,
    .nav-primary ul {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    #primary_nav li,
    .nav li,
    .nav-primary li,
    .menu-item {
        display: block;
        width: 100%;
    }

    #primary_nav li a,
    #primary_nav a,
    .nav li a,
    .nav-primary li a,
    .menu-item a {
        padding: 13px 20px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 14px;
        justify-content: center;
        width: 100%;
    }

    #primary_nav li:last-child a,
    .menu-item.last a,
    .menu-item:last-child a {
        border-bottom: none;
    }

    #primary_nav li.menu-social,
    #primary_nav li.menu-item-social,
    #primary_nav li.menu-item-type-social,
    .nav li.menu-social,
    .nav li.menu-item-social,
    .nav-primary li.menu-social,
    .nav-primary li.menu-item-social,
    .menu-social,
    .menu-item-social {
        position: static !important;
        transform: none !important;
        justify-content: center;
        padding: 12px 0 6px 0 !important;
    }

    /* Home Layout Responsive */
    .home-layout {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .home-featured-event {
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }

    /* Filter controls touch-scrollable */
    .filter-controls {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 5px 2px 15px 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .filter-btn {
        flex-shrink: 0;
        padding: 8px 16px;
    }

    /* Events grid */
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Contact Page */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .map-container iframe {
        height: 320px;
    }
}

/* Small Smartphone Breakpoint (<= 600px) */
@media (max-width: 600px) {

    #wrap,
    #footer_wrap {
        padding: 0 14px;
    }

    .page-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    /* Foto ritratto artista centrata e responsive su cellulare */
    .artist-portrait,
    .wp-caption.alignleft,
    .wp-caption.alignright {
        float: none !important;
        display: block !important;
        margin: 0 auto 25px auto !important;
        max-width: 280px !important;
        width: 100% !important;
    }

    /* Griglia Artisti: 2 colonne compatte su cellulare */
    #artists-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .main-artist-card {
        height: 140px;
    }

    .artist-works-grid .work-card {
        width: 145px;
        height: 100px;
    }

    .work-card-title {
        font-size: 0.82rem;
    }

    .friends-grid {
        grid-template-columns: 1fr;
    }

    #footer_wrap {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 20px 14px;
    }

    .gallery-thumbs-wrapper {
        margin-bottom: 15px;
    }

    .gallery-thumbs-wrapper.few-thumbs .gallery-thumbs {
        gap: 6px;
    }

    .gallery-thumbs-wrapper.few-thumbs .gallery-thumb {
        height: 55px;
    }

    .gallery-main-wrapper {
        padding: 10px;
        min-height: 280px;
    }

    .gallery-main-wrapper .main-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@keyframes navSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}