/* =========================================
   VARIABILI DI BASE E TEMI
========================================= */
:root, html.force-dark {
    --bg-body: #050505; --bg-surface: #121212; --bg-surface-glass: rgba(18, 18, 18, 0.95);
    --bg-elevated: #222222; --bg-input: #2b2b2b; --text-primary: #ffffff;
    --text-secondary: #b0b0b0; --border-color: #333333; --brand-color: #E50914;
    --shadow-soft: 0 10px 20px rgba(0,0,0,0.5); --invert-icon: invert(1);
}

@media (prefers-color-scheme: light) {
    html:not(.force-dark) {
        --bg-body: #f4f6f9; --bg-surface: #ffffff; --bg-surface-glass: rgba(255, 255, 255, 0.85);
        --bg-elevated: #e9ecef; --bg-input: #ffffff; --text-primary: #1a1a1a;
        --text-secondary: #5a5a5a; --border-color: #dee2e6; --shadow-soft: 0 4px 15px rgba(0,0,0,0.08); --invert-icon: none;
    }
}

html.force-light {
    --bg-body: #f4f6f9; --bg-surface: #ffffff; --bg-surface-glass: rgba(255, 255, 255, 0.85);
    --bg-elevated: #e9ecef; --bg-input: #ffffff; --text-primary: #1a1a1a;
    --text-secondary: #5a5a5a; --border-color: #dee2e6; --shadow-soft: 0 4px 15px rgba(0,0,0,0.08); --invert-icon: none;
}

html { background-color: var(--bg-body); transition: background-color 0.3s; }
body { background-color: transparent !important; color: var(--text-primary); font-family: 'Inter', sans-serif; transition: color 0.3s; min-height: 100vh; position: relative; }

.global-site-bg { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-size: cover; background-position: center; opacity: 0.15; z-index: -1; pointer-events: none; }

@media (prefers-color-scheme: light) {
    html:not(.force-dark) .global-site-bg { opacity: 0.05; filter: grayscale(100%); }
}
html.force-light .global-site-bg { opacity: 0.05; filter: grayscale(100%); }

.brand-font { font-family: 'DynaPuff', cursive; }

/* =========================================
   NAVBAR E COMPONENTI GLOBALI
========================================= */
.navbar-glass { background-color: var(--bg-surface-glass); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; }
.nav-link-custom { color: var(--text-secondary); text-decoration: none; font-weight: bold; padding: 5px 10px; border-radius: 8px; transition: 0.2s; }
.nav-link-custom:hover { background: var(--bg-elevated); color: var(--text-primary); }
.nav-link-active { background: var(--brand-color); color: #fff !important; }
.mobile-nav-scroll { overflow-x: auto; flex-wrap: nowrap !important; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.mobile-nav-scroll::-webkit-scrollbar { display: none; }
.mobile-nav-scroll .nav-link-custom { font-size: 0.95rem; padding: 5px 12px; }

.dropdown-menu-custom { background-color: var(--bg-surface-glass); backdrop-filter: blur(15px); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: var(--shadow-soft); }
.dropdown-menu-custom .dropdown-item { font-weight: 500; padding: 8px 15px; transition: 0.2s; border-radius: 6px; margin: 2px 5px; width: auto; color: var(--text-primary); }
.dropdown-menu-custom .dropdown-item:hover { background-color: var(--bg-elevated); }

.profile-toggle-btn { border: 1px solid var(--border-color); color: var(--text-primary) !important; background: var(--bg-surface); transition: all 0.2s ease; cursor: pointer; }
.profile-toggle-btn:hover, .profile-toggle-btn:focus { background: var(--bg-elevated); border-color: var(--brand-color); transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }

.action-btn-glass { background-color: var(--bg-surface-glass) !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.action-btn-glass:hover { background-color: var(--bg-elevated) !important; }

.btn-brand { background-color: var(--brand-color); color: white !important; border: none; font-weight: 600; }

/* =========================================
   HERO & AVATAR
========================================= */
.profile-hero { position: relative; width: 100%; height: 300px; background-size: cover; background-position: center; mask-image: linear-gradient(to bottom, black 50%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; background-color: var(--bg-surface); }
.placeholder-hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-body) 100%); z-index: 1; }
.placeholder-hero-text { position: relative; z-index: 2; font-size: 6rem; color: var(--text-secondary); opacity: 0.15; white-space: nowrap; user-select: none; text-transform: uppercase; letter-spacing: 10px; font-weight: 900; }
.profile-header-content { position: relative; margin-top: -100px; text-align: center; z-index: 10; }

.profile-avatar-wrapper { position: relative; display: inline-block; }
.profile-avatar { width: 180px; height: 180px; object-fit: cover; border: 5px solid var(--bg-body); border-radius: 15px; background-color: var(--bg-elevated); position: relative; z-index: 20; }
.avatar-placeholder { width: 180px; height: 180px; border: 5px solid var(--bg-body); border-radius: 15px; background-color: var(--bg-elevated); display: flex; align-items: center; justify-content: center; font-size: 5rem; color: var(--text-secondary); margin: 0 auto; position: relative; z-index: 20; }

.avatar-companion { position: absolute; top: -35px; right: -25px; width: 90px; height: auto; z-index: 25; pointer-events: none; }
.avatar-frame { position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; z-index: 24; pointer-events: none; }

@media (max-width: 768px) {
    .profile-hero { height: 180px; } .placeholder-hero-text { font-size: 3rem; }
    .profile-header-content { margin-top: -70px; } 
    .profile-avatar, .avatar-placeholder { width: 140px; height: 140px; font-size: 4rem;}
    .avatar-companion { width: 70px; top: -25px; right: -15px; } 
}

/* =========================================
   LIVELLI & BARRA XP
========================================= */
.level-container { width: 100%; max-width: 250px; margin: 15px auto 10px auto; text-align: center; }
.level-badge { color: #fff; font-weight: 900; border-radius: 50%; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; border: 3px solid var(--bg-surface); z-index: 2; position: relative; margin: 0 auto; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.xp-bar-wrapper { background: var(--bg-elevated); border-radius: 50px; height: 12px; width: 100%; overflow: hidden; margin-top: -12px; border: 1px solid var(--border-color); position: relative; z-index: 1; box-shadow: inset 0 2px 4px rgba(0,0,0,0.5); }
.xp-bar-fill { height: 100%; transition: width 1s cubic-bezier(0.175, 0.885, 0.32, 1.275); border-radius: 50px; }
.xp-text { font-size: 0.7rem; color: var(--text-secondary); margin-top: 6px; font-weight: bold; letter-spacing: 0.5px; }

/* =========================================
   PULSANTI DI MODIFICA
========================================= */
.edit-btn, .hero-edit-btn { background: rgba(0,0,0,0.7); color: #fff; border: 1px solid #555; cursor: pointer; backdrop-filter: blur(5px); transition: 0.2s; }
.edit-btn { position: absolute; bottom: -5px; right: -5px; border-radius: 50%; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; z-index: 30; }
.edit-btn:hover { color: #000; transform: scale(1.1); }
.hero-edit-btn { position: absolute; top: 20px; right: 20px; padding: 8px 15px; border-radius: 50px; z-index: 20; }
.hero-edit-btn:hover { color: #000; }

/* =========================================
   BOX PROFILO E CONTENUTI
========================================= */
.profile-box { background-color: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 12px; padding: 25px; margin-top: 20px; box-shadow: var(--shadow-soft); position: relative; z-index: 10; }

.badge-icon { font-size: 0.8rem; padding: 5px 10px; border-radius: 5px; display: inline-flex; align-items: center; gap: 5px; margin: 2px; cursor: help; }
.bio-content { font-size: 1.05rem; line-height: 1.6; color: var(--text-secondary); overflow-wrap: break-word; }
.mood-text { font-size: 0.95rem; color: var(--text-secondary); font-style: italic; max-width: 400px; margin: 0 auto 15px auto; line-height: 1.4; text-align: center; }

.watched-thumb-wrapper { position: relative; display: block; border-radius: 8px; overflow: hidden; border: 2px solid transparent; transition: 0.2s; aspect-ratio: 16/9; background-color: var(--bg-elevated); }
.watched-thumb-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.watched-thumb-wrapper:hover { transform: scale(1.05); box-shadow: var(--shadow-soft); }

/* =========================================
   SOCIAL LINKS
========================================= */
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background-color: var(--bg-elevated); color: var(--text-primary); font-size: 1.1rem; transition: 0.3s; border: 1px solid var(--border-color); text-decoration: none; }
.social-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.social-ig:hover { background-color: #E1306C; color: #fff; border-color: #E1306C; }
.social-tk:hover { background-color: #000; color: #fff; border-color: #69C9D0; }
.social-yt:hover { background-color: #FF0000; color: #fff; border-color: #FF0000; }
.social-da:hover { background-color: #05CC47; color: #fff; border-color: #05CC47; }
.social-tg:hover { background-color: #0088cc; color: #fff; border-color: #0088cc; }
.social-x:hover { background-color: #14171A; color: #fff; border-color: #14171A; }
.social-tw:hover { background-color: #9146FF; color: #fff; border-color: #9146FF; }
.social-st:hover { background-color: #171a21; color: #fff; border-color: #171a21; }

/* =========================================
   MODALS E FORM
========================================= */
.modal-content { background-color: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border-color); }
.modal-header { border-bottom: 1px solid var(--border-color); }
.modal-footer { border-top: 1px solid var(--border-color); }
.btn-close { filter: var(--invert-icon); }

.form-control, .form-select { background-color: var(--bg-input); color: var(--text-primary) !important; border: 1px solid var(--border-color); }
.form-control:focus, .form-select:focus { background-color: var(--bg-elevated); color: var(--text-primary) !important; box-shadow: none; }
::placeholder { color: var(--text-secondary) !important; opacity: 0.6 !important; }

/* =========================================
   VARIE (Mi piace, Bio Sensibile, Radio Box)
========================================= */
.like-icon-anim { transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: inline-block; }

.blur-bio { filter: blur(15px); pointer-events: none; user-select: none; min-height: 240px; max-height: 250px; overflow: hidden; transition: all 0.5s ease; }
.sensitive-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(18, 18, 18, 0.95); z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-radius: 12px; padding: 20px; transition: opacity 0.3s ease; }

@media (prefers-color-scheme: light) {
    html:not(.force-dark) .sensitive-overlay { background: rgba(255, 255, 255, 0.95); }
}
html.force-light .sensitive-overlay { background: rgba(255, 255, 255, 0.95); }

/* Box Sfondi ed Effetti */
.bg-radio-label { display: block; width: 100%; height: 60px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; overflow: hidden; transition: 0.2s; position: relative; }
.bg-radio-input:checked + .bg-radio-label { transform: scale(1.05); }
.bg-radio-input { display: none; }

/* Box Tema Chiaro/Scuro */
.custom-radio-input { display: none; }
.custom-radio-label { border: 2px solid var(--border-color); opacity: 0.6; transition: all 0.2s; cursor: pointer; padding: 10px 20px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 5px; font-weight: 600; text-align: center; min-width: 110px; }
.custom-radio-input:checked + .custom-radio-label { opacity: 1; transform: translateY(-3px); }

.drop-shadow { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8)); }

input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; } 
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 4px; }

.music-playing { animation: pulseGlow 2s infinite alternate; }
@keyframes pulseGlow { 0% { box-shadow: 0 0 5px rgba(229, 9, 20, 0.2); } 100% { box-shadow: 0 0 20px rgba(229, 9, 20, 0.8); } }

/* =========================================
   PODIO E VETRINA CARTONI
========================================= */
/* Top 3 */
.podium-container { display: flex; justify-content: center; align-items: flex-end; gap: 15px; margin-top: 10px; margin-bottom: 30px; padding: 20px 0; border-bottom: 1px solid var(--border-color); }
.podium-item { display: flex; flex-direction: column; align-items: center; text-align: center; width: 120px; transition: 0.3s; }
.podium-item:hover { transform: translateY(-5px); }
.podium-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow-soft); border: 2px solid transparent; transition: border-color 0.3s, box-shadow 0.3s; }
.podium-1 { order: 2; width: 160px; z-index: 3; } .podium-2 { order: 1; z-index: 2; opacity: 0.9; } .podium-3 { order: 3; z-index: 1; opacity: 0.9; }
.podium-1 .podium-thumb { border-color: #ffd700; box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); } .podium-2 .podium-thumb { border-color: #c0c0c0; } .podium-3 .podium-thumb { border-color: #cd7f32; }
.podium-medal { font-size: 1.5rem; margin-bottom: -10px; z-index: 5; text-shadow: 0 2px 4px rgba(0,0,0,0.5); } .podium-1 .podium-medal { font-size: 2rem; }
.podium-title { font-size: 0.8rem; font-weight: bold; color: var(--text-primary); margin-top: 8px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Top 5 */
.top5-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); margin-bottom: 30px; }
@media(max-width: 768px) { .top5-grid { grid-template-columns: repeat(3, 1fr); } }
.top5-item { transition: 0.3s; }
.top5-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow-soft); transition: 0.3s; border: 2px solid transparent; }
.top5-item:hover .top5-thumb { transform: translateY(-3px); }

/* Singolo */
.single-podium { text-align: center; max-width: 400px; margin: 0 auto 30px auto; position: relative; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.single-podium-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: 0.3s; }
.single-podium-thumb:hover { transform: scale(1.02); }
.single-medal { font-size: 3rem; position: absolute; top: -20px; right: -20px; text-shadow: 0 4px 10px rgba(0,0,0,0.5); z-index: 10; animation: singleBounce 2s infinite; }
@keyframes singleBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* =========================================
   GUESTBOOK
========================================= */
.guestbook-msg { background: var(--bg-elevated); border: 1px solid var(--border-color); border-radius: 12px; padding: 15px; margin-bottom: 15px; position: relative; }
.guestbook-msg.pinned { border: 2px solid #ffd700; box-shadow: 0 0 15px rgba(255, 215, 0, 0.15); }
.guestbook-avatar { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border-color); }
.gb-action-btn { background: transparent; border: none; color: var(--text-secondary); transition: 0.2s; font-size: 1rem; }
.gb-action-btn:hover { color: var(--text-primary); }
.gb-action-btn.delete-btn:hover { color: #dc3545; }
.gb-action-btn.pin-btn:hover { color: #ffd700; }

.guestbook-reply { margin-left: 40px; margin-top: 10px; background: var(--bg-surface); border-left: 3px solid var(--brand-color); padding: 10px 15px; border-radius: 0 12px 12px 0; position: relative; }
.guestbook-reply .guestbook-avatar { width: 30px; height: 30px; }
.reply-btn { background: transparent; border: none; color: var(--text-secondary); font-size: 0.85rem; padding: 0; margin-top: 10px; cursor: pointer; transition: 0.2s; font-weight: 600; }
.reply-btn:hover { color: var(--text-primary); }
.reply-form { display: none; margin-top: 10px; } .reply-form.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

.sticker-img { max-width: 100px; max-height: 100px; object-fit: contain; margin-top: 10px; display: block; border-radius: 8px; }
.sticker-select-btn { border: 1px solid var(--border-color); background: var(--bg-surface); padding: 5px; border-radius: 8px; cursor: pointer; transition: 0.2s; }
.sticker-select-btn:hover { border-color: var(--brand-color); transform: scale(1.05); }

.playable-sticker { cursor: pointer; transition: transform 0.2s ease, filter 0.2s ease; }
.playable-sticker:hover { transform: scale(1.1) rotate(-3deg); filter: drop-shadow(0 4px 8px rgba(229, 9, 20, 0.6)); }

/* =========================================
   EFFETTI ANIMATI PROFILO
========================================= */
.profile-effect-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; overflow: hidden; }
.particle { position: absolute; pointer-events: none; }
.snow { background: #fff; border-radius: 50%; animation: snowFall linear infinite; opacity: 0.8; box-shadow: 0 0 5px #fff; }
@keyframes snowFall { 0% { transform: translateY(-10px) translateX(0px); opacity: 1; } 100% { transform: translateY(100vh) translateX(20px); opacity: 0; } }
.heart-particle { color: #ff4757; font-size: 1.2rem; animation: floatUp linear infinite; opacity: 0.8; }
@keyframes floatUp { 0% { transform: translateY(100vh) scale(0.8); opacity: 1; } 100% { transform: translateY(-10px) scale(1.2); opacity: 0; } }
.sparkle-particle { background: #ffd700; border-radius: 50%; animation: sparkleAnim linear infinite; box-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700; }
@keyframes sparkleAnim { 0% { transform: scale(0); opacity: 0; } 50% { transform: scale(1); opacity: 1; } 100% { transform: scale(0); opacity: 0; } }
.leaf-particle { background: #d35400; opacity: 0.8; animation: leafFall linear infinite; }
@keyframes leafFall { 
    0% { transform: translateY(-10px) translateX(0px) rotate(0deg); opacity: 1; } 
    25% { transform: translateY(25vh) translateX(-15px) rotate(90deg); }
    50% { transform: translateY(50vh) translateX(15px) rotate(180deg); opacity: 0.8; }
    75% { transform: translateY(75vh) translateX(-10px) rotate(270deg); }
    100% { transform: translateY(100vh) translateX(0px) rotate(360deg); opacity: 0; }
}
.star-particle { background: #fff; border-radius: 50%; animation: starTwinkle ease-in-out infinite; box-shadow: 0 0 5px #fff; }
@keyframes starTwinkle { 0% { opacity: 0; transform: scale(0); } 50% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0); } }
.rain-particle { background: rgba(0, 123, 255, 0.6); animation: rainFall linear infinite; border-radius: 2px; }
@keyframes rainFall { 0% { transform: translateY(-10px); opacity: 1; } 100% { transform: translateY(100vh); opacity: 0.6; } }
.balloon-particle { border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; opacity: 0.9; animation: balloonFloat ease-out infinite; box-shadow: inset -5px -10px 15px rgba(0,0,0,0.1), 0 5px 10px rgba(0,0,0,0.2); }
.balloon-particle::after { content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 2px; height: 30px; background: rgba(255,255,255,0.4); }
@keyframes balloonFloat { 0% { transform: translateY(100vh) translateX(0px) scale(0.8); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(-20vh) translateX(20px) scale(1.1); opacity: 0; } }

/* =========================================
   EDITOR TOOLBAR & NAV PILLS
========================================= */
.editor-toolbar .btn { border: 1px solid transparent; background: transparent; color: var(--text-secondary); transition: 0.2s; }
.editor-toolbar .btn:hover { background: var(--bg-input); color: var(--text-primary); border-color: var(--border-color); }
.editor-textarea { resize: vertical; min-height: 80px; }
.editor-textarea:focus { box-shadow: none; outline: none; }

.nav-pills .nav-link { color: var(--text-secondary); border-radius: 50px; padding: 8px 20px; font-weight: bold; transition: 0.3s; margin: 0 5px; }
.nav-pills .nav-link.active { color: #fff; }
.nav-pills .nav-link:hover:not(.active) { background-color: var(--bg-elevated); color: var(--text-primary); }

/* =========================================
   NOTIFICHE TOAST
========================================= */
.notification-toast { position: fixed; bottom: -150px; left: 50%; transform: translateX(-50%); padding: 15px 20px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0, 0.6); z-index: 9999; transition: bottom 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); width: 90%; max-width: 450px; pointer-events: auto; display: flex; align-items: center; gap: 15px; }
.notification-toast.show { bottom: 30px; }

.toast-unlock { background: linear-gradient(135deg, var(--brand-color) 0%, #ff4757 100%); pointer-events: none;}
.toast-admin { background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%); pointer-events: none;}
.toast-gb { background: linear-gradient(135deg, #e83e8c 0%, #dc3545 100%); cursor: pointer; color: white !important;}
.toast-gb:hover { transform: translateX(-50%) translateY(-3px); box-shadow: 0 15px 45px rgba(220, 53, 69, 0.6); }
.toast-mention { background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%); cursor: pointer; color: white !important;}
.toast-mention:hover { transform: translateX(-50%) translateY(-3px); box-shadow: 0 15px 45px rgba(253, 126, 20, 0.6); }
.toast-mention .anim-icon { color: #fff; }

.anim-icon { font-size: 2.5rem; text-shadow: 0 0 10px rgba(0,0,0, 0.5); animation: bounce 1s infinite alternate; }
.toast-unlock .anim-icon { color: #ffd700; }
.toast-admin .anim-icon { color: #fff; }
.toast-gb .anim-icon { color: #fff; }

@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-5px); } }


/* =========================================
   FIX CROPPER MODAL
========================================= */
.img-container {
    width: 100%;
    max-height: 60vh; /* Limita l'altezza al 60% dell'altezza dello schermo */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.img-container img {
    display: block;
    max-width: 100%;
    max-height: 60vh; /* Fondamentale: impedisce all'immagine nativa di allungare il box prima del crop */
}