/* components/WebSite/themes/artisan_craft/style.css */
:root {
  --theme-primary: #c2410c;
  --theme-secondary: #d97706;
  --theme-accent: #b45309;
  --theme-bg: #fefdfa;
  --theme-surface: #fbf7ee;
  --theme-text: #292524;
  --theme-text-muted: #78716c;
  --theme-border: #e7e0d3;
  --theme-radius: 8px;
  --theme-font: 'Lora', serif;
  --theme-font-sans: 'Inter', sans-serif;
  --theme-container: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--theme-font);
  background-color: var(--theme-bg);
  color: var(--theme-text);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; transition: 0.2s; }
img { max-width: 100%; display: block; }

.site-container {
  max-width: var(--theme-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 253, 250, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--theme-border);
  padding: 18px 0;
}
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--theme-text);
  letter-spacing: -0.5px;
}
.site-nav {
  display: none;
  position: absolute;
  top: 76px;
  left: 0;
  width: 100%;
  background: rgba(254, 253, 250, 0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--theme-border);
  flex-direction: column;
  padding: 24px 30px;
  gap: 16px;
  box-shadow: 0 10px 24px rgba(41, 37, 36, 0.08);
  z-index: 1000;
  font-family: var(--theme-font-sans);
}

.site-nav.active {
  display: flex;
}
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--theme-text-muted);
}
.site-nav a:hover {
  color: var(--theme-primary);
}
.site-nav .mobile-cta { display: inline-flex; width: 100%; justify-content: center; margin-top: 8px; }

.nav-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  color: var(--theme-text);
  border-radius: var(--theme-radius);
  cursor: pointer;
  transition: all 0.2s;
}
.nav-toggle-btn:hover {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}
.nav-toggle-btn .material-symbols-outlined { font-size: 24px; }

/* Responsive / Hamburger Drawer per Artisan Craft */
@media (max-width: 1024px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: rgba(254, 253, 250, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--theme-border);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 10px 24px rgba(41, 37, 36, 0.08);
  }
  .site-nav.active { display: flex; }
  .site-nav .mobile-cta { display: inline-flex; width: 100%; justify-content: center; margin-top: 8px; }
  
}

.btn-theme-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--theme-primary);
  color: #fff;
  font-family: var(--theme-font-sans);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--theme-radius);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.2);
  transition: all 0.2s ease;
}
.btn-theme-primary:hover {
  background: #9a3412;
  transform: translateY(-2px);
}

.btn-theme-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--theme-border);
  color: var(--theme-text);
  font-family: var(--theme-font-sans);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--theme-radius);
  transition: 0.2s;
}
.btn-theme-secondary:hover {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

/* Sections */
.site-section {
  padding: 85px 0;
  border-bottom: 1px solid var(--theme-border);
}
.section-badge {
  display: inline-block;
  font-family: var(--theme-font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--theme-primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--theme-text);
}
.section-subtitle {
  color: var(--theme-text-muted);
  font-size: 17px;
  max-width: 620px;
}

/* Hero */
.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 500px;
}
.hero-content h1 {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 20px;
  color: var(--theme-text);
}
.hero-content p {
  color: var(--theme-text-muted);
  font-size: 18px;
  margin-bottom: 30px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-image-wrap img {
  border-radius: var(--theme-radius);
  box-shadow: 0 16px 36px rgba(41, 37, 36, 0.1);
  border: 4px solid #fff;
}

/* About */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  font-family: var(--theme-font-sans);
}
.about-feat-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
}
.about-feat-item .icon {
  color: var(--theme-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(41, 37, 36, 0.06);
}
.service-card-icon {
  color: var(--theme-primary);
  margin-bottom: 16px;
}
.service-card-icon .material-symbols-outlined { font-size: 32px; }
.service-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--theme-text-muted);
  font-size: 15px;
  font-family: var(--theme-font-sans);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.review-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.review-stars {
  color: var(--theme-secondary);
  font-size: 16px;
  margin-bottom: 12px;
}
.review-text {
  font-size: 16px;
  font-style: italic;
  margin-bottom: 20px;
  color: #44403c;
}
.review-author-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--theme-font-sans);
}
.review-author-wrap img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.review-author-name {
  font-weight: 700;
  font-size: 14px;
}
.review-author-role {
  font-size: 12px;
  color: var(--theme-text-muted);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.blog-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(41, 37, 36, 0.08);
}
.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.blog-card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  gap: 8px;
  font-family: var(--theme-font-sans);
  font-size: 12px;
  color: var(--theme-primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.blog-card h3 {
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 10px;
}
.blog-card p {
  color: var(--theme-text-muted);
  font-size: 15px;
  font-family: var(--theme-font-sans);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.blog-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--theme-font-sans);
  color: var(--theme-primary);
  font-weight: 700;
  font-size: 13px;
  margin-top: auto;
}
.blog-card-readmore:hover {
  color: #7c2d12;
}

/* Single Article */
.article-detail-wrap {
  padding: 60px 32px 100px;
  max-width: 820px;
  margin: 0 auto;
}
.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--theme-font-sans);
  color: var(--theme-text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.article-back-link:hover { color: var(--theme-primary); }
.article-header { margin-bottom: 30px; }
.article-header h1 {
  font-size: 42px;
  line-height: 1.22;
  margin-bottom: 16px;
}
.article-cover-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--theme-radius);
  border: 1px solid var(--theme-border);
  margin-bottom: 36px;
}
.article-content {
  font-size: 18px;
  line-height: 1.85;
  color: #292524;
}
.article-content h2, .article-content h3 {
  margin: 32px 0 16px;
}
.article-content p { margin-bottom: 20px; }
.article-content blockquote {
  border-left: 4px solid var(--theme-primary);
  padding: 14px 24px;
  margin: 28px 0;
  background: var(--theme-surface);
  font-style: italic;
  color: #44403c;
  border-radius: 0 8px 8px 0;
}
.article-content a {
  color: var(--theme-primary);
  text-decoration: underline;
}

/* Contact */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}
.contact-item .icon {
  width: 42px;
  height: 42px;
  border-radius: var(--theme-radius);
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-primary);
}
.contact-form {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  padding: 32px;
  font-family: var(--theme-font-sans);
}
.contact-form .form-group {
  margin-bottom: 16px;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  color: var(--theme-text);
  font-family: inherit;
  font-size: 14px;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--theme-primary);
}


/* Pre-footer Social Wrapper */
.pre-footer-social-wrapper {
  padding: 36px 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--theme-border);
}

/* 7. FOOTER A BLOCCHI MODULARE (1, 2 o 3 BLOCCHI) */
.site-footer {
  background: var(--theme-surface, #fbf7ee);
  border-top: 1px solid var(--theme-border, #e7e0d3);
  padding: 60px 0 30px 0;
  font-size: 14px;
  color: var(--theme-text-muted, #78716c);
}

.footer-blocks-grid {
  display: grid;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-blocks-grid.blocks-1 {
  grid-template-columns: 1fr;
  text-align: center;
}

.footer-blocks-grid.blocks-2 {
  grid-template-columns: 1.2fr 1fr;
}

.footer-blocks-grid.blocks-3 {
  grid-template-columns: 1.5fr 1fr 1fr;
}

.footer-block h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--theme-text, #292524);
  margin-bottom: 16px;
  font-family: var(--theme-font, 'Lora', serif);
}

.footer-block p {
  color: var(--theme-text-muted, #78716c);
  line-height: 1.65;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  color: var(--theme-text-muted, #78716c);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: var(--theme-primary, #c2410c);
}

.footer-bottom-bar {
  padding-top: 24px;
  border-top: 1px solid var(--theme-border, #e7e0d3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--theme-text-muted, #78716c);
  font-size: 13px;
}

@media (max-width: 900px) {
  .hero-wrapper, .about-wrapper, .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-content h1 { font-size: 34px; }
  .section-title { font-size: 30px; }
}
