/* Shared styles for inner pages (blog, chi-siamo, contatti, legal) */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body); font-size: var(--fs-body);
  line-height: var(--lh-body); color: var(--text-body);
  background: var(--cream); -webkit-font-smoothing: antialiased;
  min-height: 100dvh; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }
h1,h2,h3,h4 { font-family: var(--font-display); color: var(--text-heading); line-height: 1.15; letter-spacing: -0.025em; font-weight: var(--fw-semibold); text-wrap: balance; }
p { line-height: 1.7; }

/* Nav */
.pg-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(243,236,219,0.9); backdrop-filter: blur(14px);
  border-bottom: 1.5px solid rgba(35,33,87,0.08);
}
.pg-nav-inner {
  max-width: 1200px; margin-inline: auto; padding-inline: clamp(20px,5vw,60px);
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.pg-logo { height: 26px; width: auto; }
.pg-nav-links { display: flex; align-items: center; gap: 28px; }
.pg-nav-links a {
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: 0.9rem; color: var(--indigo-900); opacity: 0.65; transition: opacity 0.16s;
}
.pg-nav-links a:hover { opacity: 1; }
.pg-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cta-bg); color: var(--cta-text);
  font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 0.9rem;
  padding: 11px 20px; border-radius: 999px;
  box-shadow: var(--shadow-pop); transition: transform 0.17s, background 0.17s;
}
.pg-cta:hover { transform: translateY(-2px); background: var(--cta-bg-hover); }
@media (max-width: 640px) { .pg-nav-links { display: none; } }
@media (max-width: 760px) {
  .about-card-grid,
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Layout */
.pg-wrap { max-width: 1100px; margin-inline: auto; padding-inline: clamp(20px,5vw,60px); }
.pg-wrap-narrow { max-width: 760px; margin-inline: auto; padding-inline: clamp(20px,5vw,60px); }
.pg-hero {
  padding: clamp(52px,8vw,96px) 0 clamp(36px,5vw,56px);
  border-bottom: 1.5px solid rgba(35,33,87,0.07);
}
.pg-eyebrow {
  font-family: var(--font-accent); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--indigo);
  display: inline-block; margin-bottom: 14px;
}
.pg-hero h1 { font-size: clamp(2rem,5vw,3rem); margin-bottom: 16px; }
.pg-hero p { font-size: 1.1rem; color: rgba(22,19,31,0.6); max-width: 56ch; }
.pg-content { padding: clamp(40px,6vw,72px) 0; flex: 1; }

/* Buttons */
.btn-p {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 0.95rem;
  padding: 13px 22px; border-radius: 14px; border: none; cursor: pointer;
  transition: transform 0.17s, background 0.17s, box-shadow 0.17s;
}
.btn-p:hover { transform: translateY(-1px); }
.btn-p-primary { background: var(--indigo-900); color: #fff; }
.btn-p-primary:hover { background: var(--indigo, #3633a8); }
.btn-p-ghost { background: none; color: var(--indigo-900); box-shadow: inset 0 0 0 1.5px rgba(35,33,87,0.2); }
.btn-p-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--indigo-900); }
.btn-p svg { width: 16px; height: 16px; }

/* Cards */
.card-p {
  background: #fff; border-radius: 24px;
  border: 1.5px solid rgba(35,33,87,0.07);
  padding: 28px; transition: box-shadow 0.2s, transform 0.2s;
}
.card-p:hover { box-shadow: 0 6px 28px rgba(35,33,87,0.07); transform: translateY(-2px); }

/* Forms */
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: 0.88rem; color: var(--indigo-900);
}
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid rgba(35,33,87,0.13); background: var(--cream);
  font-family: var(--font-body); font-size: 0.97rem; color: var(--indigo-900);
  outline: none; resize: vertical;
  transition: border-color 0.17s, box-shadow 0.17s;
}
.field input:focus, .field textarea:focus {
  border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(35,33,87,0.08);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(22,19,31,0.32); }

/* Footer */
.pg-footer {
  background: var(--ink); color: var(--cream);
  padding: 40px 0 28px; margin-top: auto;
}
.pg-footer-inner {
  max-width: 1200px; margin-inline: auto; padding-inline: clamp(20px,5vw,60px);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.pg-footer-logo { height: 22px; opacity: 0.7; }
.pg-footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.pg-footer-links a { font-size: 0.85rem; opacity: 0.5; transition: opacity 0.16s; }
.pg-footer-links a:hover { opacity: 0.9; }
.pg-footer-copy { font-size: 0.82rem; opacity: 0.38; }
.pg-footer-social { display: flex; gap: 10px; align-items: center; }
.pg-footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(243,236,219,0.1); display: flex; align-items: center; justify-content: center;
  transition: background 0.16s, opacity 0.16s; opacity: 0.55;
}
.pg-footer-social a:hover { background: rgba(243,236,219,0.2); opacity: 1; }
.pg-footer-social svg { width: 16px; height: 16px; }

/* Legal pages */
.legal-body { display: flex; flex-direction: column; gap: 36px; }
.legal-section h2 { font-size: 1.15rem; margin-bottom: 10px; }
.legal-section p, .legal-section li { font-size: 0.97rem; color: rgba(22,19,31,0.65); }
.legal-section ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.legal-note {
  background: rgba(35,33,87,0.05); border-left: 3px solid var(--indigo);
  border-radius: 0 12px 12px 0; padding: 14px 18px;
  font-size: 0.88rem; color: rgba(22,19,31,0.6); line-height: 1.55;
}
