/* ============================================
   Rossetti & Associati - Stile Essenziale
   Pacchetto Base: design semplice ma curato
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #2c3e50;
  background: #fafbfc;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #1f5a8f; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #143f66; text-decoration: underline; }
ul { list-style: disc; padding-left: 20px; }

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, "Times New Roman", serif;
  color: #1f3a5f;
  margin: 0 0 14px;
  font-weight: 600;
  line-height: 1.3;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 14px; }

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ====== Top bar ====== */
.topbar {
  background: #143f66;
  color: #d4e3f2;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: #ffcc33; }
.topbar span { margin-right: 18px; }

/* ====== Header ====== */
.header {
  background: #fff;
  border-bottom: 1px solid #e3e8ee;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.logo {
  font-family: 'Lora', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #1f3a5f;
  letter-spacing: 0.3px;
}
.logo span {
  color: #1f5a8f;
  font-weight: 400;
  font-style: italic;
}
.logo::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #1f5a8f, #ffcc33);
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 3px;
  transform: rotate(45deg);
}

.nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.nav a {
  color: #2c3e50;
  font-size: 15px;
  font-weight: 500;
  padding: 4px 0;
  position: relative;
}
.nav a.active {
  color: #1f5a8f;
}
.nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: #ffcc33;
}
.nav a:hover { color: #1f5a8f; text-decoration: none; }

/* ====== Hero ====== */
.hero {
  background: linear-gradient(135deg, #1f3a5f 0%, #1f5a8f 100%);
  color: #fff;
  padding: 70px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,204,51,0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero h1 {
  color: #fff;
  font-size: 2.6rem;
  margin-bottom: 18px;
}
.hero p {
  max-width: 720px;
  margin: 0 auto 28px;
  color: #dbe7f2;
  font-size: 1.05rem;
}
.hero .btn + .btn { margin-left: 10px; }

/* ====== Page title (subpages) ====== */
.page-title {
  background: #f1f5f9;
  padding: 40px 0;
  border-bottom: 1px solid #e3e8ee;
  text-align: center;
}
.page-title h1 { margin-bottom: 6px; font-size: 2rem; }
.page-title p { color: #5a6a7e; margin: 0; font-size: 0.95rem; }

/* ====== Buttons ====== */
.btn {
  display: inline-block;
  padding: 11px 24px;
  background: #1f5a8f;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(31,90,143,0.2);
}
.btn:hover {
  background: #143f66;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(31,90,143,0.3);
}
.btn--secondary {
  background: #ffcc33;
  color: #1f3a5f !important;
  box-shadow: 0 2px 4px rgba(255,204,51,0.3);
}
.btn--secondary:hover {
  background: #e6b800;
  box-shadow: 0 4px 8px rgba(255,204,51,0.4);
}
.btn--outline {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.6);
  box-shadow: none;
}
.btn--outline:hover { background: #fff; color: #1f5a8f !important; }

/* ====== Sections ====== */
.section { padding: 60px 0; }
.section--gray { background: #f1f5f9; }
.section--accent {
  background: #fff;
  border-top: 1px solid #e3e8ee;
  border-bottom: 1px solid #e3e8ee;
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 { margin-bottom: 10px; }
.section-header p {
  color: #5a6a7e;
  max-width: 620px;
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffcc33;
  background: #1f3a5f;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  font-weight: 600;
}

/* ====== Intro box ====== */
.intro-box {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-left: 4px solid #ffcc33;
  padding: 28px 30px;
  margin-bottom: 40px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.intro-box h2 { text-align: left; margin-top: 0; }

/* ====== Services grid (home) ====== */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-box {
  background: #fff;
  border: 1px solid #e3e8ee;
  padding: 24px;
  border-radius: 6px;
  transition: all 0.25s ease;
  position: relative;
}
.service-box:hover {
  border-color: #1f5a8f;
  box-shadow: 0 6px 16px rgba(31,90,143,0.08);
  transform: translateY(-2px);
}
.service-box__icon {
  width: 46px;
  height: 46px;
  background: #eef4fa;
  color: #1f5a8f;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 22px;
  margin-bottom: 14px;
  font-weight: bold;
}
.service-box h3 {
  color: #1f3a5f;
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.service-box p {
  font-size: 14.5px;
  color: #5a6a7e;
  margin-bottom: 12px;
}
.service-box a {
  font-size: 14px;
  font-weight: 600;
  color: #1f5a8f;
}

/* ====== Service detail (servizi.html) ====== */
.service-detail {
  background: #fff;
  border: 1px solid #e3e8ee;
  padding: 28px 30px;
  margin-bottom: 24px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.service-detail h3 {
  color: #1f3a5f;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ffcc33;
  display: inline-block;
}
.service-detail ul { margin: 14px 0 14px 22px; }
.service-detail li {
  margin-bottom: 6px;
  font-size: 15px;
  color: #3e4e62;
}
.service-detail .tag {
  display: inline-block;
  background: #eef4fa;
  color: #1f5a8f;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* ====== Contact page ====== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 30px;
  margin-top: 10px;
}
.contact-info {
  background: #fff;
  border: 1px solid #e3e8ee;
  padding: 24px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.contact-info p { font-size: 14.5px; margin-bottom: 16px; color: #3e4e62; }
.contact-info strong {
  color: #1f3a5f;
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.contact-info a { color: #1f5a8f; font-weight: 500; }

/* ====== Form ====== */
form.contact-form {
  background: #fff;
  border: 1px solid #e3e8ee;
  padding: 28px 30px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
  color: #1f3a5f;
  font-weight: 600;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd4e0;
  font-family: inherit;
  font-size: 14.5px;
  background: #fff;
  border-radius: 4px;
  color: #2c3e50;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #1f5a8f;
  box-shadow: 0 0 0 3px rgba(31,90,143,0.12);
}
.form-success {
  background: #e8f5e9;
  border: 1px solid #3c9e3f;
  color: #205522;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 4px;
  font-size: 14px;
}
.form-field--checkbox label {
  font-weight: normal;
  font-size: 13.5px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #5a6a7e;
}
.form-field--checkbox input {
  width: auto;
  margin-top: 4px;
}

/* ====== Two-col (home "Perché sceglierci") ====== */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.feature-item {
  background: #fff;
  padding: 22px;
  border: 1px solid #e3e8ee;
  border-radius: 6px;
  border-top: 3px solid #ffcc33;
}
.feature-item strong {
  color: #1f3a5f;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 6px;
}
.feature-item p {
  font-size: 14.5px;
  color: #5a6a7e;
  margin-bottom: 0;
}

/* ====== Stats strip ====== */
.stats-strip {
  background: #1f3a5f;
  color: #fff;
  padding: 40px 0;
}
.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-num {
  font-family: 'Lora', Georgia, serif;
  font-size: 2.4rem;
  color: #ffcc33;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}
.stat-lbl {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #c0d0e2;
}

/* ====== CTA band ====== */
.cta-band {
  background: linear-gradient(135deg, #ffcc33, #f0b800);
  color: #1f3a5f;
  padding: 50px 0;
  text-align: center;
}
.cta-band h2 { color: #1f3a5f; margin-bottom: 10px; }
.cta-band p { color: #3f3820; margin-bottom: 22px; }
.cta-band .btn {
  background: #1f3a5f;
  color: #fff !important;
}
.cta-band .btn:hover { background: #143f66; }

/* ====== Footer ====== */
.footer {
  background: #1f3a5f;
  color: #c0d0e2;
  padding: 40px 0 24px;
  margin-top: 0;
  font-size: 14px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 28px;
}
.footer__col h4 {
  color: #ffcc33;
  font-family: inherit;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer__col p { margin-bottom: 8px; font-size: 14px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col ul li { margin-bottom: 6px; }
.footer a { color: #ffcc33; }
.footer a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  font-size: 13px;
  text-align: center;
  color: #8a9cb2;
}
.footer__demo {
  margin-top: 6px;
  font-size: 11.5px;
  opacity: 0.7;
  font-style: italic;
}

/* ====== Privacy page ====== */
.privacy-content { max-width: 820px; margin: 0 auto; }
.privacy-content h2 {
  text-align: left;
  margin-top: 30px;
  font-size: 1.4rem;
  padding-bottom: 6px;
  border-bottom: 1px solid #e3e8ee;
}
.privacy-content p,
.privacy-content li {
  font-size: 15px;
  color: #3e4e62;
  line-height: 1.7;
}

/* ====== Mobile ====== */
@media (max-width: 820px) {
  .hero { padding: 50px 0 45px; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 45px 0; }
  .stats-strip .container { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .topbar .container { justify-content: center; text-align: center; }
  .header .container { flex-direction: column; text-align: center; }
  .nav ul { justify-content: center; gap: 16px; }
  .services { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-strip .container { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; text-align: center; }
  h1 { font-size: 1.6rem; }
  .hero h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
}
