/**
 * TAI CHI — custom.css
 * Joomla 5.4.4 | YOOtheme Pro
 *
 * CSS supplementare caricato automaticamente dal child theme.
 * Contiene micro-dettagli non esprimibili in Less/variabili UIkit.
 *
 * NOTA: @import url() deve stare PRIMA di qualsiasi altra regola CSS.
 * I font vengono caricati qui invece che via PHP/events per massima
 * compatibilità con tutte le versioni di YOOtheme Pro.
 */

/* ── Google Fonts ─────────────────────────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap");

/* ═══════════════════════════════════════════════════════
   1. TIPOGRAFIA — raffinamenti
═══════════════════════════════════════════════════════ */

/* Evita orfani nei paragrafi */
p { text-wrap: pretty; }

/* Headings: ligature tipografiche attivate */
h1, h2, h3, h4,
.uk-h1, .uk-h2, .uk-h3, .uk-h4 {
    font-feature-settings: "liga" 1, "kern" 1, "swsh" 1;
    text-rendering: optimizeLegibility;
}

/* Numero in stile old-style nelle descrizioni */
.uk-text-meta,
.uk-article-meta {
    font-variant-numeric: oldstyle-nums;
    letter-spacing: 0.03em;
}


/* ═══════════════════════════════════════════════════════
   2. NAVBAR — dettagli sticky e scroll
═══════════════════════════════════════════════════════ */

/* Transizione fluida quando la navbar diventa sticky */
.uk-navbar-sticky {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 1px 0 0 rgba(28, 26, 23, 0.08);
}

/* Logo: spaziatura lettering */
.uk-navbar-item.uk-logo {
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 300;
}


/* ═══════════════════════════════════════════════════════
   3. HERO / SLIDESHOW
═══════════════════════════════════════════════════════ */

/* Overlay sfumatura bassa per garantire leggibilità testo */
.tc-hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(28, 26, 23, 0) 40%,
        rgba(28, 26, 23, 0.55) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Slideshow: frecce di navigazione sottili */
.uk-slidenav {
    padding: 12px;
    border: 1px solid rgba(168, 131, 58, 0.5);
    transition: border-color 0.25s, background 0.25s;
}
.uk-slidenav:hover {
    border-color: #A8833A;
    background: rgba(168, 131, 58, 0.08);
}

/* Dotnav centrata e con spazio */
.uk-slideshow-nav {
    margin-top: 24px;
}


/* ═══════════════════════════════════════════════════════
   4. SEZIONI — dettagli visivi
═══════════════════════════════════════════════════════ */

/* Separatore decorativo tra sezioni (classe applicabile nel builder) */
.tc-section-divider {
    width: 48px;
    height: 1px;
    background: #A8833A;
    margin: 0 auto 40px;
}

/* Sezione con sfondo inchiostro scuro */
.uk-section-secondary {
    --uk-inverse: light;
}

/* Padding extra per le sezioni XL su desktop */
@media (min-width: 1200px) {
    .uk-section-xlarge {
        padding-top: 180px;
        padding-bottom: 180px;
    }
}


/* ═══════════════════════════════════════════════════════
   5. CARD / GRIGLIA
═══════════════════════════════════════════════════════ */

/* Card hover: leggero lift + bordo oro */
.uk-card-default {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s ease;
    border: 1px solid transparent;
}
.uk-card-default:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(28, 26, 23, 0.1);
    border-color: rgba(168, 131, 58, 0.25);
}

/* Immagine card: overflow nascosto per crop pulito */
.uk-card .uk-card-media-top {
    overflow: hidden;
}
.uk-card .uk-card-media-top img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.uk-card:hover .uk-card-media-top img {
    transform: scale(1.04);
}


/* ═══════════════════════════════════════════════════════
   6. BOTTONI — micro-animazioni
═══════════════════════════════════════════════════════ */

.uk-button {
    position: relative;
    overflow: hidden;
    transition: color 0.25s, background-color 0.25s, border-color 0.25s,
                box-shadow 0.25s;
}

/* Linea sottolineatura animata per link testuali */
.uk-button-text {
    position: relative;
}
.uk-button-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}
.uk-button-text:hover::after {
    width: 100%;
}


/* ═══════════════════════════════════════════════════════
   7. FORM
═══════════════════════════════════════════════════════ */

/* Label float-style: maiuscoletto, spaziato */
.uk-form-label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7A7167;
    margin-bottom: 6px;
    display: block;
}

/* Focus ring oro */
.uk-input:focus,
.uk-select:focus,
.uk-textarea:focus {
    outline: none;
    border-color: #A8833A;
    box-shadow: 0 0 0 3px rgba(168, 131, 58, 0.12);
}


/* ═══════════════════════════════════════════════════════
   8. FOOTER
═══════════════════════════════════════════════════════ */

/* Footer scuro con separatore oro sottile in alto */
#tm-footer,
.tc-footer {
    border-top: 1px solid rgba(168, 131, 58, 0.3);
}

.tc-footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 300;
    opacity: 0.9;
}

.tc-footer-tagline {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7A7167;
    margin-top: 4px;
}

/* Link footer */
.tc-footer a {
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.tc-footer a:hover {
    opacity: 1;
    color: #A8833A;
}


/* ═══════════════════════════════════════════════════════
   9. UTILITY CLASSES CUSTOM
═══════════════════════════════════════════════════════ */

/* Overline (etichetta sopra il titolo) */
.tc-overline {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #A8833A;
    display: block;
    margin-bottom: 14px;
}

/* Linea decorativa verticale (usata nelle quote/stat) */
.tc-line-left {
    border-left: 2px solid #A8833A;
    padding-left: 20px;
}

/* Numero grande (es. statistiche) */
.tc-stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1;
    color: #A8833A;
}

/* Tag / badge */
.tc-tag {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid #A8833A;
    color: #A8833A;
    line-height: 1.5;
}

/* Immagine con cornice sottile offset */
.tc-framed {
    position: relative;
}
.tc-framed::before {
    content: '';
    position: absolute;
    inset: 12px -12px -12px 12px;
    border: 1px solid rgba(168, 131, 58, 0.35);
    pointer-events: none;
    z-index: 0;
}
.tc-framed img {
    position: relative;
    z-index: 1;
}


/* ═══════════════════════════════════════════════════════
   10. RESPONSIVE
═══════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .tc-framed::before { display: none; }

    .tc-stat-number {
        font-size: 2.8rem;
    }
}
