
:root {
  --green: #315c47;
  --teal: #087c76;
  --gold: #c89432;
  --ivory: #fff9ec;
  --ink: #173d31;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0 !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  background: #f4ead2 !important;
  color: var(--ink) !important;
  font-family: Montserrat, Arial, sans-serif !important;
}

.rog-navbar {
  position: sticky;
  top: 0;
  z-index: 10000;
  min-height: 92px;
  padding: 10px clamp(20px, 3vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(255, 251, 241, .96);
  border-bottom: 1px solid rgba(165, 126, 58, .20);
  box-shadow: 0 5px 22px rgba(56, 76, 59, .09);
  backdrop-filter: blur(15px);
}

.rog-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: #0750a1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.05;
  text-decoration: none;
}

.rog-brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 5px 7px rgba(43, 62, 48, .18));
}

.rog-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 31px);
}

.rog-nav-links a {
  position: relative;
  padding: 11px 0;
  color: #102957;
  font-size: clamp(.78rem, .9vw, .96rem);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.rog-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: #4f7b39;
  transition: right .2s ease;
}

.rog-nav-links a:hover::after,
.rog-nav-links a.active::after {
  right: 0;
}

.rog-nav-links a.active {
  color: #27633c;
}

.rog-nav-links .rog-login {
  padding: 13px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0758b7, #0785c9);
  color: white;
  box-shadow: 0 7px 18px rgba(5, 84, 158, .20);
}

.rog-nav-links .rog-login::after {
  display: none;
}

.rog-nav-toggle {
  display: none;
  width: 48px;
  height: 44px;
  padding: 9px;
  border: 1px solid rgba(49, 92, 71, .30);
  border-radius: 12px;
  background: #f2ead5;
  cursor: pointer;
}

.rog-nav-toggle span {
  display: block;
  height: 3px;
  margin: 4px 0;
  border-radius: 3px;
  background: var(--green);
}

.philosophy-hero {
  position: relative;
  min-height: 460px;
  background:
    linear-gradient(90deg, rgba(255,249,236,.30), transparent 58%),
    url('../images/filosofia.png') center center / cover no-repeat;
  overflow: hidden;
}

.philosophy-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(255,249,236,.98) 0%,
      rgba(255,249,236,.91) 27%,
      rgba(255,249,236,.38) 47%,
      transparent 66%
    ),
    linear-gradient(0deg, rgba(255,249,236,.95), transparent 25%);
  pointer-events: none;
}

.philosophy-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1400px, 100%);
  min-height: 460px;
  margin: 0 auto;
  padding: 58px clamp(28px, 5vw, 86px);
  display: flex;
  align-items: center;
}

.philosophy-copy {
  width: min(590px, 45%);
}

.philosophy-eyebrow,
.philosophy-copy h1 {
  margin: 0;
  color: #355442;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: .95;
  letter-spacing: .025em;
}

.philosophy-eyebrow {
  font-size: clamp(2rem, 4vw, 4rem);
}

.philosophy-copy h1 {
  font-size: clamp(3.1rem, 6vw, 6rem);
}

.philosophy-line {
  width: 75px;
  height: 4px;
  margin: 23px 0 18px;
  border-radius: 4px;
  background: linear-gradient(90deg, #bd8525, #efc670);
}

.philosophy-copy h2 {
  margin: 0 0 15px;
  color: #08756e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.25vw, 2.25rem);
  font-weight: 500;
  line-height: 1.25;
}

.philosophy-copy > p:last-child {
  max-width: 570px;
  margin: 0;
  color: #20332d;
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  line-height: 1.65;
}

.philosophy-values {
  position: relative;
  z-index: 3;
  width: min(1450px, calc(100% - 52px));
  margin: -22px auto 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  min-height: 205px;
  padding: 28px;
  display: grid;
  grid-template-columns: 125px 1fr;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  border: 1px solid rgba(177, 130, 49, .30);
  border-radius: 21px;
  background:
    radial-gradient(circle at 92% 15%, rgba(112, 165, 105, .20), transparent 30%),
    linear-gradient(135deg, rgba(255,251,240,.96), rgba(232,243,224,.92));
  box-shadow: 0 12px 28px rgba(79, 78, 55, .14);
}

.value-card:nth-child(2) {
  background:
    radial-gradient(circle at 92% 82%, rgba(55, 143, 112, .20), transparent 32%),
    linear-gradient(135deg, rgba(248,248,230,.96), rgba(211,238,221,.93));
}

.value-card:nth-child(3) {
  background:
    radial-gradient(circle at 90% 50%, rgba(241, 183, 67, .28), transparent 34%),
    linear-gradient(135deg, rgba(255,251,236,.97), rgba(255,232,176,.90));
}

.value-icon {
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 50%;
  background: rgba(223, 239, 209, .85);
  color: #08756e;
  font-family: Georgia, serif;
  font-size: 4.5rem;
  box-shadow: 0 7px 18px rgba(70, 101, 66, .14);
}

.value-card h3 {
  margin: 0 0 10px;
  color: #08756e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 500;
}

.value-card p {
  margin: 0;
  color: #27372f;
  font-size: 1rem;
  line-height: 1.55;
}

.philosophy-quote {
  width: min(1450px, calc(100% - 52px));
  margin: 0 auto 42px;
  padding: 28px 30px 22px;
  text-align: center;
  border: 1px solid rgba(194, 137, 40, .45);
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 50%, rgba(192, 142, 54, .22), transparent 35%),
    linear-gradient(135deg, #f7deb0, #fff4d3 48%, #f2c76e);
  box-shadow: 0 12px 30px rgba(104, 79, 35, .16);
}

.philosophy-quote p {
  margin: 0;
  color: #31513e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.4vw, 3.4rem);
  line-height: 1.12;
}

.philosophy-quote span {
  display: block;
  margin: 7px 0 17px;
  color: #574326;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}

.philosophy-quote a {
  min-width: 330px;
  min-height: 54px;
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, #087c76, #05696b);
  color: white;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  box-shadow: 0 8px 19px rgba(4, 100, 99, .23);
}

.philosophy-quote a:hover {
  transform: translateY(-2px);
}

.philosophy-quote b {
  font-size: 1.8rem;
  line-height: 1;
}

.philosophy-details {
  padding: 65px max(24px, calc((100% - 1320px) / 2)) 80px;
  background:
    radial-gradient(circle at 90% 10%, rgba(228, 177, 83, .27), transparent 30%),
    linear-gradient(145deg, #315e4d, #397664 52%, #806742);
  color: #fff8df;
}

.details-heading {
  max-width: 900px;
  margin-bottom: 38px;
}

.details-heading > p {
  margin: 0 0 8px;
  color: #ffd888;
  font-weight: 700;
  letter-spacing: .16em;
}

.details-heading h2 {
  margin: 0;
  color: #fff4d3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  font-weight: 500;
  line-height: 1.15;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.details-grid p {
  margin: 0;
  padding: 25px 27px;
  border: 1px solid rgba(255, 221, 151, .25);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  color: #fffbea;
  font-size: 1rem;
  line-height: 1.75;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

@media (max-width: 1100px) {
  .rog-nav-toggle {
    display: block;
  }

  .rog-nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    display: none;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    border: 1px solid rgba(178, 138, 66, .35);
    border-radius: 18px;
    background: rgba(255, 249, 235, .99);
    box-shadow: 0 18px 45px rgba(45, 63, 48, .25);
  }

  .rog-nav-links.is-open {
    display: flex;
  }

  .rog-nav-links a {
    padding: 13px 16px;
    border-radius: 10px;
    font-size: .98rem;
  }

  .rog-nav-links a:hover,
  .rog-nav-links a.active {
    background: rgba(67, 112, 79, .10);
  }

  .rog-nav-links a::after {
    display: none;
  }

  .rog-nav-links .rog-login {
    margin-top: 5px;
    text-align: center;
  }

  .philosophy-values {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .value-card {
    min-height: 170px;
  }
}

@media (max-width: 700px) {
  .rog-navbar {
    min-height: 74px;
    padding: 7px 12px;
  }

  .rog-brand img {
    width: 52px;
    height: 52px;
  }

  .rog-brand span {
    font-size: .82rem;
  }

  .philosophy-hero {
    min-height: auto;
    padding-top: 285px;
    background-size: auto 285px;
    background-position: 67% top;
    background-color: var(--ivory);
  }

  .philosophy-hero::after {
    background:
      linear-gradient(0deg,
        rgba(255,249,236,1) 0%,
        rgba(255,249,236,1) 47%,
        rgba(255,249,236,.18) 78%,
        transparent 100%
      );
  }

  .philosophy-hero-inner {
    min-height: auto;
    padding: 25px 20px 48px;
  }

  .philosophy-copy {
    width: 100%;
  }

  .philosophy-eyebrow {
    font-size: 2rem;
  }

  .philosophy-copy h1 {
    font-size: clamp(2.8rem, 15vw, 4.4rem);
  }

  .philosophy-values,
  .philosophy-quote {
    width: calc(100% - 24px);
  }

  .philosophy-values {
    margin-top: -12px;
  }

  .value-card {
    min-height: auto;
    padding: 22px 18px;
    grid-template-columns: 82px 1fr;
    gap: 15px;
  }

  .value-icon {
    width: 78px;
    height: 78px;
    font-size: 3.2rem;
  }

  .value-card h3 {
    font-size: 1.45rem;
  }

  .value-card p {
    font-size: .92rem;
  }

  .philosophy-quote {
    padding: 25px 16px 20px;
  }

  .philosophy-quote a {
    width: 100%;
    min-width: 0;
  }

  .philosophy-details {
    padding: 48px 14px 60px;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .details-grid p {
    padding: 21px 19px;
    font-size: .95rem;
  }
}

/* Filosofia: testo narrativo continuo, senza griglia di card */
.philosophy-details {
  padding: clamp(55px, 7vw, 95px) clamp(22px, 5vw, 70px) !important;
}

.details-heading {
  width: min(1050px, 100%) !important;
  margin: 0 auto 42px !important;
}

.details-grid {
  width: min(1050px, 100%) !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

.details-grid p {
  margin: 0 !important;
  padding: 30px 10px !important;
  color: rgba(255, 255, 255, 0.94) !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem) !important;
  line-height: 1.9 !important;
  text-align: left !important;
}

.details-grid p:first-child {
  padding-top: 4px !important;
  font-size: clamp(1.12rem, 1.5vw, 1.3rem) !important;
}

.details-grid p:last-child {
  margin-top: 38px !important;
  padding: 32px 36px !important;
  color: #244d3f !important;
  background: linear-gradient(
    135deg,
    rgba(255, 247, 218, 0.97),
    rgba(231, 255, 236, 0.95)
  ) !important;
  border: 1px solid rgba(226, 184, 88, 0.7) !important;
  border-left: 6px solid #d5a33a !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 38px rgba(24, 61, 46, 0.18) !important;
  font-weight: 500 !important;
}

@media (max-width: 700px) {
  .details-grid p {
    padding: 24px 2px !important;
    font-size: 1rem !important;
    line-height: 1.75 !important;
  }

  .details-grid p:last-child {
    padding: 26px 22px !important;
  }
}
