/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --olive:       #7a8c50;
  --olive-light: #9aae6a;
  --olive-bg:    #8e9e64;
  --olive-dark:  #5a6838;
  --white:       #ffffff;
  --text:        #555;
  --text-light:  #777;
  --border:      #ddd;
  --script: 'Dancing Script', cursive;
  --sans:   'Open Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body  { font-family: var(--sans); color: var(--text); overflow-x: hidden; }
a     { text-decoration: none; color: inherit; }
img   { max-width: 100%; display: block; }
ul    { list-style: none; }

/* ── HEADER ── */
.site-header {
  position: relative;
  background-image: url('img/bg_casamonache2.jpg');
  background-size: cover;
  background-position: center 30%;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.06);
}

/* ── LOGO ── */
.logo-wrap {
  position: relative;
  z-index: 2;
  width: 148px;
  height: 148px;
  background: rgba(255,255,255,0.93);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -2px;
  box-shadow:
    0 4px 20px rgba(0,0,0,0.22),
    0 0 0 4px rgba(255,255,255,0.7),
    0 0 0 7px rgba(122,140,80,0.35);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.logo-wrap:hover {
  transform: scale(1.05);
  box-shadow:
    0 8px 28px rgba(0,0,0,0.28),
    0 0 0 4px rgba(255,255,255,0.8),
    0 0 0 8px rgba(122,140,80,0.5);
}
.logo-wrap img {
  width: 122px;
  height: auto;
  transition: transform 0.25s ease;
}

/* ── NAV ── */
nav {
  position: relative;
  z-index: 10;
  width: 100%;
  background: rgba(255,255,255,0.97);
  border-top: 3px solid var(--olive);
}
nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
}
nav ul li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #444;
  transition: color .2s;
}
nav ul li a:hover,
nav ul li.active a { color: var(--olive); }
nav ul li.active a {
  border-bottom: 3px solid var(--olive);
  margin-bottom: -3px;
}
nav ul li.search-btn a { font-size: 1rem; color: #999; }

/* ── HERO ── */
.hero {
  position: relative;
  width: 100%;
  height: 420px;
  background-image: url('img/slider1.png');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.28);
}
.hero-content { position: relative; z-index: 2; padding: 0 20px; }
.hero h1 {
  font-family: var(--script);
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--olive-light);
  text-shadow: 1px 2px 8px rgba(0,0,0,0.45);
  line-height: 1.1;
  margin-bottom: 14px;
}
.hero p {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 600;
  color: var(--white);
  text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}

/* ── TAGLINE ── */
.tagline {
  background: #fff;
  text-align: center;
  padding: 48px 20px;
}
.tagline h2 {
  font-family: var(--script);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--olive);
  margin-bottom: 10px;
}
.tagline p {
  font-family: var(--script);
  font-size: 1.5rem;
  color: var(--olive);
}
.tagline hr {
  width: 420px; max-width: 90%;
  border: none; border-top: 1px solid #ccc;
  margin: 24px auto 0;
}

/* ── SECTION TITLE (script centered) ── */
.section-title {
  font-family: var(--script);
  font-size: 2rem;
  font-weight: 700;
  color: var(--olive);
  text-align: center;
  margin-bottom: 30px;
}
.section-title.white { color: #fff; }

/* ── PRODUCTS PARALLAX BAND ── */
.products-band {
  position: relative;
  background-image: url('img/bg_casamonache2.jpg');
  background-size: cover;
  background-position: center bottom;
  background-attachment: fixed;
  padding: 70px 20px;
  text-align: center;
}
.products-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.50);
}
.products-band > * { position: relative; z-index: 2; }

.products-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}
.product-item {
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.product-icon {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-icon img { width: 54px; height: 54px; object-fit: contain; filter: brightness(10); }
.product-item h3 {
  font-family: var(--script);
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
}
.product-item p {
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  text-align: center;
}

/* ── OLIVE BAND ── */
.olive-band {
  background-color: var(--olive-bg);
  padding: 60px 20px;
  text-align: center;
}
.olive-band h2 {
  font-family: var(--script);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}
.olive-band p {
  font-size: 0.88rem;
  font-style: italic;
  color: rgba(255,255,255,0.92);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── TWO COL BOTTOM ── */
.two-col-section { background:#fff; padding: 60px 40px; }
.two-col-grid {
  display: flex;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.two-col-grid .col {
  flex: 1;
  min-width: 280px;
}
.two-col-grid .col h3 {
  font-family: var(--script);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--olive-dark);
  margin-bottom: 20px;
}

/* ── MAP ── */
.map-wrap {
  width: 100%; height: 230px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ── NEWSLETTER ── */
.newsletter-note {
  font-size: 0.88rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 20px;
}
.newsletter-form { display: flex; flex-direction: column; gap: 12px; }
.newsletter-form input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.85rem;
  outline: none;
  transition: border-color .2s;
}
.newsletter-form input:focus { border-color: var(--olive); }
.newsletter-form button,
.btn {
  align-self: flex-start;
  padding: 10px 28px;
  background: var(--olive);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.85rem;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background .2s;
}
.newsletter-form button:hover,
.btn:hover { background: var(--olive-dark); }

/* ── PAGE CONTENT (inner pages) ── */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px;
}
.page-content h1 {
  font-family: var(--script);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--olive);
  margin-bottom: 30px;
}
.page-content h2 {
  font-family: var(--script);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--olive);
  margin: 36px 0 12px;
}
.page-content h3 {
  font-family: var(--script);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--olive);
  margin: 24px 0 8px;
}
.page-content p {
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.page-content ul {
  list-style: disc;
  margin: 0 0 16px 24px;
}
.page-content ul li {
  line-height: 1.8;
  font-size: 0.9rem;
  color: var(--olive-dark);
}

/* ── TWO COL TEXT+IMG ── */
.text-img-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.text-img-row .img-col { flex: 0 0 340px; }
.text-img-row .img-col img { width: 100%; border-radius: 4px; }
.text-img-row .text-col { flex: 1; min-width: 240px; }

/* ── FLOW DIAGRAM ── */
.flow-diagram {
  text-align: center;
  padding: 30px 20px;
  background: #f9f8f5;
  border-radius: 6px;
  margin: 30px 0;
}
.flow-diagram .flow-line {
  font-family: var(--script);
  font-size: 1.3rem;
  color: var(--olive);
  font-weight: 700;
  margin-bottom: 8px;
}

/* ── PRODUCT LIST ── */
.product-section { margin-bottom: 50px; }
.product-section .cat-title {
  font-family: var(--script);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--olive);
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
}
.product-card {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px dashed #e5e5e5;
}
.product-card:last-child { border-bottom: none; }
.product-card h3 {
  font-family: var(--script);
  font-size: 1.35rem;
  color: var(--olive);
  margin-bottom: 8px;
}
.product-card .ingredients {
  font-size: 0.84rem;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.7;
}
.product-card .note {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--olive-dark);
  line-height: 1.6;
}

/* ── GALLERY GRID ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 40px 0;
}
.gallery-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform .25s, box-shadow .25s;
}
.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

/* ── INGREDIENT CARD ── */
.ingredient-card {
  margin-bottom: 46px;
  padding-bottom: 36px;
  border-bottom: 1px solid #eee;
}
.ingredient-card:last-child { border-bottom: none; }
.ingredient-card h2 {
  font-family: var(--script);
  font-size: 1.8rem;
  color: var(--olive);
  margin-bottom: 14px;
}
.ingredient-card p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 12px;
}

/* ── BLOG ── */
.blog-list { max-width: 900px; margin: 0 auto; padding: 60px 40px; }
.blog-list h1 {
  font-family: var(--script);
  font-size: 2.2rem;
  color: var(--olive);
  margin-bottom: 40px;
}
.blog-post {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  padding-bottom: 36px;
  border-bottom: 1px solid #eee;
  margin-bottom: 36px;
}
.blog-post .thumb {
  flex: 0 0 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: #e8e8e8;
}
.blog-post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-post .post-body { flex: 1; }
.blog-post .post-body h2 {
  font-family: var(--script);
  font-size: 1.5rem;
  color: var(--olive);
  margin-bottom: 4px;
}
.blog-post .meta {
  font-size: 0.78rem;
  color: #aaa;
  margin-bottom: 10px;
}
.blog-post .meta a { color: var(--olive-light); }
.blog-post .excerpt { font-size: 0.88rem; color: var(--text); line-height: 1.7; }

/* ── CONTACT PAGE ── */
.contact-map-full {
  width: 100%;
  height: 360px;
  background: #e8e8e8;
}
.contact-map-full iframe { width: 100%; height: 100%; border: 0; }

.contact-form-wrap {
  max-width: 780px;
  margin: 60px auto;
  padding: 0 30px;
  text-align: center;
}
.contact-form-wrap h2 {
  font-family: var(--script);
  font-size: 2rem;
  color: var(--olive);
  margin-bottom: 30px;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.contact-form input,
.contact-form textarea {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.85rem;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--olive); }
.contact-form textarea {
  grid-column: 1 / -1;
  min-height: 130px;
  resize: vertical;
}
.contact-form .submit-wrap { grid-column: 1 / -1; text-align: left; }
.contact-form button {
  padding: 11px 32px;
  background: var(--olive);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.88rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background .2s;
}
.contact-form button:hover { background: var(--olive-dark); }

/* ── FOOTER ── */
footer {
  background-color: var(--olive-bg);
  padding: 18px 30px;
  text-align: center;
}
footer p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.87);
  line-height: 1.9;
}
footer a {
  color: rgba(255,255,255,0.95);
  text-decoration: underline;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .two-col-grid { flex-direction: column; }
  .text-img-row .img-col { flex: 0 0 100%; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form textarea { grid-column: 1; }
  .contact-form .submit-wrap { grid-column: 1; }
}
@media (max-width: 768px) {
  .hero { height: 300px; }
  .hero h1 { font-size: 2.4rem; }
  nav ul li a { padding: 8px 10px; font-size: 0.75rem; }
  .products-grid { gap: 24px; }
  .product-item { width: 145px; }
  .page-content { padding: 40px 20px; }
  .two-col-section { padding: 40px 20px; }
  .blog-list { padding: 40px 20px; }
  .blog-post { flex-direction: column; }
}
@media (max-width: 480px) {
  .logo-wrap { width: 110px; height: 110px; }
  .logo-wrap img { width: 90px; }
  .hero { height: 250px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.88rem; }
}
