/* ===== CARAMICO LEGNAMI — Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Open+Sans:wght@300;400;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brown-dark:   #3e2006;
  --brown-mid:    #7a4a1e;
  --brown-light:  #c8a06a;
  --cream:        #f5f0e8;
  --cream-dark:   #ede5d5;
  --white:        #ffffff;
  --text:         #2c1a08;
  --text-light:   #6b5540;
  --accent:       #c06b81;
  --nav-bg:       #fff;
  --footer-bg:    #2b1504;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ====== HEADER / NAV ====== */
header {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
}

.logo img {
  height: 60px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  align-items: center;
}

nav > ul > li {
  position: relative;
}

nav > ul > li > a {
  color: var(--footer-bg);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 12px;
  display: block;
  transition: color 0.2s, background 0.2s;
  border-radius: 3px;
}

nav > ul > li > a:hover,
nav > ul > li.active > a {
  color: var(--brown-light);
  background: rgba(255,255,255,0.07);
  text-decoration: none;
}

/* Dropdown */
nav ul ul {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--brown-dark);
  min-width: 260px;
  border-top: 2px solid var(--brown-light);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  list-style: none;
  z-index: 999;
}

nav ul li:hover > ul { display: block; }

nav ul ul li a {
  color: var(--cream);
  font-size: 0.78rem;
  padding: 9px 16px;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.15s, color 0.15s;
}
nav ul ul li:last-child a { border-bottom: none; }
nav ul ul li a:hover { background: rgba(200,160,106,0.15); color: var(--brown-light); text-decoration: none; }

/* Mobile hamburger (hidden by default) */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--cream); transition: 0.3s; }

/* ====== HERO / SLIDER ====== */
.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: #1a0a02;
}

.hero-slides { display: flex; height: 100%; transition: transform 0.7s ease; }

.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.hero-caption {
  position: absolute;
  bottom: 60px;
  left: 60px;
  color: var(--white);
  max-width: 500px;
}

.hero-caption h1 {
  font-family: 'Lato', serif;
  font-size: 2.6rem;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  margin-bottom: 12px;
}

.hero-caption p {
  font-size: 1rem;
  opacity: 0.9;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
}
.hero-dots button.active { background: var(--white); }

/* ====== BREADCRUMB ====== */
.breadcrumb {
  background: #fafafa;
  padding: 10px 24px;
  font-size: 0.8rem;
  color: var(--text-light);
  border-bottom: 1px solid #ddd0bc;
}
.breadcrumb a { color: var(--brown-mid); }
.breadcrumb a:hover { color: var(--accent); }

/* ====== PAGE HEADER ====== */
.page-header {
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-mid) 100%);
  color: var(--white);
  padding: 54px 24px 44px;
  text-align: center;
}

.page-header h1 {
  font-family: 'Lato', serif;
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

/* ====== MAIN CONTENT ====== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-section {
  padding: 60px 0;
}

.content-section h2 {
  font-family: 'Lato', serif;
  font-size: 1.7rem;
  color: var(--brown-dark);
  margin-bottom: 16px;
}

.content-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown-mid);
  margin: 24px 0 8px;
}

.content-section p {
  margin-bottom: 14px;
  color: var(--text);
  line-height: 1.8;
}

/* ====== FEATURE BOXES (Homepage) ====== */
.features-bar {
  background: var(--cream);
  border-top: 3px solid var(--brown-light);
  border-bottom: 3px solid var(--brown-light);
  padding: 36px 0;
}

.features-bar .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-box {
  text-align: center;
  padding: 20px;
}

.feature-box .icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.feature-box h3 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brown-dark);
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ====== PRODUCT BOXES ====== */
.product-boxes {
  padding: 60px 0;
}

.product-boxes .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  align-items: center;
}

.product-box-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.product-box-item .num {
  font-family: 'Lato', serif;
  font-size: 3rem;
  color: var(--brown-light);
  line-height: 1;
  flex-shrink: 0;
}

.product-box-item h3 {
  font-family: 'Lato', serif;
  font-size: 1.25rem;
  color: var(--brown-dark);
  margin-bottom: 8px;
}

.product-box-item p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
}

.product-box-img img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(62,32,6,0.2);
}

/* ====== NEWSLETTER ====== */
.newsletter-section {
  background: var(--brown-dark);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}

.newsletter-section p {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.85;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  font-size: 0.9rem;
  outline: none;
  border-radius: 3px 0 0 3px;
}

.newsletter-form button {
  padding: 12px 22px;
  background: var(--brown-light);
  color: var(--white);
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 0 3px 3px 0;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--accent); }

/* ====== CERT SECTION ====== */
.cert-section {
  background: var(--cream);
  padding: 40px 0;
  border-top: 1px solid var(--cream-dark);
}

.cert-section .container {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.cert-section .cert-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  margin-top: 4px;
}

.cert-section h3 {
  font-family: 'Lato', serif;
  font-size: 1rem;
  color: var(--brown-dark);
  margin-bottom: 8px;
}

.cert-section p {
  font-size: 0.82rem;
  color: var(--text-light);
}

.cert-section a {
  color: var(--accent);
  font-weight: 600;
}

/* ====== SERVICES PAGE ====== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 48px 0;
}

.service-card {
  background: var(--cream);
  border-radius: 6px;
  padding: 28px;
  border-top: 4px solid var(--brown-light);
}

.service-card .icon { font-size: 2rem; margin-bottom: 12px; }

.service-card h3 {
  font-family: 'Lato', serif;
  font-size: 1rem;
  color: var(--brown-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.service-card ul {
  list-style: none;
  font-size: 0.87rem;
  color: var(--text-light);
}

.service-card ul li {
  padding: 4px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.service-card ul li:last-child { border: none; }
.service-card ul li::before { content: '→ '; color: var(--brown-light); font-weight: 700; }

/* ====== SERVICE IMAGES ====== */
.service-imgs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px 0 48px;
}

.service-imgs img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* ====== PRODUCT LIST PAGE ====== */
.accordion {
  border: 1px solid var(--cream-dark);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.accordion-header {
  background: var(--cream);
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brown-dark);
  transition: background 0.15s;
}

.accordion-header:hover { background: var(--cream-dark); }
.accordion-header .arrow { transition: transform 0.3s; font-size: 0.7rem; }
.accordion-header.open .arrow { transform: rotate(180deg); }

.accordion-body {
  display: none;
  padding: 20px;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.8;
  background: var(--white);
  border-top: 1px solid var(--cream-dark);
}

.accordion-body.open { display: block; }

.accordion-body h3 {
  font-weight: 700;
  color: var(--brown-mid);
  margin: 16px 0 6px;
  font-size: 0.95rem;
}
.accordion-body h3:first-child { margin-top: 0; }

/* ====== PHOTO GALLERY ====== */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding: 24px 0;
}

.photo-gallery a { display: block; overflow: hidden; border-radius: 4px; }
.photo-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.35s;
}
.photo-gallery a:hover img { transform: scale(1.05); }

/* ====== CTA BLOCK ====== */
.cta-block {
  background: #fafafa;
  color: var(--white);
  padding: 48px;
  border-radius: 6px;
  text-align: center;
  margin: 40px 0;
}

.cta-block h2 {
  font-family: 'Lato', serif;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.cta-block p { opacity: 0.85; margin-bottom: 24px; }

.btn-primary {
  display: inline-block;
  padding: 13px 30px;
  background: var(--brown-light);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--accent); text-decoration: none; transform: translateY(-1px); }

/* ====== CONTACT PAGE ====== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
}

.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 4px;
  margin-top: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--cream-dark);
  border-radius: 3px;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--cream);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--brown-light);
  background: var(--white);
}

.contact-form textarea { resize: vertical; min-height: 120px; }

.contact-form button {
  margin-top: 18px;
  padding: 12px 28px;
  background: var(--brown-dark);
  color: var(--white);
  border: none;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover { background: var(--accent); }

.contact-info h3 {
  font-family: 'Lato', serif;
  font-size: 1rem;
  color: var(--brown-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  margin-top: 28px;
  border-bottom: 2px solid var(--brown-light);
  padding-bottom: 6px;
}

.contact-info p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.9;
}

.contact-info strong { color: var(--text); }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88rem;
}

.map-embed {
  margin-top: 24px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.map-embed iframe { width: 100%; height: 260px; border: 0; }

/* ====== PRODUCT SUBPAGE LIST ====== */
.product-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 24px;
  margin: 16px 0 24px;
}

.product-list li {
  padding: 7px 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.88rem;
  color: var(--text);
}

.product-list li::before {
  content: '✓ ';
  color: var(--brown-light);
  font-weight: 700;
}

/* ====== FOOTER ====== */
footer {
  background: var(--footer-bg);
  color: rgba(245,240,232,0.7);
  padding: 40px 0 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img { height: 50px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.7; }
.footer-brand p { font-size: 0.82rem; line-height: 1.8; }

.footer-col h4 {
  color: var(--brown-light);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-weight: 700;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { color: rgba(245,240,232,0.65); font-size: 0.82rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--brown-light); text-decoration: none; }

.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(245,240,232,0.4);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  nav { display: none; width: 100%; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  nav > ul > li > a { padding: 10px 16px; }
  nav ul ul { position: static; display: none; border-top: none; box-shadow: none; padding-left: 16px; }
  nav ul li:hover > ul { display: none; }
  nav ul li.open > ul { display: block; }
  .header-inner { flex-wrap: wrap; }

  .features-bar .container,
  .services-grid,
  .service-imgs { grid-template-columns: 1fr; }

  .product-boxes .container { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .product-list { grid-template-columns: 1fr; }
  .hero { height: 320px; }
  .hero-caption { left: 24px; bottom: 40px; }
  .hero-caption h1 { font-size: 1.7rem; }
}
