/* ========================= */
/* 1. Base Elements & Layout */
/* ========================= */
.special-elite-regular {
  font-family: "Special Elite", system-ui !important;
  font-weight: 400;
  font-style: normal;
}

.hide-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main)!important;
    background-color: var(--background);
    color: var(--light-color);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

main {
    flex-grow: 1;
}

th, td {
    text-align: center;
    vertical-align: middle;
    word-break: break-word;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}
  
section {
    padding: 1.5rem 0;
}

label {
    color: var(--light-color);
}
  
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--light-color);
}
  
h1 {
    font-size: calc(2.5vw + 1.5rem);
    margin-bottom: 1rem;
}
  
h2 {
    font-size: calc(2vw + 1.25rem);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}
  
h2::after {
    content: '';
    display: block;
    width: 150px;
    height: 2px;
    background-color: var(--primary-light);
    margin: 12px auto 0;
    border-radius: 3px;
}
  
h3 {
    font-size: calc(0.6vw + 0.9rem);
    margin-bottom: 0.75rem;
}

h4, p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--light-color);
}

section[id] {
    scroll-margin-top: 70px;
}

/* ========================= */
/* 2. Buttons & Interactions */
/* ========================= */

.btn, .btn-primary, .btn-secondary, .btn-danger, .cookie-btn {
    display: inline-block;
    padding: 10px;
    margin: 2px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-align: center;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
  
.btn-primary, .cookie-btn {
    background-color: var(--primary-light);
    color: var(--light-color);
}
  
.btn-primary:hover, .cookie-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
  
.btn-secondary {
    background-color: var(--secondary-light);
    color: var(--light-color);
}
  
.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
  
.btn-danger {
    background-color: var(--danger-color);
    color: var(--light-color);
}
  
.btn-danger:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-close {
    background-color: white;
    border-radius: 50px;
}   
  
.btn::before, .btn-primary::before, .btn-secondary::before, .btn-danger::before, .cookie-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease-in-out;
}
  
.btn:hover::before, .btn-primary:hover::before, .btn-secondary:hover::before, .btn-danger:hover::before, .cookie-btn:hover::before {
    left: 100%;
}

.btn:disabled {
    background-color: rgb(204, 204, 204);
}

/* ========================= */
/* 3. Alerts & Logs          */
/* ========================= */

.alert {
    padding: 10px;
    margin: 15px;
    border-radius: 5px;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #f31212;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #f39c12;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 10px;
    margin: 15px;
    border-radius: 5px;
}

.log-item {
    max-width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
}

.log-item .d-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    word-wrap: break-word;
}

.log-item span {
    flex-grow: 1;
    word-break: break-word;
    margin-right: 10px;
    max-width: 85%;
}

/* ========================= */
/* 4. Footer                 */
/* ========================= */

footer {
    background-color: var(--footer-bg);
    color: var(--footer-color);
    position: relative;
    font-size: 0.95rem;
    overflow: hidden;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.footer a {
    color: var(--footer-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

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

.footer a:not(.social-icon)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-light);
    transition: width 0.3s ease;
}

.footer a:not(.social-icon):hover::after {
    width: 100%;
}

.footer-section h4 {
    position: relative;
    display: inline-block;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-light);
}

.custom-logo-footer {
    max-width: 120px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.custom-logo-footer:hover {
    transform: scale(1.05);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
    transition: transform 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact li strong {
    display: inline-block;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animazioni al caricamento della pagina */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-animate {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.footer-animate:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-animate:nth-child(2) {
    animation-delay: 0.3s;
}

.footer-animate:nth-child(3) {
    animation-delay: 0.5s;
}

.footer-animate:nth-child(4) {
    animation-delay: 0.7s;
}

/* ========================= */
/* 5. Rotation               */
/* ========================= */

.rotate-icon {
    margin-left: 5px;
}

.rotate {
    transform: rotate(90deg);
    transition: transform 0.3s ease-in-out;
}

.rotate-reverse {
    transform: rotate(0deg);
    transition: transform 0.3s ease-in-out;
}

/* ========================= */
/* 6. Admin Sidebar          */
/* ========================= */

.admin-sidebar {
    color: var(--admin-sidebar-color);
    background-color: var(--admin-sidebar-bg);
    min-width: 160px;
    max-width: 250px;
    position: relative;
    box-shadow: var(--shadow-md);
}

.admin-sidebar i {
    margin-right: 15px;
}

.admin-sidebar .nav-link {
    color: var(--admin-sidebar-color);
    padding: 15px;
    text-align: left;
    transition: var(--transition);
    text-decoration: none;
}

.admin-sidebar .nav-link:hover {
    background-color: var(--admin-sidebar-hover-bg);
}

.admin-sidebar .nav-link.active {
    background-color: var(--primary-dark);
    color: var(--light-color);
}

.button-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--light-color);
}

/* ========================= */
/* 7. Link Styles            */
/* ========================= */

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    text-decoration: none;
}

/* ========================== */
/* 8. Shadow utilities        */
/* ========================== */

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* ========================= */
/* 9. Drag & Sort Classes    */
/* ========================= */

.sortable-ghost {
    opacity: 0.4;
}

/* ========================= */
/* 10. Cards & Thumbnails    */
/* ========================= */

.card {
    background-color: var(--card-bg);
    border-radius: 1rem;
    border: none;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--light-color);
}

.thumbnail {
    width: 300px;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 0.25rem;
}

.img-thumbnail {
    width: 100%;
    max-width: 100px;
    height: 100%;
    object-fit: cover;
    object-position: center;
    max-height: 100px;
    border-radius: 0.25rem;
}

.img-thumbnail:hover {
    transform: scale(1.05);
    transition: transform 0.2s;
}

.text-error {
    display: none;
}

/* ========================= */
/* 11. Badges                */
/* ========================= */

.badge-success {
    background-color: #28a745;
}

.badge-secondary {
    background-color: #899096;
}

/* ========================= */
/* 12.  Handles & Modal      */
/* ========================= */

.handle:hover {
    text-decoration: none;
    cursor: grab;
}

.modal-content {
    background-color: var(--background);
    margin-top: 70px;
}

/* ========================= */
/* 13. Pagination            */
/* ========================= */

.pagination {
    display: flex;
    justify-content: center;
}

.pagination .page-link {
    padding: 5px 10px;
    font-size: 14px;
}

/* ========================= */
/* 14. Navbar                */
/* ========================= */

.navbar-toggler {
    border: none;
    background: transparent;
    transition: transform 0.3s ease;
}

.navbar-toggler span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #e6dddd;
    transition: all 0.3s ease;
}

.navbar-toggler.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler.open span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.navbar {
    background-color: var(--navbar-bg) !important;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1040;
    height: 70px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    transition: height 0.2s ease;
}

.navbar-nav {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar-nav .nav-link {
    color: var(--navbar-link-color);
    font-weight: 600;
    margin: 0 15px;
    text-align: center;
    transition: all 0.2s ease-in-out;
    position: relative;
    border-radius: 4px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-light);
    background-color: rgba(255, 255, 255, 0.05);
}

.navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
}

.dropdown-menu {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
}

.dropdown-item img {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-scrolled {
    height: 60px;
    box-shadow: var(--shadow-lg);
}

.navbar-scrolled .navbar-brand img {
    height: 40px;
}

.flag {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.logo {
    max-width: 150px;
  }
  
.logo img {
    width: 100%;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

/* ============================ */
/* 15. Admin Container          */
/* ============================ */

.admin-container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

/* ========================= */
/* 16. Lists                 */
/* ========================= */

ul {
    list-style: none;
    line-height: normal;
    text-align: left;
}

/* ========================= */
/* 17. Scroll Indicators     */
/* ========================= */
.scroll-arrow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    z-index: 3;
}

.collapsible {
    overflow: hidden;
    transition: height 0.3s ease;
}

/* ========================= */
/* 18. Cookie Banner         */
/* ========================= */

.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: var(--card-bg);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-xl);
    max-width: 430px;
    width: 95vw;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    font-family: var(--font-main);
    animation: cookie-fadein 0.7s;
    border: 1.5px solid var(--primary-light);
    color: var(--light-color);
}

.cookie-banner-content h2 {
    color: var(--primary-light);
}

.cookie-banner-content a {
    color: var(--secondary-light);
    text-decoration: underline;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.3rem;
}

.cookie-categories label {
    font-size: .98rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    cursor: pointer;
    user-select: none;
}

.cookie-categories input[type="checkbox"] {
    accent-color: var(--secondary-light);
    width: 1.1em;
    height: 1.1em;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-prefs-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    background: var(--primary-light);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(245,176,54,0.12);
    padding: .7em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, box-shadow .2s;
}

.cookie-prefs-fab:hover {
    background: var(--secondary-light);
    box-shadow: 0 4px 24px rgba(86,192,211,0.15);
}

/* ========================= */
/* 19. Privacy               */
/* ========================= */

.privacy-policy-container {
    color: var(--light-color);
    padding-bottom: 4rem;
}

.privacy-header {
    background: var(--card-bg);
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.privacy-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
      radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 20%),
      radial-gradient(circle at 80% 70%, rgba(249, 115, 22, 0.05) 0%, transparent 20%);
    opacity: 0.8;
}

.privacy-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.privacy-meta {
    display: flex;
    align-items: center;
    color: var(--gray-color);
    font-size: 0.9rem;
    position: relative;
}

.privacy-last-updated {
    display: flex;
    align-items: center;
}

.privacy-last-updated i {
    margin-right: 0.5rem;
    color: var(--primary-light);
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-intro {
    margin-bottom: 2.5rem;
}

.privacy-greeting {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.privacy-intro-text {
    color: var(--gray-color);
}

.privacy-card {
    display: flex;
    background-color: var(--card-bg);
    border-radius: 0.75rem;
    padding: 0;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.privacy-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.privacy-card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.privacy-card-content h2 {
    color: var(--light-color);
}

.privacy-card-content p {
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.privacy-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.privacy-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.privacy-list li i {
    color: var(--primary-light);
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.privacy-note-box {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background-color: rgba(249, 115, 22, 0.1);
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.privacy-note-box i {
    color: var(--secondary-dark);
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.privacy-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-contact-info p {
    color: var(--gray-color);
}

/* ========================================= */
/*                  CUSTOM                   */
/* ========================================= */

.anchor-offset {
    scroll-margin-top: 70px;
}

.page-link {
    color: var(--primary-light);
    background-color: var(--light-color);
}

.active>.page-link, .page-link.active {
    color: var(--light-color);
    background-color: var(--primary-light);
    border-color: var(--primary-dark);
}

/* === HERO SECTION === */

.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    background: linear-gradient(rgba(254, 254, 254, 0.9), rgba(254, 254, 254, 0.9)), 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='18' viewBox='0 0 100 18'%3E%3Cpath fill='%239C92AC' fill-opacity='0.4' d='M61.82 18c3.47-1.45 6.86-3.78 11.3-7.34C78 6.76 80.34 5.1 83.87 3.42 88.56 1.16 93.75 0 100 0v6.16C98.76 6.05 97.43 6 96 6c-9.59 0-14.23 2.23-23.13 9.34-1.28 1.03-2.39 1.9-3.4 2.66h-7.65zm-23.64 0H22.52c-1-.76-2.1-1.63-3.4-2.66C11.57 9.3 7.08 6.78 0 6.16V0c6.25 0 11.44 1.16 16.14 3.42 3.53 1.7 5.87 3.35 10.73 7.24 4.45 3.56 7.84 5.9 11.31 7.34zM61.82 0h7.66a39.57 39.57 0 0 1-7.34 4.58C57.44 6.84 52.25 8 46 8S34.56 6.84 29.86 4.58A39.57 39.57 0 0 1 22.52 0h15.66C41.65 1.44 45.21 2 50 2c4.8 0 8.35-.56 11.82-2z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.social-links {
    margin-top: 2.5rem;
    opacity: 0.9;
}
  
.social-links p {
    color: var(--gray-color);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: var(--light-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    animation: socialFadeIn 0.5s ease backwards;
    position: relative;
    overflow: hidden;
}
  
.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-2, linear-gradient(45deg, #FF4B2B, #FF416C));
    opacity: 0;
    transition: opacity 0.3s ease;
}
  
.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
  
.social-icon:hover::before {
    opacity: 1;
}
  
.social-icon svg {
    position: relative;
    z-index: 1;
}
  
.social-icon:nth-child(1) { animation-delay: 0.5s; }
.social-icon:nth-child(2) { animation-delay: 0.7s; }
.social-icon:nth-child(3) { animation-delay: 0.9s; }
.social-icon:nth-child(4) { animation-delay: 1.1s; }
.social-icon:nth-child(5) { animation-delay: 1.3s; }
  
@keyframes socialFadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
}
  
.title-container {
    display: flex;
    align-items: center;
    gap: 20px;
}
  
.hero-logo {
    width: clamp(100px, 10vw + 50px, 150px);
    height: auto;
    object-fit: contain;
}
  
.hero-content {
    z-index: 2;
    align-content: center;
}

.hero-content h1 {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    font-family:"Amarante", serif;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-content h3 {
    color: var(--gray-color);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 1.5rem;
}

.hero-cards {
    flex: 1;
    position: relative;
    height: 400px;
}

.hero-cards [class^="card-"] {
    position: absolute;
    width: calc(15vw + 1rem);
    height: calc(25vw + 1rem);    
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateY(0deg);
}

.hero-cards .card-mtg {
    background-image: url('../custom/homepage/pokemon.webp');
    left: 30px;
    z-index: 4;
    transform: rotate(-5deg);
}

.hero-cards .card-pokemon {
    background-image: url('../custom/homepage/foto_community.jpg');
    left: 150px;
    z-index: 3;
    transform: rotate(5deg);
}

.hero-cards .card-yugioh {
    background-image: url('../custom/homepage/foto_community_2.jpg');
    left: 260px;
    z-index: 2;
    transform: rotate(12deg);
}

.hero-cards .card-onepiece {
    background-image: url('../custom/homepage/onepiece.webp');
    left: 350px;
    z-index: 1;
    transform: rotate(20deg);
}

.hero-cards [class^="card-"]:hover {
    transform: translateY(-20px) rotateY(10deg);
    z-index: 10;
}

/* === EVENTI IN EVIDENZA === */
#modalEventDescription {
  white-space: pre-line;
  word-wrap: break-word;
}

.carousel-indicators {
    display: none!important;
}

.carousel-container {
    position: relative;
    margin: 40px 0;
    overflow: hidden;
}
  
.events-carousel {
    width: 100%;
    padding-left: 10px;
    height: 250px;
    overflow: hidden;
    align-content: center;
    position: relative;
}
  
.events-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}
  
.event-card {
    flex: 0 0 300px;
    margin-right: 20px;
    position: relative;
}
  
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-dark);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}
  
.carousel-nav:hover {
    background: var(--primary-light);
    transform: translateY(-50%) scale(1.1);
}
  
.carousel-nav.prev {
    left: 0px;
}
  
.carousel-nav.next {
    right: 0px;
}
.expand-btn {
    background-color: transparent;
    color: var(--primary-light);
    border: none;
    padding: 0;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    display: block;
    margin-bottom: 5px;
    text-align: left;
}

.expand-btn:hover {
    color: var(--primary-dark);
}

.card-content {
    position: relative;
    display: flex;
    height: 100%;
    z-index: 2;
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-normal);
}
  
.event-card:hover {
    transform: scale(1.05) !important;
    transition: transform 0.3s ease !important;
}

.card-entering {
    opacity: 0;
    transform: translateY(20px);
}
  
.card-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
  
.card-leaving {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.events-section {
    background-color: var(--background);
    background-image: radial-gradient(circle at 10% 20%, rgba(70, 70, 70, 0.05) 0%, transparent 70%);
    color: var(--light-color);
}
  
.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
  
.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-pill {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
  
.filter-pill:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
  }
  
.filter-pill.active {
    background: var(--primary-light);
    color: var(--light-color);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(127, 148, 73, 0.3);
}
  
.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    perspective: 1000px;
}
  
.event-card:hover .card-content {
    box-shadow: var(--shadow-lg);
    background-color: var(--card-hover-bg);
}

.event-date-badge {
    background: var(--primary-light);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-light));
    color: var(--light-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}
  
.event-date-badge .weekday {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
    opacity: 0.9;
}
  
.event-date-badge .day {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2px;
}
  
.event-date-badge .month {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}
  
.event-date-badge .time {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 2px 6px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-top: 2px;
}
  
.event-date-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 150%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.6s, opacity 0.6s;
}
  
.event-card:hover .event-date-badge::before {
    transform: scale(1);
    opacity: 1;
}
  
.event-details {
    padding: 10px 10px;
    flex: 1;
    align-content: center;
}
  
.event-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--light-color);
}
  
.event-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
}
  
.discover-btn {
    display: inline-flex;
    align-items: center;
    color: var(--primary-light);
    transition: var(--transition-fast);
    text-decoration: none;
}
  
.discover-btn:hover {
    color: var(--secondary-light);
    gap: 12px;
}
  
.card-backdrop {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 0;
    background-color: var(--primary-light);
    opacity: 0.05;
    border-radius: var(--border-radius-lg);
    z-index: 1;
    transform: translateZ(-10px);
    transition: var(--transition);
}
  
.event-card:hover .card-backdrop {
    transform: translateZ(-20px) translateY(10px);
    opacity: 0.1;
}

/* === COLLEZIONI DI CARTE === */

.collections-section {
    background-color: var(--background);
    background-image: radial-gradient(circle at 100% 20%, rgba(70, 70, 70, 0.05) 0%, transparent 70%);
    color: var(--light-color);
}

.collections-carousel {
    overflow: hidden;
    padding-left: 10px;
    position: relative;
    width: 100%;
    height: 420px;
    align-content: center;
}

.collections-pill {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
  
.collections-pill:hover {
    box-shadow: var(--shadow-lg);
    background-color: var(--card-hover-bg);
    transform: scale(1.05) !important;
    transition: transform 0.3s ease !important;
}
  
.collections-pill.active {
    background: var(--primary-light);
    color: var(--light-color);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(127, 148, 73, 0.3);
}

.collections-track {
    align-items: anchor-center;
    height: 350px;
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.collections-indicators {
    display: none;
}

.collection-card {
    flex: 0 0 auto;
    margin: 0 10px;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    width: 300px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    height: 400px;
    display: flex;
    flex-direction: column;
}
  
.collection-card:hover {
    transform: scale(1.05) !important;
    transition: transform 0.3s ease !important;
    box-shadow: var(--shadow-lg);
    background-color: var(--card-hover-bg);
}
  
.collection-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}
  
.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}
  
.collection-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-light);
    color: var(--light-color);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: bold;
}
  
.collection-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
  
.collection-card h3 {
    color: var(--light-color);
}
  
.collection-date {
    font-size: 0.85rem;
    color: var(--secondary-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}
  
.collection-button {
    display: inline-block;
    background: var(--primary-light);
    color: var(--light-color);
    padding: 8px 16px;
    border-radius: 20px;
    margin-top: 15px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.3s;
    text-align: center;
    align-self: flex-start;
}
  
.collection-button:hover {
    background: var(--primary-dark);
}
  
.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--secondary-light);
    cursor: pointer;
    transition: background 0.3s;
}
  
.indicator.active {
    background: var(--primary-light);
}

/* === COMMUNITY SECTION === */

.community-section .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.community-content {
    flex: 1;
}

.community-content h2 {
    text-align: left;
}

.community-content h2::after {
    margin-left: 0;
    margin-right: auto;
}

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

.store-address {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px 25px;
    margin-top: 20px;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
  }
  
.store-address i {
    color: var(--primary-light);
    font-size: 1.5rem;
    margin-right: 15px;
}
  
.store-address p {
    color: var(--light-color);
    margin-bottom: 0;
}
  
.feature {
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary-dark);
    font-size: 1.5rem;
}

.feature p {
    color: var(--gray-color);
}

.community-image {
    flex: 1;
    position: relative;
    max-height: 400px;
    overflow: hidden;
    border-radius: 16px;
}
  
.community-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}  

/* === STILI PER EFFETTI 3D === */

[data-tilt] {
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

#calendar {
    height: 700px;
    margin-bottom: 30px;
    font-family: var(--font-main, 'Poppins', sans-serif);
    --fc-border-color: #e1e1e1;
    --fc-event-border-color: transparent;
    --fc-today-bg-color: rgba(127, 148, 73, 0.1);
    --fc-highlight-color: rgba(183, 98, 57, 0.2);
    --fc-event-text-color: #fff;
}

.fc .fc-toolbar {
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 10px;
}

.fc .fc-toolbar-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--light-color, #2A2A2A);
}

.fc .fc-button-primary {
    background-color: var(--primary-light, #7F9449);
    border-color: var(--primary-light, #7F9449);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.4rem 0.85rem;
    font-weight: 500;
    text-transform: capitalize;
}

.fc .fc-button-primary:hover {
    background-color: var(--primary-dark, #657836);
    border-color: var(--primary-dark, #657836);
}

.fc .fc-button-primary:disabled {
    background-color: #bdc7a5;
    border-color: #bdc7a5;
}

.fc .fc-button-primary.fc-button-active {
    background-color: var(--primary-dark, #657836);
    border-color: var(--primary-dark, #657836);
}

.fc .fc-button-group {
    gap: 5px;
}

.fc .fc-button-group .fc-button-primary {
    border-radius: 5px !important;
}

.fc th {
    padding: 10px 0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    background-color: var(--light-color);
}

.fc .fc-daygrid-day {
    height: 100px;
    transition: background-color 0.2s;
}

.fc .fc-daygrid-day:hover {
    background-color: rgba(127, 148, 73, 0.05);
}

.fc .fc-daygrid-day-top {
    padding-top: 5px;
    padding-right: 8px;
}

.fc .fc-daygrid-day-number {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.fc .fc-daygrid-day-number:hover {
    opacity: 1;
    text-decoration: none;
}

.fc .fc-day-today .fc-daygrid-day-number {
    color: var(--primary-light, #7F9449);
    font-weight: 600;
}

.fc .fc-day-past {
    opacity: 0.8;
}

.fc-event {
    cursor: pointer;
    border-radius: 4px;
    padding: 5px;
    margin-bottom: 3px;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 3px solid;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fc-event.draft {
    background-color: #8a8a8a;
    border-left-color: #666666;
}

.fc-event.publish {
    background-color: var(--primary-light, #7F9449);
    border-left-color: var(--primary-dark, #657836);
}

.fc .fc-col-header-cell-cushion {
    color: var(--dark-color);
}

.fc-daygrid-event-dot {
    display: none;
}

.fc-theme-standard .fc-popover-header {
    background-color: var(--primary-light)!important;
    color: var(--light-color)!important;
    font-weight: 600;
}

.fc-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background-color: var(--primary-dark)!important;
}

.fc-event-time {
    margin: 3px;
}

.fc-list-day-cushion {
    background-color: var(--light-color) !important;
}

.fc-list-event:hover td {
    background-color: rgba(127, 148, 73, 0.05);
}

.fc .fc-list-event-dot {
    border-color: var(--primary-light, #7F9449);
}

.nav-tabs {
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
    color: var(--gray-color);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.nav-tabs .nav-link.active {
    color: var(--primary-light, #7F9449);
    border-bottom: 2px solid var(--primary-light, #7F9449);
    background-color: transparent;
}

.nav-tabs .nav-link:hover:not(.active) {
    border-color: transparent;
    color: var(--light-color);
}

.nav-tabs .nav-link i {
    margin-right: 0.5rem;
}

#editModal .modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

#editModal .modal-header {
    background-color: var(--primary-light);
    color: var(--light-color);
    border-radius: 8px 8px 0 0;
    border-bottom: none;
}

#editModal .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(127, 148, 73, 0.25);
}

#editModal .modal-footer {
    border-top: 1px solid #f0f0f0;
}

.data-label {
    font-weight: bold;
}

.leagues-section table {
    --bs-table-bg: var(--background-secondary) !important;
    --bs-table-color: white !important;
    --bs-table-hover-color: white !important;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
}

.leagues-section tr {
    --bs-table-bg: var(--background-secondary) !important;
    --bs-table-color: white !important;
    --bs-table-hover-color: white !important;
    background: transparent !important;
}

.leagues-section .table-success {
    --bs-table-bg: rgb(193, 224, 210, 0.3) !important;
    --bs-table-color: white !important;
    --bs-table-hover-color: white !important;
    
}

/* === MEDIA QUERIES === */
@media (max-width: 1024px) {
    .community-section .container {
      flex-direction: column;
      gap:0;
    }
    
    .community-content {
      order: 2;
    }
    
    .community-image {
      order: 1;
      margin-bottom: 40px;
    }
    
}

@media (max-width: 995px) {
    .navbar-nav .nav-link {
        margin: 0 10px;
    }
    .navbar-brand img {
        height: 40px;
    }
}
  
@media (max-width: 768px) {
    
    .navbar-collapse {
        background-color: var(--navbar-bg);
        border-radius: 0 0 8px 8px;
        box-shadow: var(--shadow-md);
        padding: 1rem;
        margin-top: 20px;
    }
    
    .navbar-nav .nav-link {
        margin: 8px 0;
        padding: 0.5rem 1rem;
    }
    
    .navbar-nav .nav-link.active::after {
        left: 1rem;
        right: 1rem;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100%;
        transition: left 0.3s ease;
        z-index: 1000;
        margin-top: 70px;
    }

    .admin-sidebar.active {
        left: 0;
    }

    .button-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
    }

    .table-bordered th, .table-bordered td, .table-bordered tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        margin: 0 0 1rem 0;
        border: 1px solid #dee2e6;
        padding: 0.5rem;
        border-radius: 0.25rem;
        background: #fff;
        font-size: 0.75rem;
    }

    td {
        position: relative;
        padding-left: 50%;
        text-align: left;
        border: none;
        border-bottom: 1px solid #dee2e6;
    }

    td:last-child {
        border-bottom: 0;
    }

    td:before {
        display: block;
        content: attr(data-label);
        font-weight: bold;
        margin-bottom: 0.25rem;
    }

    .cookie-banner {
        padding: 1.2rem 0.6rem 1rem 0.6rem;
        max-width: 98vw;
    }

    .privacy-card {
        flex-direction: column;
    }
    
    .privacy-card-icon {
        width: 100%;
        height: 60px;
    }

    footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h4 {
        padding-bottom: 15px;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
    }
    
    .custom-logo-footer {
        margin: 0 auto 1.5rem;
    }
    
    .footer-links li:hover {
        transform: none;
    }
    
    .footer-contact li {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-contact li strong {
        margin-bottom: 0.3rem;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .privacy-title {
        font-size: 2rem;
    }
    .fc .fc-toolbar {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .fc .fc-toolbar-chunk {
        margin-bottom: 10px;
    }
    
    .fc-direction-ltr .fc-toolbar-ltr {
        flex-wrap: wrap;
    }
    
    .fc .fc-toolbar-title {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .fc .fc-daygrid-day {
        height: 70px;
    }
    
    .fc .fc-daygrid-day-number {
        font-size: 0.8rem;
    }
    
    .fc-event {
        font-size: 0.75rem;
        padding: 3px;
    }
    
    #calendar {
        height: 600px;
        color:var(--dark-color);
    }

    /* Custom */
    .title-container {
        align-items: flex-start;
    }

    .social-links {
        margin-top: 2rem;
        margin-bottom: 2.5rem;
    }

    .collection-card {
        flex: 0 0 280px;
        height: 335px;
    }

    .collection-image {
        height: 180px;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
    }
    
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
      
    .hero-content {
        margin-bottom: 60px;
    }
      
    .hero-buttons {
        justify-content: center;
    }
      
    .events-grid, 
    .collections-grid {
        grid-template-columns: 1fr;
    }
      
    .community-features {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.2rem;
    }
      
    .events-container {
        grid-template-columns: 1fr;
    }
      
    .filter-pill {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
  
    .hero-cards {
          display: none;
    }

    .table-responsive,
    .table-responsive thead,
    .table-responsive tbody,
    .table-responsive th,
    .table-responsive td,
    .table-responsive tr {
        display: block;
        width: 100%;
    }

    .table-responsive thead {
        display: none;
    }

}

@media (max-width: 576px) {
    /* Default styles */
    .fc .fc-toolbar-title {
        font-size: 1rem;
    }
    
    .fc-direction-ltr .fc-toolbar-ltr {
        gap: 5px;
    }
    
    .fc .fc-button {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .fc th {
        font-size: 0.7rem;
    }
    
    .fc-event {
        font-size: 0.7rem;
        padding: 2px;
    }
    
    #calendar {
        height: 500px;
    }

    /* Custom */
    .title-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
  
    .collection-card {
        flex: 0 0 250px;
        height: 335px;
    }
    
    .collection-image {
        height: 150px;
    }
    
    .collection-content {
        padding: 15px;
    }
        
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

/* Sezione Affiliazione Completa */
.affiliation-section {
    background-color: var(--background);
    background-image: radial-gradient(circle at 20% 100%, rgba(70, 70, 70, 0.05) 0%, transparent 70%);
    color: var(--light-color);
}

.affiliation-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Loghi */
.logos-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2.5rem 0;
    flex-direction: row;
}

.logo-item {
    justify-items: center;
    text-align: center;
    flex: 1;
    max-width: 140px;
}

.logo-link {
    display: inline-block;
    transition: var(--transition);
}

.logo-link:hover {
    transform: translateY(-5px);
}

.league-logo {
    width: 100px;
    height: 100px;
    border-radius: 100%;
    border: 2px solid var(--primary-light);
    padding: 12px;
    background: var(--card-bg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    object-fit: contain;
}

.league-logo:hover {
    border-color: var(--secondary-light);
    box-shadow: 0 8px 20px rgba(105, 122, 63, 0.3);
}

.logo-item h3 {
    margin-top: 0.8rem;
    color: var(--light-color);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.league-link {
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.league-link:hover {
    color: var(--primary-light);
}

.league-link i {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Social Links sotto i loghi */
.social-links-2 {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.social-link {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.8rem;
    border: 1px solid var(--primary-light);
    background: var(--card-bg);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e6683c;
    color: white;
}

/* Connettore */
.partnership-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    flex: 0 0 auto;
}

.connector-line {
    width: 2px;
    height: 20px;
    background: var(--gradient-1);
    margin: 0.3rem 0;
}

.partnership-badge {
    background: var(--card-bg);
    border: 1px solid var(--primary-light);
    border-radius: var(--border-radius-sm);
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    margin: 0.2rem 0;
}

/* Descrizione */
.affiliation-description {
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 0;
    background: transparent;
    border: none;
}

.benefits-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.main-text {
    background: var(--background-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(105, 122, 63, 0.3);
    padding: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.main-text strong {
    color: var(--primary-light);
    font-weight: 600;
}

.highlight-benefit {
    background: linear-gradient(135deg, var(--card-bg), var(--card-hover-bg));
    border: 2px solid var(--secondary-light);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.benefit-text h4 {
    color: var(--secondary-light);
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.benefit-text p {
    color: var(--light-color);
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
}

.benefit-text strong {
    color: var(--secondary-light);
    font-weight: 600;
}

.requirement-note {
    background: var(--card-bg);
    border: 1px solid var(--primary-dark);
    border-radius: var(--border-radius-md);
    padding: 1rem 1.5rem;
    position: relative;
}

.requirement-badge {
    position: absolute;
    top: -10px;
    left: 1.5rem;
    background: var(--primary-light);
    color: var(--background);
    padding: 0.3rem 0.8rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.requirement-text {
    color: var(--gray-color);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0.5rem 0 0 0;
    text-align: center;
}

.requirement-text strong {
    color: var(--primary-light);
    font-weight: 600;
}

.follow-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.social-buttons {
    display: flex;
    gap: 1rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid;
}

.social-btn.facebook {
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
    border-color: #1877f2;
}

.social-btn.facebook:hover {
    background: #1877f2;
    color: white;
    transform: translateY(-2px);
}

.social-btn.instagram {
    background: rgba(225, 48, 108, 0.1);
    color: #e1306c;
    border-color: #e1306c;
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {    
    .logos-container {
        gap: 1.5rem;
        margin: 2rem 0;
        padding: 0 1rem;
    }
    
    .league-logo {
        width: 80px;
        height: 80px;
        padding: 10px;
    }
    
    .logo-item h3 {
        font-size: 0.8rem;
        margin-top: 0.6rem;
    }
    
    .social-links-2 {
        margin-top: 0.4rem;
    }
    
    .social-link {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .partnership-connector {
        min-height: 100px;
    }
    
    .connector-line {
        height: 15px;
    }
    
    .partnership-badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.6rem;
    }
    
    .affiliation-description {
        margin: 1.5rem 1rem 0;
    }
    
    .main-text {
        padding: 1.2rem;
        font-size: 1rem;
    }
    
    .highlight-benefit {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        padding: 1.2rem;
    }
    
    .benefit-icon {
        font-size: 1.8rem;
    }
    
    .benefit-text h4 {
        font-size: 1.1rem;
    }
    
    .benefit-text p {
        font-size: 0.95rem;
    }
    
    .requirement-note {
        padding: 1rem;
    }
    
    .requirement-badge {
        left: 1rem;
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
    
    .requirement-text {
        font-size: 0.85rem;
        margin-top: 0.8rem;
    }
    
    .cta-section {
        padding: 1.5rem;
    }
    
    .social-buttons {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }
    
    .social-btn {
        justify-content: center;
        padding: 0.7rem;
    }
}

@media (max-width: 480px) {

    .logos-container {
        gap: 1rem;
    }
    
    .league-logo {
        width: 70px;
        height: 70px;
        padding: 8px;
    }
    
    .logo-item h3 {
        font-size: 0.75rem;
    }
    
    .partnership-badge span {
        font-size: 0.55rem;
    }
    
    .main-text {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .highlight-benefit {
        padding: 1rem;
    }
    
    .benefit-text h4 {
        font-size: 1rem;
    }
    
    .requirement-text {
        font-size: 0.8rem;
    }
    
    .cta-section {
        padding: 1.2rem;
    }
    
    .cta-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .follow-text {
        font-size: 0.8rem;
    }
    
    .social-btn {
        font-size: 0.8rem;
    }
}