/*
Theme Name: Interior Design Roma – Home 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: interior-design-roma-home-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: #8B7355;
  --color-secondary: #6B5B45;
  --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: #8B7355;
      --color-secondary: #6B5B45;
      --color-accent: #C4A882;
      --color-text: #1C1C1C;
      --color-muted: #7A7A7A;
      --color-background: #FFFFFF;
      --color-surface: #F8F6F3;
      --color-border: #E8E2DA;
      --r-sm: 4px;
      --r-md: 8px;
      --r-lg: 12px;
      --s-sm: 0 1px 3px rgba(0,0,0,0.10);
      --s-md: 0 4px 6px rgba(0,0,0,0.10);
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: 'Jost', sans-serif;
      color: var(--color-text);
      background: var(--color-background);
    }
    h1, h2, h3, h4 {
      font-family: 'Cormorant Garamond', serif;
    }

    /* NAV */
    .nav-link {
      font-family: 'Jost', sans-serif;
      font-size: 0.8rem;
      font-weight: 500;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--color-text);
      transition: color 0.3s ease;
      text-decoration: none;
    }
    .nav-link:hover { color: var(--color-primary); }
    .nav-scrolled { background: #fff; box-shadow: var(--s-md); }

    /* HERO */
    .hero-section {
      background: linear-gradient(135deg, #1C1714 0%, #2E2420 50%, #1C1714 100%);
      min-height: 100vh;
      position: relative;
      overflow: hidden;
    }
    .hero-section::before {
      content: '';
      position: absolute;
      inset: 0;
      background: url('https://www.interiordesignroma.com/idr/wp-content/uploads/2021/11/IMG_1-scaled-300x300.jpg') center/cover no-repeat;
      opacity: 0.18;
    }
    .hero-title {
      font-size: clamp(2.8rem, 6vw, 5.5rem);
      font-weight: 300;
      line-height: 1.08;
      letter-spacing: -0.02em;
      color: #F5F0E8;
    }
    .hero-subtitle {
      font-family: 'Jost', sans-serif;
      font-size: clamp(0.75rem, 1.5vw, 0.85rem);
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--color-accent);
    }
    .hero-line {
      width: 60px;
      height: 1px;
      background: var(--color-accent);
      margin: 24px auto;
    }

    /* BUTTONS */
    .btn-primary {
      display: inline-block;
      font-family: 'Jost', sans-serif;
      font-size: 0.75rem;
      font-weight: 500;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      padding: 14px 36px;
      background: var(--color-primary);
      color: #fff;
      border: none;
      border-radius: var(--r-sm);
      cursor: pointer;
      text-decoration: none;
      transition: background 0.3s ease, transform 0.2s ease;
    }
    .btn-primary:hover { background: var(--color-secondary); }
    .btn-outline {
      display: inline-block;
      font-family: 'Jost', sans-serif;
      font-size: 0.75rem;
      font-weight: 500;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      padding: 13px 35px;
      background: transparent;
      color: var(--color-primary);
      border: 1px solid var(--color-primary);
      border-radius: var(--r-sm);
      cursor: pointer;
      text-decoration: none;
      transition: background 0.3s ease, color 0.3s ease;
    }
    .btn-outline:hover { background: var(--color-primary); color: #fff; }

    /* SECTION LABELS */
    .section-label {
      font-family: 'Jost', sans-serif;
      font-size: 0.7rem;
      font-weight: 500;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--color-primary);
      display: block;
      margin-bottom: 16px;
    }
    .section-divider {
      width: 48px;
      height: 1px;
      background: var(--color-accent);
      margin: 20px 0 32px;
    }
    .section-divider-center {
      margin: 20px auto 32px;
    }

    /* ABOUT / PROFILE */
    .profile-img {
      border-radius: var(--r-lg);
      box-shadow: var(--s-md);
      width: 100%;
      max-width: 380px;
      object-fit: cover;
    }

    /* SERVICE CARDS */
    .service-card {
      background: var(--color-surface);
      border-radius: var(--r-md);
      border: 1px solid var(--color-border);
      padding: 40px 32px;
      transition: box-shadow 0.3s ease, transform 0.3s ease;
    }
    .service-card:hover {
      box-shadow: var(--s-md);
      transform: translateY(-4px);
    }
    .service-icon {
      width: 56px;
      height: 56px;
      object-fit: contain;
      margin-bottom: 20px;
    }

    /* TESTIMONIAL CARDS */
    .testimonial-card {
      background: var(--color-background);
      border-radius: var(--r-md);
      border: 1px solid var(--color-border);
      padding: 40px 32px;
      box-shadow: var(--s-sm);
      position: relative;
    }
    .testimonial-card::before {
      content: '"';
      font-family: 'Cormorant Garamond', serif;
      font-size: 5rem;
      color: var(--color-accent);
      line-height: 1;
      position: absolute;
      top: 16px;
      left: 28px;
      opacity: 0.6;
    }

    /* CONTACT FORM */
    .form-input {
      width: 100%;
      padding: 14px 16px;
      border: 1px solid var(--color-border);
      border-radius: var(--r-sm);
      font-family: 'Jost', sans-serif;
      font-size: 0.9rem;
      color: var(--color-text);
      background: var(--color-background);
      transition: border-color 0.3s ease;
      outline: none;
    }
    .form-input:focus { border-color: var(--color-primary); }
    .form-label {
      display: block;
      font-family: 'Jost', sans-serif;
      font-size: 0.75rem;
      font-weight: 500;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--color-muted);
      margin-bottom: 8px;
    }

    /* FOOTER */
    .footer-bg {
      background: #1C1714;
    }
    .footer-link {
      font-family: 'Jost', sans-serif;
      font-size: 0.8rem;
      letter-spacing: 0.08em;
      color: #A89880;
      text-decoration: none;
      transition: color 0.3s;
    }
    .footer-link:hover { color: var(--color-accent); }

    /* MOBILE NAV */
    #mobile-menu { display: none; }
    #mobile-menu.open { display: block; }

    /* SCROLL REVEAL — SO

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


