:root {
  --sico-ink: #14213d;
  --sico-muted: #5d6676;
  --sico-paper: #fffaf1;
  --sico-white: #ffffff;
  --sico-green: #0f7b5c;
  --sico-green-dark: #07513d;
  --sico-orange: #f07c24;
  --sico-blue: #2d6cdf;
  --sico-yellow: #f3bd2f;
  --sico-red: #cf3d3d;
  --sico-line: rgba(20, 33, 61, 0.12);
  --sico-shadow: 0 18px 55px rgba(20, 33, 61, 0.14);
  --sico-radius: 8px;
}

* {
  box-sizing: border-box;
}

body.sico-page {
  margin: 0;
  color: var(--sico-ink);
  background: var(--sico-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.sico-page a {
  color: inherit;
  text-decoration: none;
}

.sico-page a.sico-btn,
.sico-page .sico-btn {
  color: var(--sico-ink);
}

.sico-page a.sico-btn.primary,
.sico-page a.sico-btn.green,
.sico-page a.sico-btn.blue,
.sico-page a.sico-btn.red,
.sico-page .sico-btn.primary,
.sico-page .sico-btn.green,
.sico-page .sico-btn.blue,
.sico-page .sico-btn.red {
  color: var(--sico-white);
}

.sico-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 241, 0.94);
  border-bottom: 1px solid var(--sico-line);
  backdrop-filter: blur(16px);
}

.sico-nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sico-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--sico-green-dark);
  font-weight: 900;
  line-height: 1.05;
}

.sico-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.sico-brand small {
  display: block;
  margin-top: 3px;
  color: var(--sico-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.sico-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.sico-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--sico-line);
  border-radius: var(--sico-radius);
  padding: 10px 14px;
  background: var(--sico-white);
  color: var(--sico-ink);
  font-weight: 850;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.sico-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 33, 61, 0.12);
}

.sico-btn.primary {
  color: var(--sico-white);
  background: var(--sico-orange);
  border-color: var(--sico-orange);
}

.sico-btn.green {
  color: var(--sico-white);
  background: var(--sico-green);
  border-color: var(--sico-green);
}

.sico-btn.blue {
  color: var(--sico-white);
  background: var(--sico-blue);
  border-color: var(--sico-blue);
}

.sico-btn.red {
  color: var(--sico-white);
  background: var(--sico-red);
  border-color: var(--sico-red);
}

.sico-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: var(--sico-white);
  background: var(--sico-green-dark);
}

.sico-hero::before,
.sico-hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.sico-hero::before {
  background: var(--hero-image, url("images/sicomoro/1.jpg")) center / cover no-repeat;
  transform: scale(1.02);
}

.sico-hero::after {
  background: rgba(0, 0, 0, 0.48);
}

.sico-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 50px;
}

.sico-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--sico-radius);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 850;
}

.sico-hero h1 {
  max-width: 780px;
  margin: 0 0 14px;
  font-size: 3.5rem;
  line-height: 1;
  letter-spacing: 0;
}

.sico-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  line-height: 1.6;
}

.sico-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 72px;
}

.sico-section {
  margin-bottom: 46px;
}

.sico-section-title {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.5fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 22px;
}

.sico-section-title h2 {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.sico-section-title p,
.sico-text {
  margin: 0;
  color: var(--sico-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.sico-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sico-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sico-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sico-card {
  border: 1px solid var(--sico-line);
  border-radius: var(--sico-radius);
  padding: 22px;
  background: var(--sico-white);
  box-shadow: 0 12px 34px rgba(20, 33, 61, 0.08);
}

.sico-card h3 {
  margin: 0 0 10px;
  color: var(--sico-ink);
  font-size: 1.2rem;
  line-height: 1.2;
}

.sico-card p {
  margin: 0;
  color: var(--sico-muted);
  line-height: 1.55;
}

.sico-media-card {
  overflow: hidden;
  padding: 0;
}

.sico-media-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.sico-media-card .sico-card-body {
  padding: 22px;
}

.sico-feature {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 18px;
  align-items: stretch;
}

.sico-feature img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  border-radius: var(--sico-radius);
  box-shadow: var(--sico-shadow);
}

.sico-panel {
  display: grid;
  gap: 12px;
}

.sico-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.sico-list li {
  border: 1px solid var(--sico-line);
  border-left: 6px solid var(--sico-orange);
  border-radius: var(--sico-radius);
  padding: 14px 16px;
  background: var(--sico-white);
  color: var(--sico-muted);
  line-height: 1.5;
}

.sico-tool-panel {
  border: 1px solid var(--sico-line);
  border-radius: var(--sico-radius);
  padding: 22px;
  background: var(--sico-white);
  box-shadow: var(--sico-shadow);
}

.sico-footer {
  background: #092f25;
  color: var(--sico-white);
  padding: 28px 0;
}

.sico-footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}

.sico-footer small {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

.sico-footer a {
  color: #d6f6e8;
  font-weight: 800;
}

.sico-footer-center {
  text-align: center;
  font-weight: 850;
}

.sico-legal-links {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
}

.sico-social {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--sico-radius);
  transition: transform 180ms ease, background 180ms ease;
}

.sico-social:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.sico-instagram {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

img.noclick {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

@media (max-width: 900px) {
  .sico-nav,
  .sico-section-title,
  .sico-feature,
  .sico-footer-inner {
    grid-template-columns: 1fr;
  }

  .sico-nav {
    padding: 12px 0;
    align-items: flex-start;
  }

  .sico-actions {
    justify-content: flex-start;
  }

  .sico-grid,
  .sico-grid.two,
  .sico-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sico-footer-center,
  .sico-social {
    justify-self: start;
    text-align: left;
  }

  .sico-legal-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .sico-nav {
    width: min(100% - 16px, 1180px);
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 0;
  }

  .sico-brand {
    justify-content: center;
    gap: 6px;
    min-width: 0;
    text-align: center;
  }

  .sico-brand img {
    width: 34px;
    height: 34px;
  }

  .sico-brand small {
    display: none;
  }

  .sico-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    justify-content: stretch;
    align-items: stretch;
  }

  .sico-btn {
    width: 100% !important;
    min-height: 30px;
    padding: 6px 6px;
    gap: 4px;
    border-radius: 6px;
    font-size: 0.68rem;
    line-height: 1.05;
    white-space: normal;
    text-align: center;
  }

  .sico-btn:hover {
    transform: none;
    box-shadow: none;
  }
}

html {
  scroll-behavior: smooth;
}

.sico-page h1,
.sico-page h2,
.sico-page h3,
.sico-page p {
  margin-top: 0;
}

.sico-btn {
  font-family: inherit;
  cursor: pointer;
}

.sico-actions.start {
  justify-content: flex-start;
}

.sico-actions.end {
  justify-content: flex-end;
}

.sico-actions.spaced {
  margin-top: 18px;
}

.sico-hero.home {
  min-height: 76svh;
  align-items: center;
}

.sico-hero.home .sico-hero-inner {
  padding: 82px 0 68px;
}

.sico-hero.home::before {
  background-position: center 38%;
}

.sico-hero.home h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: 4rem;
  line-height: 0.98;
}

.sico-hero.home p {
  max-width: 660px;
  font-size: 1.22rem;
}

.sico-hero-home {
  --hero-image: url("images/sicomoro/2.jpg");
}

.sico-hero-about {
  --hero-image: url("images/sicomoro/4.jpg");
}

.sico-hero-orari {
  --hero-image: url("images/sicomoro/2.jpg");
}

.sico-hero-regolamento {
  --hero-image: url("images/sicomoro/1.jpg");
}

.sico-hero-corsi {
  --hero-image: url("images/sicomoro/3.jpg");
}

.sico-hero-privacy {
  --hero-image: url("images/sicomoro/1.jpg");
}

.sico-hero-terms {
  --hero-image: url("images/sicomoro/2.jpg");
}

.sico-hero-login {
  --hero-image: url("images/sicomoro/4.jpg");
}

.sico-hero-fotografia {
  --hero-image: url("images/sicomoro/2.jpg");
}

.sico-hero-disegno {
  --hero-image: url("images/sicomoro/3.jpg");
}

.sico-hero-uncinetto {
  --hero-image: url("images/sicomoro/4.jpg");
}

.sico-card.flat {
  box-shadow: none;
}

.sico-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
  max-width: 880px;
}

.sico-stat {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--sico-radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.sico-stat strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
}

.sico-stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.45;
}

.sico-icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: var(--sico-radius);
  background: rgba(15, 123, 92, 0.1);
  color: var(--sico-green-dark);
  font-weight: 950;
}

.sico-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.sico-highlight img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border-radius: var(--sico-radius);
  object-fit: cover;
  box-shadow: var(--sico-shadow);
}

.sico-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sico-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--sico-radius);
  background: var(--sico-white);
  box-shadow: 0 12px 34px rgba(20, 33, 61, 0.08);
}

.sico-gallery img {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: cover;
}

.sico-gallery figcaption {
  padding: 12px 14px;
  color: var(--sico-muted);
  font-weight: 800;
}

.sico-photo-band {
  margin-top: 18px;
  border-radius: var(--sico-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #092f25;
  color: var(--sico-white);
}

.sico-photo-band strong,
.sico-photo-band span {
  display: block;
}

.sico-photo-band span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
}

.sico-outing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sico-outing {
  border: 1px solid var(--sico-line);
  border-radius: var(--sico-radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.sico-outing strong {
  display: block;
  margin-bottom: 8px;
}

.sico-outing p {
  margin: 0;
  color: var(--sico-muted);
  line-height: 1.55;
}

.sico-form {
  display: grid;
  gap: 16px;
}

.sico-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sico-field {
  display: grid;
  gap: 8px;
}

.sico-field label {
  color: var(--sico-ink);
  font-weight: 850;
}

.sico-field input,
.sico-field select,
.sico-field textarea {
  width: 100%;
  border: 1px solid var(--sico-line);
  border-radius: var(--sico-radius);
  padding: 12px 13px;
  background: var(--sico-white);
  color: var(--sico-ink);
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.sico-field textarea {
  min-height: 120px;
  resize: vertical;
}

.sico-field input:focus,
.sico-field select:focus,
.sico-field textarea:focus {
  border-color: rgba(15, 123, 92, 0.55);
  box-shadow: 0 0 0 4px rgba(15, 123, 92, 0.12);
}

.sico-alert {
  border-radius: var(--sico-radius);
  padding: 13px 15px;
  font-weight: 800;
  line-height: 1.45;
}

.sico-alert.success {
  border: 1px solid rgba(15, 123, 92, 0.24);
  background: rgba(15, 123, 92, 0.1);
  color: var(--sico-green-dark);
}

.sico-alert.error {
  border: 1px solid rgba(207, 61, 61, 0.24);
  background: rgba(207, 61, 61, 0.1);
  color: #8d2222;
}

.schedule-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.schedule-actions .sico-btn {
  width: 100%;
}

.schedule-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--sico-line);
  border-radius: var(--sico-radius);
  background: var(--sico-white);
  box-shadow: 0 12px 34px rgba(20, 33, 61, 0.08);
}

.tabella-orari {
  min-width: 920px;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.tabella-orari th,
.tabella-orari td {
  border: 1px solid rgba(20, 33, 61, 0.12);
  padding: 12px 10px;
  text-align: center;
  vertical-align: middle;
}

.tabella-orari th {
  color: var(--sico-white);
  background: var(--sico-green);
  white-space: nowrap;
  font-weight: 850;
}

.calendario {
  min-width: 90px;
  min-height: 48px;
  font-weight: 750;
}

.verde-chiaro {
  background-color: #bbf7d0;
  color: #065f46;
}

.giallo-chiaro {
  background-color: #fef3c7;
  color: #92400e;
}

.blu-chiaro {
  background-color: #bfdbfe;
  color: #1e40af;
}

#tabelle-orari {
  display: none;
}

.schedule-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 28px 0 12px;
  flex-wrap: wrap;
}

.schedule-heading h3 {
  margin: 0;
  font-size: 1.35rem;
}

.rules-output {
  min-height: 210px;
}

.regolamento-actions {
  margin-bottom: 20px;
}

.rules-output ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--sico-muted);
  line-height: 1.7;
}

.rules-output li {
  margin-bottom: 10px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.55);
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-card {
  width: min(420px, 100%);
  border-radius: var(--sico-radius);
  background: var(--sico-white);
  padding: 24px;
  box-shadow: var(--sico-shadow);
}

.modal-card h3 {
  margin: 0 0 14px;
  font-size: 1.25rem;
}

.modal-card label {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
  color: var(--sico-muted);
  font-weight: 700;
}

@media (max-width: 900px) {
  .sico-stat-grid,
  .sico-highlight,
  .sico-gallery,
  .sico-outing-grid,
  .sico-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sico-main {
    padding: 38px 0 54px;
  }

  .sico-hero,
  .sico-hero.home {
    min-height: 420px;
  }

  .sico-hero h1,
  .sico-hero.home h1 {
    font-size: 2.35rem;
  }

  .sico-hero p,
  .sico-hero.home p {
    font-size: 1rem;
  }

  .sico-section-title {
    display: block;
  }

  .sico-section-title h2 {
    margin-bottom: 12px;
    font-size: 1.9rem;
  }

  .sico-grid,
  .sico-grid.two,
  .sico-grid.four,
  .sico-stat-grid,
  .sico-highlight,
  .sico-gallery,
  .sico-outing-grid,
  .sico-form-grid,
  .schedule-actions {
    grid-template-columns: 1fr;
  }

  .sico-feature img,
  .sico-highlight img {
    min-height: 260px;
  }

  .sico-gallery img,
  .sico-media-card img {
    height: 210px;
  }

  .sico-photo-band {
    align-items: flex-start;
    flex-direction: column;
  }
}
