/*
Theme Name: CasinoShow
Description: Tema CasinoShow convertito dal sito Laravel (Tailwind precompilato in app.css).
Version: 1.1
Text Domain: casinoshow
*/

/*
 * Rifinitura sopra app.css (Tailwind originale): stessa identità — blu notte, oro, Merriweather —
 * con dettagli più curati. Solo CSS che agisce sulle classi esistenti, nessun cambio di contenuti.
 */

:root {
    --cs-night: #111827;
    --cs-night-2: #1f2937;
    --cs-ink: #101213;
    --cs-gold: #f6e27b;
    --cs-gold-soft: rgb(246 226 123 / 0.35);
    --cs-gold-faint: rgb(246 226 123 / 0.12);
    --cs-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[x-cloak] {
    display: none !important;
}

/* ---------- Superfici del browser ---------- */

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--cs-gold-soft) var(--cs-ink);
    -webkit-text-size-adjust: 100%;
}

body {
    caret-color: var(--cs-gold);
    text-rendering: optimizeLegibility;
    font-kerning: normal;
}

::selection {
    background: var(--cs-gold);
    color: var(--cs-ink);
}

:focus-visible {
    outline: 2px solid var(--cs-gold);
    outline-offset: 3px;
    border-radius: 2px;
}

a {
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
}

/* ---------- Tipografia ---------- */

h1, h2, h3, h4 {
    text-wrap: balance;
}

h1, .like-h1 {
    letter-spacing: -0.01em;
}

p, li {
    text-wrap: pretty;
}

/* Testo giustificato: con la sillabazione italiana spariscono i "buchi" tra le parole su mobile. */
.text-justify {
    hyphens: auto;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    margin: 0;
    padding-inline: 1rem;
    /* niente backdrop-filter: renderebbe l'header il riferimento del menu mobile `fixed` che contiene */
    background: rgb(17 24 39 / 0.97);
    border-bottom: 1px solid var(--cs-gold-faint);
}

.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* Menu desktop dallo stesso breakpoint dell'hamburger (prima tra 768 e 1280px comparivano entrambi). */
@media (max-width: 1279px) {
    .site-nav.md\:flex {
        display: none;
    }
}

/* Sottolineatura oro che si allarga al passaggio. */
.site-nav > li > a.font-poppins {
    padding-block: 0.35rem;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: color 0.2s, background-size 0.35s var(--cs-ease-out);
}

.site-nav > li > a.font-poppins:hover,
.site-nav > li:focus-within > a.font-poppins {
    color: var(--cs-gold);
    background-size: 100% 1px;
}

/* Sottomenu: apribili anche da tastiera, con una comparsa morbida. */
.site-nav .group:focus-within > div.hidden {
    display: block;
}

.site-nav .group:hover > div.hidden,
.site-nav .group:focus-within > div.hidden {
    animation: cs-drop 0.22s var(--cs-ease-out) both;
}

.site-nav .group > div > div {
    border-color: var(--cs-gold-faint);
    border-radius: 4px;
    box-shadow: 0 24px 48px -16px rgb(0 0 0 / 0.7);
}

.site-nav .group > div a.block {
    border-radius: 3px;
    transition: background-color 0.15s, color 0.15s;
}

@keyframes cs-drop {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}

/* Menu mobile */
#navbar-menu-small .navbar-backdrop {
    background: rgb(0 0 0 / 0.6);
    opacity: 1;
}

#navbar-menu-small > nav {
    border-right-color: var(--cs-gold-faint);
}

/* ---------- Bottoni (riempimento a scorrimento originale) ---------- */

a.relative.group.overflow-hidden {
    font-family: Poppins, sans-serif;
    letter-spacing: 0.04em;
    border-radius: 2px;
    box-shadow: 0 12px 28px -14px rgb(0 0 0 / 0.75);
    transition: color 0.3s, box-shadow 0.3s, transform 0.3s var(--cs-ease-out);
}

a.relative.group.overflow-hidden:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px -14px rgb(0 0 0 / 0.85);
}

a.relative.group.overflow-hidden > div.absolute {
    transition-timing-function: var(--cs-ease-out);
}

a.relative.group.inline-block.overflow-hidden {
    padding: 0.85rem 1.6rem;
}

/* ---------- Slider home ---------- */

.swiper-container {
    height: 65vh;
    min-height: 420px;
    width: 100%;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Velo scuro in basso: la didascalia resta leggibile su qualsiasi foto. */
.swiper-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(16 18 19 / 0.75) 0%, rgb(16 18 19 / 0.15) 45%, rgb(16 18 19 / 0) 70%);
    pointer-events: none;
}

.swiper-slide .caption {
    position: absolute;
    bottom: 15%;
    z-index: 1;
}

.swiper-slide .slider-shadow {
    font-size: clamp(1.6rem, 1.1rem + 2vw, 2.75rem);
    line-height: 1.2;
    max-width: 30ch;
    margin-inline: auto;
    text-wrap: balance;
}

/* L'unico movimento "firmato": la didascalia della slide attiva emerge dal velo. */
.swiper-slide-active .slider-shadow {
    animation: cs-rise 1.4s var(--cs-ease-out) 0.25s both;
}

@keyframes cs-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(6px);
    }
}

/* ---------- Intestazione delle pagine ---------- */

.bg-secondary.w-full.py-10[style*="images/header"] {
    position: relative;
    isolation: isolate;
    padding-block: clamp(2.5rem, 6vw, 5rem);
}

.bg-secondary.w-full.py-10[style*="images/header"]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgb(17 24 39 / 0.35), rgb(17 24 39 / 0.7));
}

.bg-secondary.w-full.py-10[style*="images/header"] > h1 {
    border-block: 1px solid var(--cs-gold-soft);
    text-shadow: 0 2px 18px rgb(0 0 0 / 0.55);
}

.bg-secondary.w-full.py-10[style*="images/header"] > h1 > span:nth-child(2) {
    color: var(--cs-gold);
}

/* ---------- Contenuti delle pagine ---------- */

.col-span-2 ul {
    list-style: disc;
    padding-left: 1.15rem;
}

.col-span-2 ul ul {
    list-style: circle;
}

.col-span-2 li::marker {
    color: var(--cs-gold);
}

img.rounded-xl,
img.rounded-lg {
    box-shadow: 0 24px 48px -28px rgb(0 0 0 / 0.9);
}

.bg-light {
    border: 1px solid var(--cs-gold-faint);
    border-radius: 6px;
}

hr.border-secondary {
    border-color: var(--cs-gold-soft);
}

/* Card servizi in home: il viraggio in grigio era a scatti. */
img.grayscale,
.group img.rounded-lg {
    transition: filter 0.45s var(--cs-ease-out);
}

/* ---------- Form prenotazione ---------- */

.booking-form .bg-casino {
    color-scheme: dark; /* icone di data/ora/select visibili sul fondo scuro */
    padding: 0.7rem 0.8rem;
    border-color: rgb(255 255 255 / 0.35);
    border-radius: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.booking-form .bg-casino:hover {
    border-color: rgb(255 255 255 / 0.6);
}

.booking-form .bg-casino:focus {
    outline: none;
    border-color: var(--cs-gold);
    box-shadow: 0 0 0 3px var(--cs-gold-faint);
}

.booking-form input[type="checkbox"] {
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.booking-form input[type="checkbox"]:checked {
    border-color: var(--cs-gold);
    background: var(--cs-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23101213' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E") center / 80% no-repeat;
}

.booking-form button[type="submit"] {
    font-family: Poppins, sans-serif;
    letter-spacing: 0.03em;
    padding: 0.85rem 2rem;
    border-color: var(--cs-gold);
    background: var(--cs-gold);
    transition: background-color 0.2s, transform 0.3s var(--cs-ease-out);
}

.booking-form button[type="submit"]:hover {
    background: #fff;
    transform: translateY(-1px);
}

/* ---------- Gallery ---------- */

a[data-fslightbox] {
    transition: filter 0.3s, transform 0.4s var(--cs-ease-out), box-shadow 0.4s;
}

a[data-fslightbox]:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 40px -24px rgb(0 0 0 / 0.9);
}

/* ---------- Footer ---------- */

.site-footer h3.font-hind {
    color: var(--cs-gold);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-footer a.text-white.hover\:text-gray-400 {
    transition: color 0.2s;
}

.site-footer a.text-white.hover\:text-gray-400:hover {
    color: var(--cs-gold);
}

/* Icone social nella palette del sito, non nei colori dei brand. */
.site-footer .rounded-full.w-12.h-12 {
    background: var(--cs-gold-faint);
    box-shadow: inset 0 0 0 1px var(--cs-gold-soft);
}

.site-footer .rounded-full.w-12.h-12 path {
    fill: var(--cs-gold);
}

.site-footer .group.rounded-full:hover {
    background: var(--cs-night-2);
}

/* ---------- Movimento ridotto ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        transition-duration: 0.01ms !important;
    }
}
