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

html,
body {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Ubuntu', sans-serif;
    background: #f6f7fb;
    color: #1f2937;
}

a {
    text-decoration: none;
    color: #1c8081;
}

/* =========================
   ADMIN LAYOUT
========================= */

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #331f51;
    color: #fff;
    padding: 22px 18px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 28px;
}

.sidebar-logo {
    height: 34px;
    display: block;
}

.sidebar-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.45);
    margin: 12px 20px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border-radius: 12px;
    color: #ede2fa;
}

.sidebar-nav a:hover {
    background: #5a338f;
}

.main {
    flex: 1;
    margin-left: 260px;
    min-width: 0;
}

.topbar {
    height: 72px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

.user-menu {
    position: relative;
}

.user-menu-btn {
    border: 0;
    background: #49186d;
    border-radius: 12px;
    padding: 10px 14px;
    font: inherit;
    cursor: pointer;
    color: #fff;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
    padding: 8px;
    display: none;
}

.user-dropdown.open {
    display: block;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #111827;
}

.user-dropdown a:hover {
    background: #f5f6fb;
}

.content {
    padding: 24px;
}

/* =========================
   LOGIN
========================= */

.login-page {
    background: #f6f7fb;
}

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    padding: 28px;
}

.login-logo {
    text-align: center;
    margin-bottom: 18px;
}

.login-logo img {
    height: 42px;
}

.login-card h1 {
    margin: 0 0 18px;
    text-align: center;
}

.login-card label {
    display: block;
    margin: 0 0 8px;
    font-weight: 500;
}

.login-card input {
    width: 100%;
    height: 44px;
    margin: 0 0 14px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font: inherit;
}

.btn-login {
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: #4b2a7b;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.recaptcha-box {
    margin: 10px 0 16px;
}

.msg {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.msg.err {
    background: #fef2f2;
    color: #b91c1c;
}

.msg.ok {
    background: #ecfdf3;
    color: #166534;
}

/* =========================
   ADMIN UI
========================= */

.card {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(19, 22, 33, 0.06);
    border: 1px solid #ececf3;
}

.card h1,
.card h2 {
    margin: 0 0 20px;
    font-size: 24px;
    line-height: 1.2;
    color: #1f2430;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3340;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    border: 1px solid #d9ddea;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    font-family: 'Ubuntu', sans-serif;
    color: #1f2430;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.45;
}

input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px dashed #cfd5e4;
    border-radius: 12px;
    background: #fafbff;
    font-size: 14px;
    font-family: 'Ubuntu', sans-serif;
}

input::placeholder,
textarea::placeholder {
    color: #98a0b3;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus,
input[type="file"]:focus,
input:focus {
    outline: none;
    border-color: #3f2a78;
    box-shadow: 0 0 0 4px rgba(63, 42, 120, 0.12);
}

button,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: #3f2a78;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Ubuntu', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
    box-shadow: 0 8px 20px rgba(63, 42, 120, 0.22);
}

button:hover,
.btn-primary:hover {
    background: #5b3df2;
    transform: translateY(-1px);
}

button:active,
.btn-primary:active {
    transform: translateY(0);
}

.table {
    width: 100%;
    margin-top: 18px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #ececf3;
    border-radius: 14px;
    background: #fff;
}

.table thead th {
    background: #f7f8fc;
    color: #4a5264;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    padding: 14px 16px;
    border-bottom: 1px solid #ececf3;
    text-align: left;
}

.table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f2f7;
    vertical-align: middle;
    font-size: 14px;
    color: #1f2430;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table tbody tr:hover {
    background: #fafbff;
}

.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    background: #eef1f7;
    color: #2d3340;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 0;
    transition: background .18s ease, transform .12s ease;
}

.btn-sm:hover {
    background: #e4e8f1;
    transform: translateY(-1px);
}

.btn-sm.danger {
    background: #ffe7e7;
    color: #c62828;
}

.btn-sm.danger:hover {
    background: #ffd8d8;
}

.alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

.alert.success {
    background: #ebfff1;
    color: #166534;
    border: 1px solid #c8f0d4;
}

.alert.error {
    background: #fff1f1;
    color: #b42318;
    border: 1px solid #ffd1d1;
}

.table img,
.card img {
    display: block;
    max-width: 100%;
    border-radius: 10px;
}

.drag-handle {
    width: 52px;
    text-align: center;
    color: #8a90a2;
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

#sortableCategories tr {
    background: #fff;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

.status-badge.active {
    background: #e9fbef;
    color: #18794e;
}

.status-badge.inactive {
    background: #f3f4f6;
    color: #6b7280;
}

/* =========================
   FRONTEND BASE
========================= */

.frontend-body {
    margin: 0;
    background: #f5f6fb;
    font-family: 'Ubuntu', sans-serif;
    color: #1f2430;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #ececf3;
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 52px;
    display: block;
}

.hero {
    padding: 34px 0 24px;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.15;
}

.hero p {
    margin: 0;
    font-size: 16px;
    color: #667085;
}

.frontend-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding: 0 0 40px;
}

.frontend-card {
    display: block;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #ececf3;
    box-shadow: 0 10px 30px rgba(19, 22, 33, 0.06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.frontend-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(19, 22, 33, 0.10);
}

.frontend-card-image {
    aspect-ratio: 16 / 10;
    background: #f2f4fa;
}

.frontend-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.frontend-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: #3f2a78;
}

.frontend-card-body {
    padding: 18px;
}

.frontend-card-body h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

/* =========================
   FRONTEND APP UI
========================= */

.app-shell {
    background:
        radial-gradient(circle at top, rgb(252 252 252), #ffffff 32%),
        linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
    min-height: 100vh;
    overflow: visible !important;
}

.app-header {
    position: sticky !important;
    top: 0;
    z-index: 9999;
    width: 100%;
    padding-top: env(safe-area-inset-top);
}

.app-header-inner {
    max-width: 760px;
    margin: 0 auto;
    min-height: 64px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border: 1px solid #ececf3;
    border-top: none;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.app-logo {
    min-width: 0;
    flex: 1;
}

.app-logo img {
    height: 36px;
    display: block;
}

.app-logo span {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1f2430;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-menu-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex: 0 0 44px;
    border: 0;
    border-radius: 14px;
    background: #3f2a78;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(63, 42, 120, 0.24);
    cursor: pointer;
    padding: 0;
}

.app-menu-toggle i {
    font-size: 18px;
    line-height: 1;
    pointer-events: none;
}

.app-menu-close {
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex: 0 0 40px;
    border: 0;
    border-radius: 12px;
    background: #f4f3ff;
    color: #5925dc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.app-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 10px 10px 28px;
}

.app-hero {
    padding: 18px 4px 22px;
}

.app-hero-small {
    padding-bottom: 18px;
}

.app-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 5px;
    background: rgba(63, 42, 120, 0.10);
    color: #3f2a78;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.app-hero h1 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.08;
    color: #1f2430;
    letter-spacing: -0.02em;
}

.app-hero p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #667085;
}

.app-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
}

.app-category-card,
.app-listing-card,
.app-special-item {
    display: block;
    margin-top: 14px;
    grid-column: 1 / -1;
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 16px;
    overflow: hidden;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease;
}

.special-slider-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #fff;
    color: #8b8b8b;
    cursor: pointer;
}

.special-slider-counter {
    min-width: 70px;
    text-align: center;
    font-weight: 700;
    color: #4b2a7b;
    font-size: 14px;
}
.special-slider-track a {
    display: block;
    text-decoration: none;
    color: #1f2430;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #ececf3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(19, 22, 33, 0.08);
    transition: transform .18s ease, box-shadow .18s ease;
}

.app-category-card:hover,
.app-listing-card:hover,
.app-special-item:hover,
.special-slider-track a:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(19, 22, 33, 0.12);
}

.app-category-image,
.app-listing-image {
    background: #eef1fa;
    overflow: hidden;
}

.app-category-image {
    aspect-ratio: 16 / 8;
}

.app-category-image img,
.app-listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3f2a78;
    font-size: 42px;
}

.app-category-body {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-listing-body {
    padding: 16px;
    min-height: 96px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-category-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(63, 42, 120, 0.10);
    color: #3f2a78;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 38px;
}

.app-category-body h2,
.app-listing-body h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1.2;
    color: #1f2430;
}

.app-listing-card .app-listing-image {
    display: none;
}

.app-listing-thumb {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    background: #eef1fa;
    flex: 0 0 64px;
}

.app-listing-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-listing-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3f2a78;
    font-size: 22px;
}

.app-listing-copy {
    min-width: 0;
    flex: 1;
}

.app-listing-copy h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1.25;
    min-height: 42px;
}

.app-listing-copy p {
    margin: 7px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #667085;
}

.app-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 10, 30, 0.32);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 999;
}

.app-menu-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.app-menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 340px);
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(31, 23, 47, 0.14);
    transform: translateX(100%);
    transition: transform .28s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.app-menu-drawer.is-open {
    transform: translateX(0);
}

.app-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 14px;
    border-bottom: 1px solid #ecebf3;
    gap: 12px;
}

.app-menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    overflow-y: auto;
}

.app-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 1px 20px;
    border-radius: 14px;
    text-decoration: none;
    color: #1f172f;
    background: #fafafe00;
    border: 0px solid #ecebf3;
}

.app-menu-item i {
    color: #5925dc;
}

.app-menu-footer-links {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid #ececf3;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.app-menu-footer-links a {
    color: #3f2a78;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

body.menu-open {
    overflow: hidden;
}

/* =========================
   LISTING DETAIL
========================= */

.app-detail-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #ececf3;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(19, 22, 33, 0.08);
}

.app-detail-image {
    aspect-ratio: 16 / 8;
    background: #eef1fa;
}

.app-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-detail-body {
    padding: 15px;
}

.app-detail-badge-link {
    text-decoration: none;
}

.app-detail-title-row {
    margin-top: 8px;
}

.app-detail-title-row h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    color: #1f2430;
}

.app-detail-intro {
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: #667085;
}

.app-detail-actions {
    margin-top: 18px;
}

.app-detail-content {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.65;
    color: #2d3340;
}

.app-detail-content h2,
.app-detail-content h3,
.app-detail-content h4 {
    margin: 0 0 14px;
    color: #1f2430;
}

.app-detail-content p {
    margin: 0 0 14px;
}

.app-detail-content a {
    color: #0b8592;
    text-decoration: none;
    font-weight: 600;
}

.app-detail-content a:hover {
    text-decoration: underline;
}

.app-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.app-detail-content iframe {
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 14px;
}

.app-detail-content .btn,
.app-detail-content .button,
.app-detail-content button,
.app-detail-actions .btn-primary {
    background: #3f2a78;
    box-shadow: 0 10px 24px rgba(63, 42, 120, 0.24);
}

/* =========================
   LANGUAGE / GTRANSLATE
========================= */

.app-lang-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex: 0 0 44px;
    border: 0;
    border-radius: 14px;
    background: #f4f3ff;
    color: #3f2a78;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.app-lang-btn i {
    font-size: 20px;
}

.app-lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 54px;
    min-width: 180px;
    background: #fff;
    border: 1px solid #ececf3;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
    display: none;
    z-index: 1200;
    overflow: visible;
}

.app-lang-menu.open {
    display: block;
}

.app-lang-menu select,
#gtranslate_container select {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #d9ddea;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Ubuntu', sans-serif;
    background: #fff;
    color: #1f2430;
    appearance: auto !important;
    -webkit-appearance: auto !important;
    cursor: pointer;
}

#gtranslate_container {
    width: 100%;
}

#gtranslate_container option {
    color: #000;
    background: #fff;
}

/* =========================
   SPECIAL SLIDER
========================= */

.app-special-slider,
.special-slider-wrapper {
    width: 100%;
    max-width: 100%;
    grid-column: 1 / -1;
    overflow: hidden;
    min-width: 0;
    margin-bottom: 16px;
}

.special-slider-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.special-slider-track::-webkit-scrollbar {
    display: none;
}

.special-slider-track > a,
.app-special-item {
    flex: 0 0 calc(70% - 5px);
    max-width: calc(70% - 5px);
    min-width: 0;
    scroll-snap-align: start;
}

.special-slider-track img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

/* FIX SPECIAL CATEGORY FULL WIDTH */
.app-grid-break {
    display: block;
    width: 100%;
    height: 0;
}

.app-special-category {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

/* FIX CARD SLIDER */
.special-slide {
    display: block;
    flex: 0 0 calc(70% - 5px);
    max-width: calc(70% - 5px);
    min-width: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    text-decoration: none;
    color: inherit;
}

/* FIX CONTENUTO TESTO SLIDE */
.special-slide-content {
    padding: 12px 14px 14px 14px;
}

.special-slide-content small {
    display: block;
    margin-bottom: 4px;
    color: #666;
    line-height: 1.2;
}

.special-slide-content strong {
    display: block;
    line-height: 1.3;
    word-break: break-word;
    color: #111;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991px) {
    .frontend-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform .2s ease;
        z-index: 30;
    }

    .sidebar-open .sidebar {
        transform: translateX(0);
    }

    .main {
        margin-left: 0;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .card {
        padding: 18px;
        border-radius: 14px;
    }

    .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .app-page {
        padding-top: 16px;
    }
}

@media (max-width: 640px) {
    .site-container {
        padding: 0 16px;
    }

    .hero {
        padding: 24px 0 18px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .frontend-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (min-width: 768px) {
    .app-page {
        padding-top: 20px;
    }

    .app-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .app-hero h1 {
        font-size: 40px;
    }

.app-listing-card {
        grid-column: 1 / -1;
        background-color: rgb(255 255 255);
        border-color: rgb(239 239 239);
        border-style: solid;
        border-width: 1px;
        border-radius: 16px
    }

    .app-detail-body {
        padding: 16px;
    }

    .app-detail-title-row h1 {
        font-size: 36px;
    }
}
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 760px;
    z-index: 10001;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner-inner {
    background: #fff;
    border: 1px solid #ececf3;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.cookie-banner p {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #667085;
}

.cookie-banner a {
    color: #3f2a78;
    font-weight: 600;
    text-decoration: none;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* =========================================================
   SOTTOCATEGORIE (solo dentro category.php)
   ========================================================= */

.app-page .app-category-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eaecf0;
    text-decoration: none;
}

/* immagine piÃ¹ compatta */
.app-page .app-category-card .app-category-cover {
    height: 110px;
    overflow: hidden;
}

.app-page .app-category-card .app-category-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* corpo card */
.app-page .app-category-card .app-category-content {
    padding: 12px 14px; /* ðŸ‘‰ padding corretto */
    display: flex;
    align-items: center;
    gap: 10px;
}

/* icona piÃ¹ piccola e allineata */
.app-page .app-category-card .app-category-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #f2f4f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* titolo */
.app-page .app-category-card h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #101828;
}

/* ==============================
   MENU CATEGORIE COMPATTO
   ============================== */

.app-menu-group {
    display: block;
}

/* riga padre */
.app-menu-item-parent {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* link principale (nome categoria) */
.app-menu-link-main {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* chevron piccolo */
.app-menu-chevron {
    border: none;
    background: none;
    padding: 0;
    margin-left: auto;
    font-size: 12px;
    color: #98a2b3;
    cursor: pointer;
}

/* rotazione */
.app-menu-group.is-open .app-menu-chevron i {
    transform: rotate(180deg);
}

.app-menu-chevron i {
    transition: transform 0.2s ease;
}

/* submenu */
.app-submenu {
    display: none;
    padding-left: 22px;
    margin-top: 4px;
}

.app-menu-group.is-open .app-submenu {
    display: block;
}

/* sottocategorie */
.app-menu-subitem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    text-decoration: none;
    color: #667085;
}

.app-menu-subitem i {
    font-size: 12px;
}

/* ==============================
   CHEVRON ULTRA CLEAN (APP STYLE)
   ============================== */

.app-menu-chevron {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    cursor: pointer;

    /* evita effetti strani mobile */
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* icona */
.app-menu-chevron i {
    font-size: 12px;
    color: #98a2b3; /* grigio elegante */
    transition: transform 0.2s ease;
}

/* rotazione */
.app-menu-group.is-open .app-menu-chevron i {
    transform: rotate(180deg);
}

/* ðŸš« niente hover, niente active, niente focus viola */
.app-menu-chevron:hover,
.app-menu-chevron:active,
.app-menu-chevron:focus {
    background: transparent !important;
    color: inherit !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ðŸš« elimina qualsiasi stile ereditato */
.app-menu-item-parent {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* HOME HTML BLOCK */

.app-category-card > * {
    font-family: 'Ubuntu', sans-serif;
}

.app-category-card {
    padding: 0px;
    box-sizing: border-box;
}

.app-category-card > * {
    font-family: 'Ubuntu', sans-serif;
    max-width: 100%;
    overflow-wrap: break-word;
}

.app-category-card p,
.app-category-card div,
.app-category-card span {
    max-width: 100%;
}

.app-category-card p {
    margin: 0 0 12px;
    line-height: 1.6;
}

.app-category-card h1,
.app-category-card h2,
.app-category-card h3,
.app-category-card h4 {
    margin: 0 0 10px;
    line-height: 1.3;
}

.app-category-card ul,
.app-category-card ol {
    padding-left: 18px;
    margin: 0 0 12px;
}

.app-category-card li {
    margin-bottom: 6px;
}

/* SPECIAL SLIDER NAV */
.special-slider-nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center !important;
    gap: 10px;
    margin-top: 10px;
    text-align: center;
}

.special-slider-btn {
    width: 22px;
    height: 22px;
    min-height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #98a2b3;
    font-size: 18px;
    line-height: 1;
    box-shadow: none;
    cursor: pointer;
}

.special-slider-btn:hover {
    background: transparent;
    color: #3f2a78;
    transform: none;
    box-shadow: none;
}

.special-slider-counter {
    min-width: 54px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #3f2a78;
}

/* =========================================================
   HOME SEARCH
   ========================================================= */

.app-search-section {
    padding: 18px 4px 20px;
}

.app-search-heading {
    margin-bottom: 16px;
}

.app-search-heading .app-hero-badge {
    margin-bottom: 10px;
}

.app-search-heading h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.08;
    color: #1f2430;
    letter-spacing: -0.02em;
}

.app-search-heading p {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #667085;
}

.app-search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 58px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e5e7ef;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(31, 36, 48, 0.08);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.app-search-box:focus-within {
    border-color: #3f2a78;
    box-shadow:
        0 0 0 4px rgba(63, 42, 120, 0.10),
        0 16px 34px rgba(31, 36, 48, 0.10);
    transform: translateY(-1px);
}

.app-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #3f2a78;
    font-size: 18px;
    pointer-events: none;
}

#appSearchInput {
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 0 54px 0 50px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: #1f2430;
    font-family: 'Ubuntu', sans-serif;
    font-size: 16px;
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
}

#appSearchInput:focus {
    outline: none;
    border: 0;
    box-shadow: none;
}

#appSearchInput::-webkit-search-cancel-button {
    display: none;
    -webkit-appearance: none;
}

#appSearchInput::placeholder {
    color: #98a2b3;
    font-weight: 400;
}

.app-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #f3f1fa;
    color: #3f2a78;
    box-shadow: none;
}

.app-search-clear:hover,
.app-search-clear:focus {
    background: #ebe7f5;
    color: #3f2a78;
    transform: translateY(-50%);
    box-shadow: none;
}

.app-search-status {
    min-height: 0;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
    color: #667085;
}

.app-search-status:empty {
    display: none;
}

.app-search-results {
    margin-top: 14px;
}

.app-search-results[hidden] {
    display: none !important;
}

.app-search-group + .app-search-group {
    margin-top: 18px;
}

.app-search-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 2px 10px;
    font-size: 14px;
    font-weight: 700;
    color: #344054;
}

.app-search-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(63, 42, 120, 0.10);
    color: #3f2a78;
    font-size: 12px;
}

.app-search-list {
    display: grid;
    gap: 10px;
}

.app-search-result {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e9ebf2;
    border-radius: 16px;
    color: #1f2430;
    box-shadow: 0 8px 24px rgba(31, 36, 48, 0.05);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.app-search-result:hover,
.app-search-result:focus {
    transform: translateY(-2px);
    border-color: #dcd7ec;
    box-shadow: 0 14px 28px rgba(31, 36, 48, 0.09);
}

.app-search-result-media {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    overflow: hidden;
    border-radius: 15px;
    background: #f1eff8;
}

.app-search-result-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-search-result-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3f2a78;
    font-size: 20px;
}

.app-search-result-copy {
    min-width: 0;
    flex: 1;
}

.app-search-result-title {
    display: block;
    margin: 0;
    color: #1f2430;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.app-search-result-meta {
    display: block;
    margin-top: 4px;
    color: #3f2a78;
    font-size: 12px;
    font-weight: 700;
}

.app-search-result-description {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    color: #667085;
    font-size: 13px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.app-search-result-arrow {
    flex: 0 0 auto;
    color: #98a2b3;
    font-size: 13px;
}

.app-search-empty,
.app-search-error {
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e9ebf2;
    border-radius: 16px;
    text-align: center;
}

.app-search-empty i,
.app-search-error i {
    display: block;
    margin-bottom: 10px;
    color: #3f2a78;
    font-size: 25px;
}

.app-search-empty strong,
.app-search-error strong {
    display: block;
    color: #1f2430;
    font-size: 16px;
}

.app-search-empty span,
.app-search-error span {
    display: block;
    margin-top: 5px;
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
}

.app-search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 14px;
    color: #667085;
    font-size: 14px;
}

.app-search-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ded9ec;
    border-top-color: #3f2a78;
    border-radius: 50%;
    animation: appSearchSpin .7s linear infinite;
}

.app-home-content.is-searching {
    display: none;
}

@keyframes appSearchSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .app-search-section {
        padding-top: 12px;
    }

    .app-search-heading h1 {
        font-size: 27px;
    }

    .app-search-heading p {
        font-size: 13px;
    }

    .app-search-box,
    #appSearchInput {
        min-height: 56px;
    }

    #appSearchInput {
        font-size: 15px;
    }

    .app-search-result {
        padding: 10px;
    }

    .app-search-result-media {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }
}

@media (min-width: 768px) {
    .app-search-section {
        padding-top: 18px;
    }

    .app-search-heading h1 {
        font-size: 36px;
    }
}

/* =========================================================
   SAN TEODORO WEATHER WIDGET
   ========================================================= */

.weather-widget {
    margin: 0 4px 16px;
    padding: 16px;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.30), transparent 30%),
        linear-gradient(135deg, #38216d 0%, #6847a5 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 16px 34px rgba(63, 42, 120, 0.22);
}

.weather-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.weather-widget-title {
    min-width: 0;
}

.weather-widget-kicker {
    display: block;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.weather-widget-title h2 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.1;
}

.weather-widget-current {
    flex: 0 0 auto;
    min-width: 68px;
    text-align: right;
}

.weather-current-value {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}

.weather-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(72px, 1fr));
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 6px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.weather-days::-webkit-scrollbar {
    display: none;
}

.weather-day {
    min-width: 72px;
    height: 96px;
    padding: 8px 5px 7px;
    display: grid;
    grid-template-rows: 15px 48px 18px;
    align-items: center;
    justify-items: center;
    scroll-snap-align: start;
    text-align: center;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    backdrop-filter: blur(8px);
}

.weather-day.is-today {
    background: rgba(255, 255, 255, 0.21);
    border-color: rgba(255, 255, 255, 0.28);
}

.weather-day-name {
    display: block;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 700;
    line-height: 15px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.weather-day.is-today .weather-day-name {
    color: #fff;
}

.weather-icon {
    position: relative;
    width: 44px;
    height: 44px;
    margin: 0;
}

/* Sun */
.weather-sun {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffd45a;
    box-shadow: 0 0 14px rgba(255, 212, 90, 0.40);
    animation: weatherSunPulse 2.8s ease-in-out infinite;
}

/*
 * Both ray layers use exactly the same 44 × 44 box as the icon.
 * This keeps their rotation point perfectly centred on the sun.
 */
.weather-rays,
.weather-rays-extra {
    position: absolute;
    inset: 0;
    width: 44px;
    height: 44px;
    transform-origin: 22px 22px;
    animation: weatherSunSpin 18s linear infinite;
}

.weather-rays::before,
.weather-rays::after,
.weather-rays-extra::before,
.weather-rays-extra::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 21px;
    width: 2px;
    height: 38px;
    border-radius: 2px;
    background:
        linear-gradient(
            to bottom,
            #ffd45a 0 5px,
            transparent 5px 33px,
            #ffd45a 33px 38px
        );
    transform-origin: 1px 19px;
}

.weather-rays::before {
    transform: rotate(0deg);
}

.weather-rays::after {
    transform: rotate(90deg);
}

.weather-rays-extra::before {
    transform: rotate(45deg);
}

.weather-rays-extra::after {
    transform: rotate(135deg);
}

/* Cloud */
.weather-cloud {
    position: absolute;
    left: 7px;
    bottom: 9px;
    width: 31px;
    height: 13px;
    border-radius: 10px;
    background: #f4f7ff;
    box-shadow: 0 5px 10px rgba(20, 15, 45, 0.14);
    animation: weatherCloudDrift 3.6s ease-in-out infinite;
}

.weather-cloud::before,
.weather-cloud::after {
    content: "";
    position: absolute;
    bottom: 4px;
    border-radius: 50%;
    background: inherit;
}

.weather-cloud::before {
    left: 5px;
    width: 14px;
    height: 14px;
}

.weather-cloud::after {
    right: 4px;
    width: 18px;
    height: 18px;
}

/* Partly cloudy */
.weather-icon.partly .weather-sun {
    top: 7px;
    left: 7px;
    width: 17px;
    height: 17px;
}

.weather-icon.partly .weather-rays,
.weather-icon.partly .weather-rays-extra {
    top: 0;
    left: 0;
    width: 31px;
    height: 31px;
    transform-origin: 15.5px 15.5px;
}

.weather-icon.partly .weather-rays::before,
.weather-icon.partly .weather-rays::after,
.weather-icon.partly .weather-rays-extra::before,
.weather-icon.partly .weather-rays-extra::after {
    top: 2px;
    left: 14.5px;
    height: 27px;
    background:
        linear-gradient(
            to bottom,
            #ffd45a 0 4px,
            transparent 4px 23px,
            #ffd45a 23px 27px
        );
    transform-origin: 1px 13.5px;
}

.weather-icon.partly .weather-cloud {
    left: 11px;
    bottom: 7px;
}

/* Rain */
.weather-rain {
    position: absolute;
    left: 10px;
    bottom: -1px;
    width: 25px;
    height: 14px;
    overflow: hidden;
}

.weather-rain::before,
.weather-rain::after {
    content: "";
    position: absolute;
    top: -4px;
    width: 2px;
    height: 8px;
    border-radius: 2px;
    background: #8ed8ff;
    box-shadow: 8px 3px 0 #8ed8ff, 16px 0 0 #8ed8ff;
    transform: rotate(14deg);
    animation: weatherRainFall 1s linear infinite;
}

.weather-rain::after {
    top: -10px;
    left: 4px;
    animation-delay: .5s;
}

/* Snow */
.weather-snow {
    position: absolute;
    left: 10px;
    bottom: 0;
    width: 27px;
    height: 14px;
    color: #fff;
    font-size: 10px;
    letter-spacing: 4px;
    animation: weatherSnowFall 2s ease-in-out infinite;
}

/* Storm */
.weather-lightning {
    position: absolute;
    left: 19px;
    bottom: -2px;
    width: 8px;
    height: 17px;
    background: #ffd45a;
    clip-path: polygon(44% 0, 100% 0, 62% 42%, 95% 42%, 23% 100%, 40% 55%, 5% 55%);
    animation: weatherLightning 2.6s steps(1) infinite;
}

/* Fog */
.weather-fog {
    position: absolute;
    left: 5px;
    top: 14px;
    width: 35px;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow:
        4px 8px 0 rgba(255, 255, 255, 0.68),
        -1px 16px 0 rgba(255, 255, 255, 0.78);
    animation: weatherFogMove 3.2s ease-in-out infinite;
}

.weather-temperatures {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin: 0;
    line-height: 18px;
    white-space: nowrap;
}

.weather-temp-max {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.weather-temp-min {
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    font-weight: 500;
}

.weather-loading,
.weather-error {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 90px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.weather-loading-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    animation: weatherLoading 1s ease-in-out infinite;
}

.weather-widget-footer {
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 9px;
    text-align: right;
}

@keyframes weatherSunSpin {
    to { transform: rotate(360deg); }
}

@keyframes weatherSunPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes weatherCloudDrift {
    0%, 100% { transform: translateX(-1px); }
    50% { transform: translateX(2px); }
}

@keyframes weatherRainFall {
    from { transform: translateY(0) rotate(14deg); opacity: 0; }
    30% { opacity: 1; }
    to { transform: translateY(18px) rotate(14deg); opacity: 0; }
}

@keyframes weatherSnowFall {
    0%, 100% { transform: translateY(-2px); opacity: .65; }
    50% { transform: translateY(3px); opacity: 1; }
}

@keyframes weatherLightning {
    0%, 86%, 92%, 100% { opacity: 0; }
    87%, 90% { opacity: 1; }
}

@keyframes weatherFogMove {
    0%, 100% { transform: translateX(-2px); opacity: .75; }
    50% { transform: translateX(3px); opacity: 1; }
}

@keyframes weatherLoading {
    0%, 100% { transform: scale(.75); opacity: .45; }
    50% { transform: scale(1); opacity: 1; }
}

@media (max-width: 620px) {
    .weather-days {
        grid-template-columns: repeat(7, 72px);
        gap: 7px;
    }
}

@media (max-width: 480px) {
    .weather-widget {
        margin-left: 0;
        margin-right: 0;
        padding: 14px 12px;
        border-radius: 18px;
    }

    .weather-current-value {
        font-size: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .weather-widget *,
    .weather-widget *::before,
    .weather-widget *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   SAN TEODORO APP — HOME HEADER / HERO V2
   Scoped to .home-screen so inner pages keep their compact UI.
   ========================================================= */

.app-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.home-screen .app-header {
    position: sticky !important;
    top: 0;
    z-index: 9999;
    padding:
        calc(8px + env(safe-area-inset-top))
        10px
        0;
    background: transparent;
    pointer-events: none;
}

.home-screen .app-header-inner {
    max-width: 740px;
    min-height: 58px;
    padding: 0 10px 0 14px;
    border: 1px solid rgba(255,255,255,.58);
    border-radius: 20px;
    background: rgba(255,255,255,.82);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 12px 32px rgba(23, 54, 76, .12);
    pointer-events: auto;
}

.home-screen .app-logo img {
    height: 34px;
}

.home-screen .app-lang-btn,
.home-screen .app-menu-toggle {
    width: 42px;
    height: 42px;
    min-width: 42px;
    flex-basis: 42px;
    border-radius: 14px;
    box-shadow: none;
}

.home-screen .app-lang-btn {
    background: rgba(255,255,255,.76);
    color: #087b83;
    border: 1px solid rgba(8,123,131,.10);
}

.home-screen .app-menu-toggle {
    background: #087b83;
    color: #fff;
    box-shadow: 0 8px 18px rgba(8,123,131,.22);
}

.home-screen .app-page {
    max-width: 760px;
    margin: -66px auto 0;
    padding: 0 10px 28px;
}

.home-hero {
    position: relative;
    min-height: 350px;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    padding: 96px 18px 20px;
    background:
    linear-gradient(145deg, rgb(4 213 255 / 64%) 0%, rgba(0, 86, 94, 0.43) 48%, rgba(0, 60, 72, 0.22) 100%), url(https://www.santeodoro.app/wp-content/uploads/2026/03/La_Cinta_1MB.jpg)
	;

	background-size: auto 100%;
	background-position: center center;
	background-repeat: no-repeat;
    box-shadow: 0 20px 46px rgba(19,91,96,.18);
    isolation: isolate;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(circle at 78% 24%, rgba(255,255,255,.28), transparent 24%),
        linear-gradient(180deg, transparent 55%, rgba(0,72,80,.14) 100%);
}

.home-hero-backdrop,
.home-hero-glow,
.home-hero-wave {
    position: absolute;
    pointer-events: none;
}

.home-hero-backdrop {
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.home-hero-glow {
    border-radius: 50%;
    filter: blur(2px);
}

.home-hero-glow-a {
    width: 220px;
    height: 220px;
    top: 58px;
    right: -70px;
    background: rgba(255,255,255,.13);
}

.home-hero-glow-b {
    width: 160px;
    height: 160px;
    top: 105px;
    left: -85px;
    background: rgba(255,236,170,.12);
}

.home-hero-wave {
    left: -8%;
    width: 116%;
    border-radius: 50%;
    transform: rotate(-4deg);
}

.home-hero-wave-a {
    height: 118px;
    bottom: -57px;
    background: rgba(255,255,255,.14);
}

.home-hero-wave-b {
    height: 92px;
    bottom: -61px;
    left: -3%;
    background: rgba(255,255,255,.18);
    transform: rotate(4deg);
}

.home-hero-content {
    position: relative;
    z-index: 1;
}

.home-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 29px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.24);
    color: rgba(255,255,255,.94);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    backdrop-filter: blur(5px);
}

.home-hero-copy {
    margin-top: 13px;
    color: #fff;
}

.home-hero-eyebrow {
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.82);
}

.home-hero-copy h1 {
    margin: 0;
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1;
    letter-spacing: -.045em;
    color: #fff;
}

.home-hero-copy p {
    max-width: 540px;
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255,255,255,.88);
}

.home-search-panel {
    position: relative;
    margin-top: 18px;
}

.home-search-box {
    min-height: 57px;
    border-radius: 18px;
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(255,255,255,.95);
    box-shadow: 0 14px 28px rgba(4,71,77,.18);
}

.home-screen .home-search-box .app-search-icon {
    color: #087b83;
}

.home-screen .home-search-box input {
    min-height: 55px;
    font-size: 15px;
    background: transparent !important;
}

.home-screen .home-search-box input:focus {
    border-color: transparent;
    box-shadow: none;
}

.home-screen .app-search-status {
    color: rgba(255,255,255,.88);
    padding-left: 4px;
}

.home-screen .app-search-results {
    margin-top: 9px;
    border-radius: 18px;
    box-shadow: 0 20px 44px rgba(0,56,64,.22);
}

.home-hero-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 8px;
    margin-top: 14px;
}

.home-hero-shortcuts a {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 14px;
    color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(5px);
    transition: transform .16s ease, background .16s ease;
}

.home-hero-shortcuts a:active {
    transform: scale(.98);
}

.home-hero-shortcuts i {
    font-size: 13px;
}

.home-screen .app-home-content {
    position: relative;
    z-index: 3;
    margin-top: 8px;
    padding: 0 2px;
}

/* Drawer visual refresh; keeps existing dynamic PHP/category logic. */
.app-menu-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.app-menu-brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: linear-gradient(145deg,#087b83,#23a4a3);
    color: #fff;
    box-shadow: 0 7px 16px rgba(8,123,131,.20);
}

.app-menu-brand strong,
.app-menu-brand small {
    display: block;
}

.app-menu-brand strong {
    font-size: 15px;
    line-height: 1.15;
    color: #17212b;
}

.app-menu-brand small {
    margin-top: 3px;
    font-size: 11px;
    color: #7a8492;
    font-weight: 500;
}

.app-menu-drawer {
    border-radius: 26px 0 0 26px;
    overflow: hidden;
}

.app-menu-head {
    padding: 14px 14px 12px 16px;
    background: linear-gradient(180deg,#ffffff 0%,#fbfdfd 100%);
}

.app-menu-item {
    border-radius: 15px;
}

.app-menu-item i,
.app-menu-link-main i {
    color: #087b83;
}

.app-menu-close {
    background: #eef8f7;
    color: #087b83;
}

@media (max-width: 480px) {
    .home-screen .app-header {
        padding-left: 8px;
        padding-right: 8px;
    }

    .home-screen .app-page {
        padding-left: 0;
        padding-right: 0;
    }

    .home-hero {
        min-height: 338px;
        border-radius: 0 0 26px 26px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .home-screen .app-home-content {
        padding-left: 10px;
        padding-right: 10px;
    }
}
/* TEST FOTO HERO PULITA */
.home-screen .home-hero::after,
.home-screen .home-hero-backdrop {
    display: none !important;
}
/* FIX COOKIE BANNER CLICK V2 */
.home-screen .cookie-banner,
.home-screen .cookie-banner * {
    pointer-events: auto !important;
}
/* ---------------------------------------------------------
   TWO COLUMN CATEGORY / LISTING CARDS
--------------------------------------------------------- */

.app-cards-grid > .app-category-card,
.app-cards-grid > .app-listing-card {
    grid-column: auto;
    width: 100%;
}


/* =========================================================
   SAN TEODORO APP — NOTIFICATION CTA + SMART NOTIFICATION PAGE
   Append to /app/assets/css/style.css
   ========================================================= */


/* ---------- HOME CTA ---------- */

.home-notify-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 14px 0 18px;
    padding: 14px 14px;
    border: 1px solid rgba(8, 123, 131, .12);
    border-radius: 20px;
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.98),
            rgba(238,249,249,.96)
        );
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
    color: #0f172a;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.home-notify-cta:active {
    transform: scale(.985);
}

.home-notify-cta-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 16px;
    background: #087b83;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(8,123,131,.22);
}

.home-notify-cta-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.home-notify-cta-copy strong {
    font-size: 15px;
    line-height: 1.2;
    color: #0f172a;
}

.home-notify-cta-copy small {
    font-size: 12px;
    line-height: 1.35;
    color: #64748b;
}

.home-notify-cta-action {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #087b83;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.home-notify-cta.is-active {
    background:
        linear-gradient(
            135deg,
            rgba(240,253,250,.98),
            rgba(236,253,245,.98)
        );
}

.home-notify-cta.is-active .home-notify-cta-icon {
    background: #15803d;
}

.home-notify-cta.is-active .home-notify-cta-action {
    color: #15803d;
    font-size: 20px;
}

.home-notify-cta.is-blocked .home-notify-cta-icon {
    background: #b45309;
}

.home-notify-cta.is-blocked .home-notify-cta-action {
    color: #b45309;
}


/* ---------- SMART NOTIFICATION PAGE ---------- */

.notifications-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 18px 12px 34px;
}

.notify-hero {
    position: relative;
    overflow: hidden;
    padding: 30px 20px 28px;
    border-radius: 28px;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(255,255,255,.18),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #075f68 0%,
            #087b83 52%,
            #0d9488 100%
        );
    box-shadow: 0 18px 42px rgba(8,123,131,.20);
}

.notify-hero-icon {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 14px;
    border-radius: 22px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.22);
    font-size: 27px;
    backdrop-filter: blur(8px);
}

.notify-kicker,
.notify-label {
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.notify-kicker {
    color: rgba(255,255,255,.72);
}

.notify-hero h1 {
    margin: 7px 0 9px;
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.05;
}

.notify-hero p {
    max-width: 520px;
    margin: 0 auto;
    color: rgba(255,255,255,.88);
    font-size: 14px;
    line-height: 1.55;
}

.notify-device-card,
.notify-how-card,
.notify-benefits {
    margin-top: 14px;
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(15,23,42,.07);
    box-shadow: 0 10px 30px rgba(15,23,42,.06);
}

.notify-device-top,
.notify-section-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}

.notify-device-icon,
.notify-section-heading > i {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 16px;
    background: rgba(8,123,131,.10);
    color: #087b83;
    font-size: 21px;
}

.notify-label {
    margin-bottom: 5px;
    color: #94a3b8;
}

.notify-device-top h2,
.notify-section-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.2;
}

.notify-device-top p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.notify-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 17px;
    padding: 10px 12px;
    border-radius: 13px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
}

.notify-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #94a3b8;
}

.notify-status[data-state="granted"] {
    background: #f0fdf4;
    color: #166534;
}

.notify-status[data-state="granted"] .notify-status-dot {
    background: #22c55e;
}

.notify-status[data-state="denied"] {
    background: #fff7ed;
    color: #9a3412;
}

.notify-status[data-state="denied"] .notify-status-dot {
    background: #f97316;
}

.notify-main-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    margin-top: 13px;
    padding: 12px 16px;
    border: 0;
    border-radius: 16px;
    background: #087b83;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 10px 24px rgba(8,123,131,.22);
    cursor: pointer;
}

.notify-main-button.is-active {
    background: #15803d;
    box-shadow: 0 10px 24px rgba(21,128,61,.18);
}

.notify-main-button.is-blocked {
    background: #b45309;
    box-shadow: 0 10px 24px rgba(180,83,9,.18);
}

.notify-main-button.is-manual {
    background: #475569;
    box-shadow: none;
}

.notify-main-button:disabled {
    cursor: default;
    opacity: 1;
}

.notify-button-note {
    min-height: 16px;
    margin-top: 9px;
    text-align: center;
    color: #64748b;
    font-size: 11px;
    line-height: 1.4;
}

.notify-steps {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.notify-steps li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px;
    border-radius: 15px;
    background: #f8fafc;
}

.notify-steps li > span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 10px;
    background: #087b83;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.notify-steps strong {
    display: block;
    margin-top: 1px;
    color: #0f172a;
    font-size: 13px;
}

.notify-steps p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.notify-benefits h2 {
    margin: 0 0 13px;
    color: #0f172a;
    font-size: 17px;
}

.notify-benefit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.notify-benefit {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 58px;
    padding: 11px;
    border-radius: 14px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    line-height: 1.3;
}

.notify-benefit i {
    color: #087b83;
    font-size: 17px;
}

.notify-back-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    margin: 20px auto 0;
    padding: 10px 14px;
    color: #64748b;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

@media (max-width: 420px) {
    .home-notify-cta {
        gap: 10px;
        padding: 12px;
    }

    .home-notify-cta-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 14px;
    }

    .home-notify-cta-action {
        font-size: 10px;
    }

    .notify-benefit-grid {
        grid-template-columns: 1fr;
    }
}


/* FIX: menu items below sticky app header */
.app-menu-list {
    padding-top: 50px;
}

/* =========================================================
   GLOBAL SEARCH — GROUPED RESULTS PANEL
   ========================================================= */

.app-search-results {
    margin-top: 14px;
}

/* WHOLE RESULT GROUP */
.app-search-group {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 24px;
    background: rgba(255,255,255,.96);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow:
        0 16px 36px rgba(15,23,42,.13),
        0 2px 8px rgba(15,23,42,.05);
}

.app-search-group + .app-search-group {
    margin-top: 16px;
}


/* GROUP HEADER — EVENTI / ATTIVITÀ / ETC */
.app-search-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin: 0;
    padding: 14px 17px;

    background:
        linear-gradient(
            135deg,
            rgba(247,245,252,.98),
            rgba(255,255,255,.98)
        );

    border-bottom: 1px solid rgba(63,42,120,.10);

    color: #3f2a78;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 700;
}


/* NUMBER BADGE */
.app-search-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 30px;
    height: 30px;
    padding: 0 9px;

    border-radius: 10px;

    background: rgba(63,42,120,.12);
    color: #3f2a78;

    font-size: 13px;
    font-weight: 700;
}


/* RESULTS INSIDE PANEL */
.app-search-list {
    display: block;
}


/* INDIVIDUAL RESULT = ROW, NOT SEPARATE CARD */
.app-search-result {
    display: flex;
    align-items: center;
    gap: 13px;

    min-width: 0;
    padding: 12px 14px;

    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(15,23,42,.08);
    border-radius: 0;

    color: #1f2430;

    box-shadow: none;

    transition:
        background .16s ease,
        transform .16s ease;
}


/* NO LINE AFTER LAST ITEM */
.app-search-result:last-child {
    border-bottom: 0;
}


/* TOUCH / HOVER */
.app-search-result:hover,
.app-search-result:focus {
    transform: none;
    background: rgba(63,42,120,.045);
    border-color: rgba(15,23,42,.08);
    box-shadow: none;
}


/* IMAGE */
.app-search-result-media {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;

    overflow: hidden;

    border-radius: 15px;

    background: #f1eff8;
}


/* TITLE */
.app-search-result-title {
    font-size: 16px;
    line-height: 1.22;
    font-weight: 700;
}


/* META — Evento · data · location */
.app-search-result-meta {
    margin-top: 3px;
    color: #3f2a78;
    font-weight: 700;
}


/* DESCRIPTION */
.app-search-result-description {
    margin-top: 4px;
    color: #667085;
    line-height: 1.38;
}


/* ARROW */
.app-search-result-arrow {
    margin-left: 4px;
    color: #98a2b3;
    font-size: 15px;
}


/* SMALL PHONES */
@media (max-width: 430px) {

    .app-search-group {
        border-radius: 21px;
    }

    .app-search-group-title {
        padding: 13px 14px;
        font-size: 16px;
    }

    .app-search-result {
        gap: 11px;
        padding: 11px 12px;
    }

    .app-search-result-media {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        border-radius: 14px;
    }

    .app-search-result-title {
        font-size: 15px;
    }

    .app-search-result-meta,
    .app-search-result-description {
        font-size: 12px;
    }
}
