/*
Theme Name: FOSSATI Arredamento
Theme URI: https://fossaticontract.it
Author: FOSSATI Bottega Artigiana
Description: Tema su misura in stile dark luxury wood con catalogo prodotti, portfolio realizzazioni e richiesta preventivo diretta via email.
Version: 1.0.9
Text Domain: fossati
*/

/* ==========================================================================
   1. RESET & BASE VARIABLES
   ========================================================================== */
:root {
  --fossati-bg: #241611;
  --fossati-dark: #1a0f0b;
  --fossati-border: #3a241c;
  --fossati-border-subtle: #2a1a14;
  --fossati-accent: #d7c9ba;
  --fossati-light: #F5F5F0;
  --fossati-muted: #8c7b70;
  --fossati-dim: #5a4a40;
}

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

html, body {
  background-color: var(--fossati-bg);
  color: var(--fossati-light);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--fossati-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--fossati-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--fossati-accent);
}

::selection {
  background-color: var(--fossati-accent);
  color: var(--fossati-bg);
}

/* ==========================================================================
   2. TAILWIND-COMPATIBLE UTILITY CLASSES (NATIVE FALLBACK)
   ========================================================================== */
.min-h-screen { min-height: 100vh; }
.flex-grow { flex-grow: 1; }
.hidden { display: none !important; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-50 { z-index: 50; }
.z-10 { z-index: 10; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-auto { width: auto; }
.overflow-hidden { overflow: hidden; }

/* Colors */
.bg-\[\#241611\] { background-color: #241611; }
.bg-\[\#1a0f0b\] { background-color: #1a0f0b; }
.bg-\[\#3a241c\] { background-color: #3a241c; }
.bg-\[\#d7c9ba\] { background-color: #d7c9ba; }
.bg-transparent { background-color: transparent; }
.text-\[\#F5F5F0\] { color: #F5F5F0; }
.text-\[\#d7c9ba\] { color: #d7c9ba; }
.text-\[\#8c7b70\] { color: #8c7b70; }
.text-\[\#a3948b\] { color: #a3948b; }
.text-\[\#5a4a40\] { color: #5a4a40; }
.text-\[\#241611\] { color: #241611; }
.text-white { color: #ffffff; }

.border-\[\#3a241c\] { border-color: #3a241c; }
.border-\[\#2a1a14\] { border-color: #2a1a14; }
.border-\[\#d7c9ba\] { border-color: #d7c9ba; }
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }

/* Typography */
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-serif { font-family: "Playfair Display", Georgia, "Times New Roman", serif; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.15em\] { letter-spacing: 0.15em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-\[0\.4em\] { letter-spacing: 0.4em; }
.text-center { text-align: center; }

/* Spacing Containers */
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.max-w-6xl { max-width: 72rem; margin-left: auto; margin-right: auto; }
.max-w-5xl { max-width: 64rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mt-auto { margin-top: auto; }

/* ==========================================================================
   3. NAVBAR & HEADER
   ========================================================================== */
nav.sticky {
  background-color: rgba(36, 22, 17, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fossati-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 50;
}

.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-28 { height: 7rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.px-16 { padding-left: 4rem; padding-right: 4rem; }
.px-20 { padding-left: 5rem; padding-right: 5rem; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.space-x-12 > * + * { margin-left: 3rem; }
.space-x-10 > * + * { margin-left: 2.5rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Logo Sizing & Alignment */
.fossati-logo-wrapper,
.fossati-logo-wrapper .custom-logo-link,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.fossati-logo-wrapper .custom-logo,
nav .custom-logo {
  height: auto;
  max-height: 52px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.fossati-logo-wrapper .custom-logo:hover,
nav .custom-logo:hover {
  transform: scale(1.03);
}

.fossati-text-logo-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 768px) {
  .fossati-logo-wrapper .custom-logo,
  nav .custom-logo {
    max-height: 38px;
    max-width: 160px;
  }
}

footer .custom-logo {
  max-height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.9;
}

#fossati-cart-count, #fossati-cart-count-mobile {
  position: absolute;
  top: 0;
  right: -4px;
  background-color: var(--fossati-accent);
  color: var(--fossati-bg);
  font-size: 0.75rem;
  font-weight: 700;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.h-\[85vh\] { height: 85vh; }
.scale-105 { transform: scale(1.05); }
.transform { transform-origin: center; }
.transition-transform { transition: transform 0.5s ease; }
.duration-\[20s\] { transition-duration: 20s; }
.bg-cover { background-size: cover; }
.bg-center { background-position: center; }
.bg-no-repeat { background-repeat: no-repeat; }

.text-6xl { font-size: 3.75rem; line-height: 1.1; }
.text-5xl { font-size: 3rem; line-height: 1.2; }
.text-4xl { font-size: 2.25rem; line-height: 1.25; }
.text-3xl { font-size: 1.875rem; line-height: 1.3; }
.text-2xl { font-size: 1.5rem; line-height: 1.4; }
.text-xl { font-size: 1.25rem; line-height: 1.5; }
.text-lg { font-size: 1.125rem; line-height: 1.6; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

@media (min-width: 768px) {
  .md\:text-8xl { font-size: 6rem; line-height: 1; }
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:flex { display: flex !important; }
  .md\:hidden { display: none !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:h-\[80vh\] { height: 80vh; }
  .md\:h-\[550px\] { height: 550px; }
  .md\:p-16 { padding: 4rem; }
}

@media (max-width: 767px) {
  .hidden.md\:flex { display: none !important; }
}

/* ==========================================================================
   5. IL NOSTRO METODO & CARDS
   ========================================================================== */
.gap-16 { gap: 4rem; }
.gap-8 { gap: 2rem; }
.gap-6 { gap: 1.5rem; }
.gap-x-12 { column-gap: 3rem; }
.gap-y-20 { row-gap: 5rem; }

.w-28 { width: 7rem; }
.h-28 { height: 7rem; }
.w-20 { width: 5rem; }
.h-px { height: 1px; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.rounded-full { border-radius: 9999px; }

/* Banner Split Cards */
.aspect-square { aspect-ratio: 1 / 1; }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:opacity-100 { opacity: 1 !important; }
.group:hover .group-hover\:-translate-y-4 { transform: translateY(-1rem); }
.group:hover .group-hover\:translate-y-0 { transform: translateY(0) !important; }

/* ==========================================================================
   6. SHOP CATALOGO & PRODOTTI
   ========================================================================== */
.h-\[450px\] { height: 450px; }
.h-\[400px\] { height: 400px; }
.filter { filter: var(--tw-filter, ); }
.brightness-90 { filter: brightness(0.9); }
.grayscale-\[30\%\] { filter: grayscale(30%); }

.btn-add-to-cart {
  cursor: pointer;
  border: none;
  background-color: rgba(36, 22, 17, 0.95);
  color: var(--fossati-light);
  font-weight: 500;
  transition: all 0.4s ease;
}
.btn-add-to-cart:hover {
  color: var(--fossati-accent);
  background-color: var(--fossati-dark);
}

/* ==========================================================================
   7. CARRELLO & MODULI
   ========================================================================== */
input, textarea {
  color: var(--fossati-light);
  background-color: transparent;
  border: 1px solid var(--fossati-border);
  padding: 0.85rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.3s ease;
}
input:focus, textarea:focus {
  border-color: var(--fossati-accent);
}

#inquiry-form input, #inquiry-form textarea {
  background-color: var(--fossati-bg);
}

#contact-form input, #contact-form textarea {
  border: none;
  border-bottom: 1px solid var(--fossati-border);
  padding-left: 0;
  padding-right: 0;
}
#contact-form input:focus, #contact-form textarea:focus {
  border-bottom-color: var(--fossati-accent);
}

button[type="submit"] {
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

/* ==========================================================================
   8. TOAST NOTIFICATIONS
   ========================================================================== */
#fossati-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
}
#fossati-toast > div {
  background-color: var(--fossati-accent);
  color: var(--fossati-bg);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid #e8dfd3;
}

/* ==========================================================================
   9. GUTENBERG BLOCK EDITOR STYLES
   ========================================================================== */
.editor-styles-wrapper {
  background-color: var(--fossati-bg) !important;
  color: var(--fossati-light) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.editor-styles-wrapper .block-editor-block-list__layout {
  max-width: 1200px;
  margin: 0 auto;
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4 {
  color: var(--fossati-light) !important;
}

.editor-styles-wrapper p {
  color: var(--fossati-muted) !important;
}

.editor-styles-wrapper a {
  color: var(--fossati-accent) !important;
}

/* ==========================================================================
   10. GUTENBERG CORE BLOCKS STYLING
   ========================================================================== */
.wp-block-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.wp-block-cover__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000;
  opacity: 0.6;
}
.wp-block-cover__image-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wp-block-cover__inner-container {
  position: relative;
  z-index: 10;
  width: 100%;
}
.wp-block-columns {
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .wp-block-columns {
    flex-direction: row;
  }
}
.wp-block-column {
  flex: 1;
}
.wp-block-separator {
  border: none;
  border-top: 1px solid var(--fossati-border);
}


