/*
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.0
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: elementor, custom, ai-generated
*/

/* 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: 'Jost', 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; }

.elementor-section { width: 100%; }

/* ── WP Bakery fallback layout ───────────────────────────────── */
.elz-row {
  display: flex; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem;
  gap: 1.5rem;
}
.elz-row--full { max-width: none; }
.elz-row-inner { padding: 0; }
.elz-col { flex: 1 1 0%; min-width: 0; }
.elz-col--1-2 { flex: 0 0 calc(50% - .75rem); }
.elz-col--1-3 { flex: 0 0 calc(33.333% - 1rem); }
.elz-col--2-3 { flex: 0 0 calc(66.667% - .75rem); }
.elz-col--1-4 { flex: 0 0 calc(25% - 1.125rem); }
.elz-col--3-4 { flex: 0 0 calc(75% - .375rem); }
.elz-text { line-height: 1.7; }
.elz-text p { margin-bottom: .85rem; }
.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; }
.elz-separator { border: none; border-top: 1px solid #e5e7eb; margin: 1rem 0; }
@media (max-width: 768px) {
  .elz-row { flex-direction: column; padding: 2rem 1rem; }
  .elz-col--1-2, .elz-col--1-3, .elz-col--2-3,
  .elz-col--1-4, .elz-col--3-4 { flex: 0 0 100%; }
}

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

    :root {
      --color-primary: #8B6914;
      --color-secondary: #C9A84C;
      --color-accent: #2C1810;
      --color-text: #1a1a2e;
      --color-muted: #6c757d;
      --color-background: #ffffff;
      --color-surface: #f9f6f0;
      --color-border: #e8e0d0;
      --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);
    }
    body {
      font-family: 'Jost', sans-serif;
      color: var(--color-text);
      background-color: var(--color-background);
    }
    h1, h2, h3, h4 {
      font-family: 'Cormorant Garamond', serif;
    }
    .font-display { font-family: 'Cormorant Garamond', serif; }
    .text-primary { color: var(--color-primary); }
    .text-secondary { color: var(--color-secondary); }
    .text-accent { color: var(--color-accent); }
    .bg-primary { background-color: var(--color-primary); }
    .bg-secondary { background-color: var(--color-secondary); }
    .bg-surface { background-color: var(--color-surface); }
    .border-primary { border-color: var(--color-primary); }
    .border-gold { border-color: var(--color-secondary); }

    /* Hero slider */
    .hero-slide { display: none; }
    .hero-slide.active { display: block; }

    /* Gold divider */
    .gold-divider {
      width: 60px;
      height: 2px;
      background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
      margin: 0 auto;
    }
    .gold-divider-left {
      width: 60px;
      height: 2px;
      background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    }

    /* Nav */
    .nav-link {
      font-family: 'Jost', sans-serif;
      font-weight: 400;
      font-size: 13px;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: #f9f6f0;
      transition: color 0.3s;
    }
    .nav-link:hover { color: var(--color-secondary); }
    .nav-scrolled .nav-link { color: var(--color-text); }
    .nav-scrolled .nav-link:hover { color: var(--color-primary); }

    /* Button styles */
    .btn-gold {
      display: inline-block;
      background-color: var(--color-primary);
      color: #ffffff;
      font-family: 'Jost', sans-serif;
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 2.5px;
      text-transform: uppercase;
      padding: 14px 36px;
      border-radius: var(--r-sm);
      transition: background-color 0.3s, transform 0.2s;
      border: none;
      cursor: pointer;
    }
    .btn-gold:hover {
      background-color: var(--color-secondary);
      transform: translateY(-1px);
    }
    .btn-outline-gold {
      display: inline-block;
      background-color: transparent;
      color: var(--color-primary);
      font-family: 'Jost', sans-serif;
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 2.5px;
      text-transform: uppercase;
      padding: 13px 35px;
      border-radius: var(--r-sm);
      border: 1px solid var(--color-primary);
      transition: all 0.3s;
      cursor: pointer;
    }
    .btn-outline-gold:hover {
      background-color: var(--color-primary);
      color: #ffffff;
    }
    .btn-white-outline {
      display: inline-block;
      background-color: transparent;
      color: #ffffff;
      font-family: 'Jost', sans-serif;
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 2.5px;
      text-transform: uppercase;
      padding: 13px 35px;
      border-radius: var(--r-sm);
      border: 1px solid rgba(255,255,255,0.7);
      transition: all 0.3s;
      cursor: pointer;
    }
    .btn-white-outline:hover {
      background-color: rgba(255,255,255,0.15);
    }

    /* Hero */
    .hero-bg {
      background-image: linear-gradient(to bottom, rgba(28,20,12,0.55) 0%, rgba(28,20,12,0.35) 60%, rgba(28,20,12,0.7) 100%),
        url('https://images.unsplash.com/photo-1566073771259-6a8506099945?w=1920&q=85&auto=format');
      background-size: cover;
      background-position: center;
    }
    .hero-bg-2 {
      background-image: linear-gradient(to bottom, rgba(28,20,12,0.55) 0%, rgba(28,20,12,0.35) 60%, rgba(28,20,12,0.7) 100%),
        url('https://images.unsplash.com/photo-1551882547-ff40c63fe5fa?w=1920&q=85&auto=format');
      background-size: cover;
      background-position: center;
    }
    .hero-bg-3 {
      background-image: linear-gradient(to bottom, rgba(28,20,12,0.55) 0%, rgba(28,20,12,0.35) 60%, rgba(28,20,12,0.7) 100%),
        url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?w=1920&q=85&auto=format');
      background-size: cover;
      background-position: center;
    }

    /* Slider dots */
    .slider-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(255,255,255,0.4);
      transition: all 0.3s;
      cursor: pointer;
      border: none;
    }
    .slider-dot.active {
      background: var(--color-secondary);
      width: 28px;
      border-radius: 4px;
    }

    /* Testimonial card */
    .testimonial-card {
      background: var(--color-background);
      border-radius: var(--r-lg);
      padding: 40px;
      box-shadow: var(--s-md);
      border: 1px solid var(--color-border);
      transition: transform 0.3s;
    }
    .testimonial-card:hover { transform: translateY(-3px); }

    /* Service card */
    .service-card {
      background: var(--color-background);
      border-radius: var(--r-lg);
      overflow: hidden;
      box-shadow: var(--s-md);
      transition: transform 0.3s;
    }
    .service-card:hover { transform: translateY(-4px); }

    /* Gallery grid */
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: auto auto;
      gap: 12px;
    }
    .gallery-item-large {
      grid-column: span 2;
      grid-row: span 2;
    }
    @media (max-width: 768px) {
      .gallery-grid {
        grid-template-columns: 1fr 1fr;
      }
      .gallery-item-large {
        grid-column: span 2;
        grid-row: span 1;
      }
    }
    @media (max-width: 4

/* ── 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; }
}

/* ── 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 */


