/* =========================================================
   Forum Colorum — Foglio di stile principale
   © 2026 Gianluigi Ruju — Artificial Synapsis
   ========================================================= */

/* ---------- Reset essenziale ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #1a1a1a;
  background: #fafaf7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #b8232a; text-decoration: none; transition: color .2s ease; }
a:hover { color: #7d1419; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Garamond', 'Georgia', serif;
  font-weight: 500;
  line-height: 1.2;
  color: #111;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-top: 2em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-top: 1.5em; }
p { margin: 0 0 1em; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .75rem;
  font-weight: 600;
  color: #b8232a;
  margin: 0 0 1em;
}

blockquote {
  border-left: 3px solid #b8232a;
  margin: 2em 0;
  padding: .25em 0 .25em 1.5em;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: #333;
}

/* ---------- Layout ---------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 1.5rem; }

section { padding: 4rem 0; }
section.alt { background: #f3f1ea; }
section.dark { background: #111; color: #f3f1ea; }
section.dark h1, section.dark h2, section.dark h3 { color: #fff; }
section.dark .eyebrow { color: #e5a93b; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,247,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e6e3d9;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #111;
}
.brand .accent { color: #b8232a; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #1a1a1a;
  padding: .4rem .7rem;
  font-size: .9rem;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  margin: 0; padding: 0;
  list-style: none;
}
.site-nav a {
  color: #1a1a1a;
  font-size: .92rem;
  font-weight: 500;
  padding: .25rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a.active {
  color: #b8232a;
  border-bottom-color: #b8232a;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    top: 100%; right: 0; left: 0;
    background: #fafaf7;
    border-bottom: 1px solid #e6e3d9;
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 1rem 1.5rem; }
  .site-nav li { padding: .5rem 0; border-bottom: 1px solid #ece9e0; }
  .site-nav li:last-child { border-bottom: none; }
}

/* ---------- Lingua switcher ---------- */
.lang-switch {
  font-size: .8rem;
  color: #666;
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.lang-switch a { color: #666; }
.lang-switch a.current { color: #b8232a; font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  background: linear-gradient(180deg, #fafaf7 0%, #f3f1ea 100%);
}
.hero h1 { max-width: 900px; margin-inline: auto; }
.hero .lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: #444;
  max-width: 700px;
  margin: 1.5rem auto 2rem;
}
.hero-logo {
  max-width: 340px;
  margin: 0 auto 2rem;
}

/* ---------- Button / CTA ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.8rem;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .03em;
  border-radius: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: #b8232a; color: #fff;
}
.btn-primary:hover { background: #7d1419; color: #fff; }
.btn-secondary {
  background: transparent;
  color: #1a1a1a;
  border-color: #1a1a1a;
}
.btn-secondary:hover { background: #1a1a1a; color: #fff; }
.btn + .btn { margin-left: .75rem; }

/* ---------- Grid generale ---------- */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 800px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Card ---------- */
.card {
  background: #fff;
  border: 1px solid #e6e3d9;
  padding: 2rem;
  border-radius: 4px;
}
.card h3 { margin-top: 0; }
.card .icon {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: #b8232a;
  display: block;
  margin-bottom: .5rem;
}

/* ---------- Step list ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.5rem 0 1.5rem 4rem;
  border-bottom: 1px solid #e6e3d9;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: #b8232a;
  line-height: 1;
}
.steps li h3 { margin: 0 0 .35em; }
.steps li:last-child { border-bottom: none; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery figure { margin: 0; }
.gallery img {
  border-radius: 2px;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.gallery figcaption {
  font-size: .85rem;
  color: #666;
  padding-top: .5rem;
  font-style: italic;
}
.sim-badge {
  display: inline-block;
  background: #b8232a;
  color: #fff;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .15rem .5rem;
  border-radius: 2px;
  margin-right: .5rem;
  vertical-align: middle;
}

/* ---------- Tabella prezzi ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: .95rem;
}
.price-table th,
.price-table td {
  text-align: left;
  padding: .75rem 1rem;
  border-bottom: 1px solid #e6e3d9;
}
.price-table th {
  background: #f3f1ea;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1rem;
}
.price-table td:nth-child(2),
.price-table td:nth-child(3) { text-align: right; font-variant-numeric: tabular-nums; }
.price-table tr.total { font-weight: 700; background: #fff8e7; }

/* ---------- Form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.form-grid label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: #333;
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid #d0cdc1;
  border-radius: 2px;
  font: inherit;
  background: #fff;
  transition: border-color .2s;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: #b8232a;
}
.form-grid textarea { min-height: 120px; resize: vertical; }
.form-grid .checkbox-row {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .9rem;
}
.form-grid .checkbox-row input {
  width: auto; margin-top: .25rem;
}

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid #e6e3d9;
  padding: 1.25rem 0;
}
.faq summary {
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 0;
  font-size: 1.5rem;
  color: #b8232a;
  transition: transform .2s;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 1rem; color: #444; }

/* ---------- Quote / pull ---------- */
.quote-block {
  text-align: center;
  padding: 3rem 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  line-height: 1.4;
  color: #333;
  max-width: 900px;
  margin: 0 auto;
}
.quote-block::before { content: '“'; font-size: 4rem; color: #b8232a; display: block; line-height: 0.5; margin-bottom: 1rem; }
.quote-block .attrib { display: block; font-style: normal; font-family: 'Inter', sans-serif; font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; color: #666; margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #111;
  color: #c8c5b8;
  padding: 4rem 0 2rem;
  font-size: .9rem;
}
.site-footer h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
}
.site-footer a { color: #c8c5b8; }
.site-footer a:hover { color: #e5a93b; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .25rem 0; }
.copyright {
  border-top: 1px solid #2a2a2a;
  padding-top: 1.5rem;
  text-align: center;
  color: #888;
  font-size: .8rem;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-2 { margin-bottom: 2rem; }
.divider {
  height: 1px;
  background: #e6e3d9;
  margin: 3rem 0;
  border: none;
}

/* ---------- Banner avvertenza simulazione ---------- */
.notice {
  background: #fff8e7;
  border-left: 4px solid #e5a93b;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-size: .95rem;
}
.notice strong { color: #7a5a00; }
