/*
Theme Name: RENOVISS Company Profile
Theme URI: https://renoviss.com/
Author: RENOVISS S.r.l.
Description: Company profile RENOVISS 2026. Tema autonomo per WordPress.
Version: 1.0.0
Text Domain: renoviss-2026
*/

:root {
  color-scheme: light;
  --ink: #123f52;
  --ink-2: #1b5a6e;
  --ink-3: #5a7f8f;
  --solar: #f8b51d;
  --paper: #f5f8f9;
  --white: #ffffff;
  --line: #d8e3e7;
  --muted: #5e7078;
  --field: #667a4a;
  --shadow: 0 18px 40px rgba(18, 63, 82, 0.12);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 30;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  clip: auto;
  color: var(--white);
  background: var(--ink);
  border-radius: 6px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 214px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta):focus-visible {
  color: var(--ink-2);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
}

.nav-cta,
.button.primary {
  color: var(--ink);
  background: var(--solar);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.56);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(760px, 78svh);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: end;
  color: var(--white);
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(10, 48, 63, 0.37), rgba(10, 48, 63, 0.14) 56%, rgba(10, 48, 63, 0.06)),
    linear-gradient(0deg, rgba(10, 48, 63, 0.7), rgba(10, 48, 63, 0.02) 48%),
    url("./assets/hero-solar.webp");
  background-position: center;
  background-size: cover;
}

.hero-content {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 158px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--ink-3);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading .eyebrow::before,
.section-copy .eyebrow::before,
.survey-copy .eyebrow::before,
.contact-heading .eyebrow::before {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  margin-bottom: 14px;
  background: var(--solar);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(4rem, 12vw, 8.25rem);
  line-height: 0.92;
  font-weight: 900;
}

.hero h1::before {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  margin-bottom: 20px;
  background: var(--solar);
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero-lead {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.22;
  font-weight: 700;
}

.hero-journey {
  margin: 8px 0 0;
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.metrics-band {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 4px 0 14px;
  border-bottom: 5px solid var(--solar);
}

.metrics-band strong {
  display: block;
  color: var(--ink);
  font-size: clamp(3.7rem, 7vw, 6.5rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.metric-main p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.4;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 54px;
  align-items: start;
  padding-top: 48px;
}

.section-copy p {
  max-width: 720px;
  color: #263f48;
  font-size: 1.08rem;
}

.image-feature {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.image-feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-feature figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.cycle-section {
  padding: 86px 0;
  color: var(--white);
  background: var(--ink);
}

.cycle-section .section-heading {
  width: min(var(--max), calc(100% - 32px));
  max-width: none;
  margin: 0 auto;
}

.cycle-section h2 {
  max-width: 850px;
}

.cycle-section h2,
.cycle-section .eyebrow {
  color: var(--white);
}

.cycle-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 46px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.cycle-grid article {
  position: relative;
  min-height: 250px;
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 3px solid var(--solar);
  background: rgba(255, 255, 255, 0.055);
}

.cycle-grid article:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  right: -10px;
  top: 50%;
  transform: translate(50%, -50%);
  color: var(--solar);
  background: var(--ink);
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
}

.cycle-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--solar);
  font-size: 1.2rem;
  font-weight: 900;
}

.cycle-grid h3 {
  color: var(--white);
}

.cycle-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.section-heading {
  max-width: 850px;
}

.services {
  padding-bottom: 82px;
}

.service-layout {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 28px;
}

.service-tabs {
  display: grid;
  gap: 10px;
}

.service-tab {
  min-height: 58px;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.service-tab:hover,
.service-tab:focus-visible {
  border-left-color: var(--ink-3);
}

.service-tab.active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
  border-left-color: var(--solar);
}

.service-panel {
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr);
  gap: 28px;
  padding: 34px;
  color: var(--white);
  background: var(--ink-2);
  border-radius: 8px;
}

.panel-kicker {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-panel h3 {
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.service-panel p {
  max-width: 680px;
  font-size: 1.04rem;
}

.service-panel ul {
  align-self: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-panel li {
  position: relative;
  padding: 12px 0 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.service-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 6px;
  height: 6px;
  background: var(--solar);
}

.survey-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: center;
  padding: 76px calc((100% - min(var(--max), calc(100% - 32px))) / 2);
  background: #e7eff2;
}

.survey-copy {
  padding-left: 16px;
}

.survey-copy p:last-child {
  max-width: 720px;
  color: #244552;
  font-size: 1.08rem;
}

.survey-strip img {
  width: 100%;
  max-height: 610px;
  object-fit: cover;
  border: 1px solid #c8d7dc;
  box-shadow: var(--shadow);
}

.track {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.track-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.track-grid article {
  min-height: 152px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--solar);
  border-radius: 8px;
}

.track-grid strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1;
  font-weight: 900;
}

.track-grid article:last-child strong {
  font-size: clamp(1.35rem, 1.85vw, 1.65rem);
  line-height: 1.15;
}

.track-grid span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  grid-template-areas:
    "heading card"
    "benefits card";
  column-gap: clamp(38px, 6vw, 78px);
  row-gap: 26px;
  align-items: start;
  padding: 88px calc((100% - min(var(--max), calc(100% - 32px))) / 2) 100px;
  color: var(--white);
  background: var(--ink);
}

.contact-heading {
  grid-area: heading;
}

.contact-heading h2 {
  max-width: 690px;
  font-size: clamp(2.2rem, 3.7vw, 3.15rem);
  line-height: 1.12;
}

.contact-copy {
  grid-area: benefits;
}

.contact h2,
.contact .eyebrow {
  color: var(--white);
}

.contact ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact li {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.48;
}

.contact li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.contact-card {
  grid-area: card;
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  min-width: 0;
  padding: clamp(24px, 3vw, 32px);
  color: var(--ink);
  background: var(--white);
  border-radius: 8px;
  font-style: normal;
  box-shadow: var(--shadow);
}

.contact-logo {
  width: min(230px, 100%);
  height: auto;
}

.contact-direct,
.contact-addresses {
  display: grid;
  gap: 10px;
}

.contact-card a {
  color: var(--ink-2);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.contact-addresses {
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contact-addresses > div {
  display: grid;
  gap: 2px;
  color: var(--muted);
  line-height: 1.45;
}

.contact-addresses .contact-label {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-addresses .contact-tax {
  margin-top: 2px;
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px max(16px, calc((100% - var(--max)) / 2));
  color: var(--white);
  background: #0b2f3e;
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--solar);
  font-weight: 800;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}

.privacy-page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 100px;
}

.privacy-page .eyebrow::before {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  margin-bottom: 14px;
  background: var(--solar);
}

.privacy-page h1 {
  max-width: none;
  font-size: clamp(2.6rem, 6vw, 4.3rem);
  line-height: 1.05;
}

.privacy-page h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  line-height: 1.2;
}

.privacy-page p,
.privacy-page li {
  color: #263f48;
  font-size: 1.04rem;
  line-height: 1.7;
}

.privacy-page .privacy-lead {
  max-width: 680px;
  margin-top: 18px;
  font-size: 1.16rem;
}

.privacy-page section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.privacy-page section p:last-child,
.privacy-page section ul:last-child {
  margin-bottom: 0;
}

.privacy-page ul {
  padding-left: 22px;
}

.privacy-page a {
  color: var(--ink-2);
  text-underline-offset: 3px;
}

.privacy-date {
  margin-top: 36px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 74px 0 auto 0;
    display: none;
    padding: 18px 16px 22px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: grid;
  }

  .nav-cta {
    width: fit-content;
  }

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

  .cycle-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cycle-grid article {
    min-height: auto;
    padding: 24px 28px;
  }

  .cycle-grid span {
    margin-bottom: 14px;
  }

  .cycle-grid article:not(:last-child)::after {
    content: "↓";
    top: auto;
    right: 50%;
    bottom: -15px;
    transform: translate(50%, 50%);
  }

  .intro,
  .service-layout,
  .service-panel,
  .survey-strip {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "benefits"
      "card";
  }

  .contact-card {
    width: min(100%, 640px);
    max-width: none;
    margin-left: 0;
  }

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

  .survey-strip,
  .contact {
    padding-left: 16px;
    padding-right: 16px;
  }

  .survey-copy {
    padding-left: 0;
  }

  .survey-strip img {
    max-height: 500px;
  }

}

@media (max-width: 640px) {
  .nav-shell {
    min-height: 68px;
  }

  .brand img {
    width: 176px;
  }

  .nav-links {
    inset: 68px 0 auto 0;
  }

  .hero {
    min-height: 72svh;
  }

  .hero-content {
    padding: 52px 0 130px;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 5.2rem);
  }

  .hero-lead {
    font-size: 1.22rem;
  }

  .hero-bg {
    background-image:
      linear-gradient(90deg, rgba(10, 48, 63, 0.85), rgba(10, 48, 63, 0.4)),
      linear-gradient(0deg, rgba(10, 48, 63, 0.76), rgba(10, 48, 63, 0.02) 58%),
      url("./assets/hero-solar.webp");
    background-position: 58% center;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .metrics-band {
    padding: 4px 0 10px;
    border-bottom-width: 4px;
  }

  .metrics-band strong {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .metric-main p {
    font-size: 0.94rem;
  }

  .track-grid,
  .service-tabs {
    grid-template-columns: 1fr;
  }

  .section,
  .track {
    padding: 70px 0;
  }

  .service-panel {
    padding: 24px;
  }

  .cycle-section,
  .survey-strip,
  .contact {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .contact-heading h2 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .contact {
    gap: 26px;
  }

  .site-footer {
    display: grid;
  }
}


/* Keep the sticky navigation visible under the WordPress admin bar. */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
.legacy-content { overflow-wrap: anywhere; }
