/*
Theme Name: Hotel di lusso con prenotazione Theme
Theme URI: https://themelab.app
Author: Themelab
Author URI: https://themelab.app
Description: Tema generato automaticamente con Themelab + Claude AI
Version: 1.23
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hotel-di-lusso-con-prenotazione-theme
Tags: custom, ai-generated, full-site-editing
*/

/* Tutto il CSS "di base" del tema è dentro @layer base: senza layer
   batterebbe SEMPRE le utility Tailwind (es. .p-8, .mt-3) indipendentemente
   dalla specificità — un `* { margin: 0; padding: 0; }` non a layer, ad
   esempio, azzera ogni utility di spaziatura su ogni elemento del tema,
   a prescindere da quante classi p-*/m-* vengano aggiunte. Vedi anche
   wrap_in_base_layer. */
@layer base {

:root {
  --color-primary: #8B6914;
  --color-secondary: #C9A84C;
  --font-main: 'var(--font-body)', sans-serif;
}

/* Esclude #wpadminbar (la admin bar nativa di WordPress, visibile a
   qualunque utente loggato con permessi di editing anche sul front-end)
   — senza questa esclusione il reset globale rompe il suo layout
   interno (dropdown, icone, spaziature), che si basa su un proprio
   box model non azzerato. :where() mantiene specificità 0 come * da
   solo, quindi non altera nient'altro nella cascata. */
:where(*:not(#wpadminbar, #wpadminbar *)) { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
}

/* Safety net: caps any unclassed/oversized image (e.g. an embedded
   base64 logo with no sizing utility) so it can never blow out the
   layout width — mirrors Tailwind's own preflight reset, but applies
   even if the Tailwind CDN script fails to load. */
img, svg { max-width: 100%; height: auto; }

.elz-btn {
  display: inline-block; padding: .75rem 1.75rem;
  border-radius: 8px; text-decoration: none; font-weight: 700;
  background: var(--color-primary); color: #fff; transition: opacity .2s;
}
.elz-btn:hover { opacity: .85; color: #fff; }
.elz-btn--outline { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); }
.elz-btn--sm { padding: .45rem 1rem; font-size: .85rem; }
.elz-btn--lg { padding: 1rem 2.25rem; font-size: 1.1rem; }

/* ── CSS estratto dal layout HTML originale ─────────────────── */

    :root {
      --color-primary:    #8B6914;
      --color-secondary:  #C9A84C;
      --color-accent:     #D4AF37;
      --color-text:       #1a1a2e;
      --color-muted:      #6c757d;
      --color-background: #ffffff;
      --color-surface:    #f8f5f0;
      --color-border:     #e5e0d8;
      --r-sm: 4px;
      --r-md: 8px;
      --r-lg: 12px;
      --s-sm: 0 1px 3px rgba(0,0,0,0.1);
      --s-md: 0 4px 6px rgba(0,0,0,0.1);
      --font-heading: 'Cormorant Garamond', Georgia, serif;
      --font-body:    'Jost', sans-serif;
    }

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

    body {
      font-family: var(--font-body);
      color: var(--color-text);
      background: var(--color-background);
      margin: 0;
    }

    h1, h2, h3, h4 { font-family: var(--font-heading); }

    /* ── HEADER ── */
    .site-header {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 1000;
      transition: background 0.4s, box-shadow 0.4s;
    }
    .site-header.scrolled {
      background: rgba(26,26,46,0.97);
      box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    }
    .site-header .inner {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 32px;
      height: 80px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .logo-text {
      font-family: var(--font-heading);
      font-size: 1.75rem;
      font-weight: 600;
      color: #fff;
      letter-spacing: 0.04em;
      text-decoration: none;
    }
    .logo-text span {
      color: var(--color-accent);
    }
    nav.main-nav a {
      font-family: var(--font-body);
      font-size: 0.8rem;
      font-weight: 500;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.85);
      text-decoration: none;
      margin-left: 32px;
      transition: color 0.2s;
    }
    nav.main-nav a:hover { color: var(--color-accent); }
    .btn-book-header {
      margin-left: 32px;
      background: var(--color-primary);
      color: #fff;
      font-family: var(--font-body);
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      padding: 10px 24px;
      border-radius: var(--r-sm);
      text-decoration: none;
      transition: background 0.2s;
    }
    .btn-book-header:hover { background: var(--color-secondary); }

    /* ── MOBILE MENU ── */
    .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
    .hamburger span { display: block; width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s; }
    .mobile-menu {
      display: none;
      position: fixed;
      top: 80px; left: 0; right: 0;
      background: rgba(26,26,46,0.98);
      padding: 24px 32px 32px;
      z-index: 999;
      flex-direction: column;
      gap: 8px;
    }
    .mobile-menu.open { display: flex; }
    .mobile-menu a {
      font-size: 0.85rem;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.85);
      text-decoration: none;
      padding: 12px 0;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .mobile-menu a:hover { color: var(--color-accent); }

    @media (max-width: 900px) {
      nav.main-nav, .btn-book-header { display: none !important; }
      .hamburger { display: flex; }
    }

    /* ── HERO SLIDER ── */
    .hero-slider { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
    .hero-slide {
      position: absolute; inset: 0;
      background-size: cover;
      background-position: center;
      display: flex; align-items: flex-end;
      transition: opacity 0.9s ease;
    }
    .hero-slide::before {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(26,26,46,0.78) 0%, rgba(26,26,46,0.25) 60%, transparent 100%);
    }
    .hero-slide-content {
      position: relative;
      z-index: 2;
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 48px 88px;
      width: 100%;
    }
    .hero-slide-content p.label {
      font-family: var(--font-body);
      font-size: 0.75rem;
      font-weight: 500;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--color-accent);
      margin: 0 0 16px;
    }
    .hero-slide-content h2 {
      font-size: clamp(2.8rem, 6vw, 5.5rem);
      font-weight: 300;
      color: #fff;
      line-height: 1.1;
      margin: 0 0 20px;
      max-width: 700px;
    }
    .hero-slide-content p.sub {
      font-size: 1.05rem;
      font-weight: 300;
      color: rgba(255,255,255,0.8);
      margin: 0 0 36px;
      max-width: 500px;
      line-height: 1.7;
    }
    .hero-slide-content a.btn-primary {
      display: inline-block;
      background: var(--color-primary);
      color: #fff;
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      padding: 16px 40px;
      border-radius: var(--r-sm);
      text-decoration: none;
      transition: background 0.2s;
      margin-right: 16px;
    }
    .hero-slide-content a.btn-primary:hover { background: var(--color-secondary); }
    .hero-slide-content a.btn-ghost {
      display: inline-block;
      border: 1px solid rgba(255,255,255,0.5);
      color: #fff;
      font-size: 0.78rem;
      font-weight: 500;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      padding: 16px 40px;
      border-radius: var(--r-sm);
      text-decoration: none;
      transition: border-color 0.2s, background 0.2s;
    }
    .hero-slide-content a.btn-ghost:hover { border-color: var(--color-accent); background: rgba(212,175,55,0.12); }
    .slider-dots {
      position: absolute;
      bottom: 40px; right: 48px;
      z-index: 10;
      display: flex; gap: 10px;
    }
    .slider-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: rgba(255,255,255,0.35)

/* ── CSS personalizzato generato da Claude ───────────────────── */


/* ── Nav menu WordPress ──────────────────────────────────────── */
.nav-menu { list-style: none; display: flex; align-items: center; gap: 1.5rem; margin: 0; padding: 0; }
.nav-menu li { margin: 0; }
.nav-menu a {
  text-decoration: none; font-weight: 500; font-size: .95rem;
  color: inherit; transition: opacity .2s; white-space: nowrap;
}
.nav-menu a:hover { opacity: .7; }
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .main-navigation.open .nav-menu { display: flex; flex-direction: column; gap: .75rem; }
}

/* ── Collasso responsive delle sezioni custom a colonne ───────────
   render_custom_section (ThemelabBuilderPhp) fissa grid-template-columns
   con uno style INLINE (necessario per rispettare width_percent per-
   colonna quando non c'è wrap, vedi tlColWidthUpdate) — un inline style
   non è sormontabile da un @media query su un'altra regola con la
   stessa specificità, serve !important qui. Senza questa regola
   qualunque sezione custom multi-colonna (footer, booking, blocchi
   futuri) resta affiancata anche su mobile: nessuna ne aveva mai una,
   bug generico scoperto lavorando sulla sezione rooms dell'hotel. */
@media (max-width: 768px) {
  .tl-custom-grid { grid-template-columns: 1fr !important; }
}

/* ── Page header banner — page.php / single.php / archive.php ──
   Stessa identità visiva (colori/font) dell'header/hero generato, ma
   generica: usata per contenuti WP "reali" (pagine statiche, articoli,
   archivi) che non hanno un design AI dedicato come front-page.php. */
.tl-page-header {
  background: var(--color-surface, #f8f9fb);
  border-bottom: 1px solid var(--color-border, #ececec);
  padding: 72px 24px 56px;
  text-align: center;
}
.tl-page-header-inner { max-width: 820px; margin: 0 auto; }
.tl-page-header-eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--color-primary); margin-bottom: .75rem;
}
.tl-page-header-title {
  font-family: var(--font-main); font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700; line-height: 1.15; margin: 0 0 .5rem;
}
.tl-page-header-desc { font-size: 1.05rem; color: var(--color-muted, #666); margin-top: .5rem; }
.tl-page-header-meta {
  display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1rem;
  margin-top: 1rem; font-size: .9rem; color: var(--color-muted, #777);
}

/* ── Contenuto pagina/articolo (output di the_content(), non AI-generated:
   va tipografato a parte perché non passa dallo scan Tailwind statico) ── */
.tl-prose { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; line-height: 1.75; font-size: 1.05rem; }
.tl-prose h1, .tl-prose h2, .tl-prose h3, .tl-prose h4 { font-weight: 700; line-height: 1.3; margin: 2em 0 .6em; }
.tl-prose > *:first-child { margin-top: 0; }
.tl-prose h2 { font-size: 1.6rem; }
.tl-prose h3 { font-size: 1.3rem; }
.tl-prose p { margin: 0 0 1.25em; }
.tl-prose a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.tl-prose ul, .tl-prose ol { margin: 0 0 1.25em 1.4em; }
.tl-prose li { margin-bottom: .4em; }
.tl-prose img { border-radius: var(--r-lg, 12px); margin: 1.5em 0; height: auto; max-width: 100%; }
.tl-prose blockquote {
  border-left: 3px solid var(--color-primary); margin: 1.5em 0; padding: .5em 0 .5em 1.25em;
  font-style: italic; color: var(--color-muted, #555);
}
.tl-prose figcaption { font-size: .85rem; color: var(--color-muted, #888); text-align: center; margin-top: .5em; }
.tl-prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.tl-prose table th, .tl-prose table td { border: 1px solid var(--color-border, #eee); padding: .6em .8em; text-align: left; }
.tl-page-links { margin-top: 2em; font-size: .9rem; }

.tl-archive-empty { text-align: center; padding: 60px 20px; color: var(--color-muted, #888); }

/* ── Paginazione archivi (paginate_links()) ── */
.tl-pagination { display: flex; justify-content: center; gap: .5rem; padding: 40px 24px 80px; flex-wrap: wrap; }
.tl-pagination a, .tl-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 .75rem; border-radius: var(--r-md, 8px);
  border: 1px solid var(--color-border, #eee); text-decoration: none; color: inherit; font-size: .9rem;
}
.tl-pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.tl-pagination .current { background: var(--color-primary); border-color: var(--color-primary); color: #fff; font-weight: 600; }

/* ── Single post: tag + navigazione articolo precedente/successivo ── */
.tl-single-footer { max-width: 760px; margin: 0 auto; padding: 0 24px 40px; }
.tl-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; }
.tl-tags a {
  font-size: .8rem; padding: .3rem .75rem; border-radius: 999px; background: var(--color-surface, #f4f4f5);
  color: inherit; text-decoration: none; border: 1px solid var(--color-border, #eee);
}
.tl-tags a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.tl-post-nav { display: flex; justify-content: space-between; gap: 1.5rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--color-border, #eee); }
.tl-post-nav > div { flex: 1 1 0; }
.tl-post-nav .next { text-align: right; }
.tl-post-nav a { color: inherit; text-decoration: none; }
.tl-post-nav a:hover .tl-post-nav-title { color: var(--color-primary); }
.tl-post-nav-label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--color-muted, #999); margin-bottom: .25rem; }
.tl-post-nav-title { font-weight: 600; }

/* ── Commenti (markup di default WP — html5 support già dichiarato in
   functions.php, quindi <article>/<ol class="comment-list"> reali,
   non le <ul> legacy). Nessun comments.php custom: si stila il
   markup core così i temi restano aggiornati con qualunque fix di
   WordPress sul form invece di congelare un fork del template. ── */
.tl-single-footer .comments-title,
.tl-single-footer .comment-reply-title { font-family: var(--font-main); font-weight: 700; font-size: 1.3rem; margin: 0 0 1.5rem; }
.tl-single-footer .comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.tl-single-footer .comment-list .children { list-style: none; margin: 0; padding-left: 2.5rem; }
.tl-single-footer .comment-body { padding: 1.5rem 0; border-bottom: 1px solid var(--color-border, #eee); }
.tl-single-footer .comment-author.vcard { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.tl-single-footer .comment-author .avatar { border-radius: 999px; width: 36px; height: 36px; }
.tl-single-footer .comment-author .fn { font-style: normal; font-weight: 600; }
.tl-single-footer .comment-metadata { font-size: .8rem; color: var(--color-muted, #999); margin-bottom: .6rem; }
.tl-single-footer .comment-metadata a { color: inherit; }
.tl-single-footer .comment-content p { margin: 0 0 .75em; line-height: 1.65; }
.tl-single-footer .reply { margin-top: .5rem; }
.tl-single-footer .comment-reply-link {
  font-size: .8rem; font-weight: 600; color: var(--color-primary); text-decoration: none;
}
.tl-single-footer .comment-reply-link:hover { text-decoration: underline; }
.tl-single-footer .comment-respond { margin-top: 1rem; }
.tl-single-footer .comment-notes,
.tl-single-footer .comment-form p:not(.form-submit) { margin: 0 0 1rem; }
.tl-single-footer .comment-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.tl-single-footer .comment-form input[type="text"],
.tl-single-footer .comment-form input[type="email"],
.tl-single-footer .comment-form input[type="url"],
.tl-single-footer .comment-form textarea {
  width: 100%; padding: .65rem .85rem; border: 1px solid var(--color-border, #ddd);
  border-radius: var(--r-md, 8px); font-family: inherit; font-size: .95rem;
}
.tl-single-footer .comment-form textarea { min-height: 130px; resize: vertical; }
.tl-single-footer .comment-form input:focus,
.tl-single-footer .comment-form textarea:focus { outline: none; border-color: var(--color-primary); }
.tl-single-footer .form-submit input[type="submit"] {
  display: inline-block; padding: .75rem 1.75rem; border: none; cursor: pointer;
  border-radius: var(--r-md, 8px); font-weight: 700; font-size: .95rem;
  background: var(--color-primary); color: #fff; transition: opacity .2s;
}
.tl-single-footer .form-submit input[type="submit"]:hover { opacity: .85; }
.tl-single-footer .no-comments { color: var(--color-muted, #999); }

} /* /@layer base */


