/* =========================================
   PIETRA VIVA — style.css
   Fonts: Playfair Display + Lato
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=Lato:wght@300;400&display=swap');

/* --- Variables --- */
:root {
  --sand:    #f7f2ec;
  --sand2:   #e8ddd0;
  --sand3:   #bfae8f;
  --stone:   #9e8e7e;
  --carn:    #c4622a;
  --dark:    #3d3028;
  --white:   #ffffff;
  --ff-head: 'Playfair Display', serif;
  --ff-body: 'Lato', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--sand);
  color: var(--dark);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================
   HEADER & NAV
   ========================================= */
header {
  grid-row: 1;
  background: var(--sand2);
  border-bottom: 1px solid var(--sand3);
  position: sticky;
  top: 0;
  z-index: 100;
}

main {
  grid-row: 2;
}

header nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
}

/* Logo — save at correct display size, no width override needed */
header nav a img {
   height: 68px;
   width: auto
}

header nav ul {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 28px;
  align-items: center;
}

header nav ul a {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--stone);
  transition: color 0.2s;
}

header nav ul a:hover { color: var(--dark); }

header nav ul a.active {
  color: var(--dark);
  border-bottom: 1px solid var(--carn);
  padding-bottom: 2px;
}

/* Hamburger (mobile) */
header nav button {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

header nav button span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--dark);
}

/* =========================================
   HERO
   ========================================= */
#hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
}

/* Overlay via pseudo-element — no div needed */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(61, 48, 40, 0.85) 45%,
    rgba(61, 48, 40, 0.15) 100%
  );
}

#hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#hero section {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 0 32px 56px;
}

#hero section p {
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--carn);
  text-transform: uppercase;
  margin-bottom: 14px;
}

#hero section h1 {
  font-family: var(--ff-head);
  font-size: 48px;
  font-weight: 400;
  color: var(--sand);
  line-height: 1.15;
  margin-bottom: 18px;
}

#hero section h2 {
  color: var(--sand2);
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  max-width: 320px;
  margin-bottom: 30px;
}

#hero section a {
  display: inline-block;
  background: var(--carn);
  color: var(--sand);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 32px;
  transition: background 0.2s;
}

#hero section a:hover { background: #a8521f; }

/* =========================================
   PRODUCT GRID
   ========================================= */
#product-grid {
  background: var(--white);
  padding: 64px 32px;
}

#product-grid h2 {
  font-family: var(--ff-head);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 2px;
  max-width: 1100px;
  margin: 0 auto 6px;
}

#product-grid > p {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--stone);
  max-width: 1100px;
  margin: 0 auto 36px;
}

#product-grid ul {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
}

#product-grid ul li {
  flex: 1;
  background: var(--sand);
  border: 1px solid var(--sand3);
  transition: border-color 0.2s;
}

#product-grid ul li:hover { border-color: var(--stone); }

#product-grid article a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  width: 100%;
}

#product-grid article a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

#product-grid article:hover a img { transform: scale(1.04); }

#product-grid article h3 {
  font-family: var(--ff-head);
  font-size: 15px;
  padding: 14px 16px 4px;
}

#product-grid article p {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--stone);
  padding: 4px 16px 8px;
}

/* Price and button side by side */
#product-grid article strong {
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  color: var(--carn);
  padding: 8px 16px 16px;
}

#product-grid article button {
  float: right;
  background: var(--carn);
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 8px 16px 16px 0;
  transition: background 0.2s;
}

#product-grid article button:hover { background: #a8521f; }


/* =========================================
   TAGLINE
   ========================================= */
#tagline {
  background: var(--sand2);
  padding: 48px 32px;
  text-align: center;
}

#tagline p {
  font-family: var(--ff-head);
  font-style: italic;
  font-size: 22px;
  color: var(--dark);
  letter-spacing: 1px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

#tagline p em { color: var(--carn); font-style: normal; }

/* =========================================
   FOOTER
   ========================================= */
footer {
  grid-row: 3;
  background: var(--sand2);
  border-top: 1px solid var(--sand3);
  max-width: 100%;
  padding: 28px 32px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-family: var(--ff-head);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--dark);
}

footer p .adr {
  display: block;
  font-family: var(--ff-body);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--stone);
  margin-top: 4px;
}

footer ul {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
}

footer ul a {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--stone);
  transition: color 0.2s;
}

footer ul a:hover { color: var(--dark); }

footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
}

footer nav a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--sand3);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  color: var(--stone);
  transition: border-color 0.2s, color 0.2s;
}

footer nav a:hover { border-color: var(--carn); color: var(--carn); }

/* =========================================
   ABOUT & CARE — shared layout
   ========================================= */
#about, #care {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

#about img, #care img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

#about div p:first-child, #care div p:first-child {
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--carn);
  text-transform: uppercase;
  margin-bottom: 14px;
}

#about div h1, #care div h1 {
  font-family: var(--ff-head);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 28px;
}

#about div p, #care div p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--stone);
  margin-bottom: 18px;
}

#about div p em, #care div p em {
  color: var(--carn);
  font-style: italic;
}

#about div a, #care div a {
  display: inline-block;
  border: 1px solid var(--sand3);
  color: var(--dark);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 13px 28px;
  margin-top: 12px;
  transition: border-color 0.2s, color 0.2s;
}

#about div a:hover, #care div a:hover { border-color: var(--carn); color: var(--carn); }

/* =========================================
   SHOP
   ========================================= */
#shop {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 32px;
}

#shop h1 {
  font-family: var(--ff-head);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

#shop > p {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 40px;
}

#shop ul {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
}

#shop ul li {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--sand3);
  transition: border-color 0.2s;
}

#shop ul li:hover { border-color: var(--stone); }

#shop article {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

#shop article h2 {
  width: 100%;
  font-family: var(--ff-head);
  font-size: 15px;
  font-weight: 400;
  padding: 14px 16px 4px;
}

#shop article a {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  order: -1;
}

#shop article a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

#shop article:hover a img { transform: scale(1.04); }

#shop article p {
  width: 100%;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--stone);
  padding: 4px 16px 8px;
}

#shop article strong {
  flex: 1;
  font-size: 14px;
  font-weight: 400;
  color: var(--carn);
  padding: 8px 16px 16px;
}

#shop article button {
  flex-shrink: 0;
  background: var(--carn);
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 8px 16px 16px 0;
  transition: background 0.2s;
}

#shop article button:hover { background: #a8521f; }

/* =========================================
   CONTACT
   ========================================= */
#contact {
  max-width: 600px;
  margin: 80px auto;
  padding: 0 32px;
}

#contact p:first-child {
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--carn);
  text-transform: uppercase;
  margin-bottom: 14px;
}

#contact h1 {
  font-family: var(--ff-head);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
}

#contact h2 {
  font-family: var(--ff-head);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
  margin-top: 40px;
  text-align: left;
}

#contact p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--stone);
  margin-bottom: 40px;
}

#contact form {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 6px;
}

#contact form label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 14px;
}

#contact form input,
#contact form textarea {
  background: var(--white);
  border: 1px solid var(--sand3);
  padding: 12px 16px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

#contact form input:focus,
#contact form textarea:focus {
  border-color: var(--carn);
}

#contact form textarea {
  resize: vertical;
}

#contact form button {
  margin-top: 24px;
  background: var(--carn);
  color: var(--sand);
  border: none;
  font-family: var(--ff-body);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 32px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s;
}

#contact form button:hover { background: #a8521f; }

#contact .map-embed {
  margin-top: 32px;
  overflow: hidden;
  border-radius: 2px;
}

#contact .map-embed iframe {
  display: block;
  width: 100%;
}

/* =========================================
   MEDIA QUERY — mobile
   ========================================= */
@media (max-width: 768px) {

  header nav button { display: flex; }

  header nav ul {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--sand2);
    flex-direction: column;
    padding: 20px 32px;
    border-bottom: 1px solid var(--sand3);
    gap: 16px;
  }

  header nav ul.open { display: flex; }

  #hero section h1 { font-size: 32px; }

  #product-grid ul { flex-direction: column; }

  #about {
  grid-template-columns: 1fr;
  gap: 40px;
  margin: 48px auto;
  }

  #care {
  grid-template-columns: 1fr;
  gap: 40px;
  margin: 48px auto;
}

#shop ul { flex-direction: column; }
#shop { margin: 48px auto; }

  footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  footer ul { flex-wrap: wrap; justify-content: center; }
}

/* =========================================
   ACCESSIBILITÀ
   ========================================= */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
