:root {
  --bg: #ffffff;
  --bg-soft: #eff6ff;
  --bg-dark: #1d4ed8;
  --text: #0f172a;
  --text-soft: #334155;
  --line: #dbeafe;
  --accent: #38bdf8;
  --accent-hover: #0ea5e9;
  --accent-soft: #e0f2fe;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(29, 78, 216, 0.10);
  --radius: 20px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 76px;
  width: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.logo:hover img {
  opacity: 0.9;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(219, 234, 254, 0.9);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--text-soft);
  font-weight: 600;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--bg-dark);
}

.main-nav a.active {
  color: #1d4ed8;
  font-weight: 700;
  border-bottom: 2px solid #38bdf8;
  padding-bottom: 4px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  transition: all 0.22s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #38bdf8 100%);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(29, 78, 216, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(29, 78, 216, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--bg-dark);
  border-color: #bfdbfe;
}

.btn-secondary:hover {
  border-color: #93c5fd;
  background: #ffffff;
  transform: translateY(-2px);
}

.btn-light {
  background: var(--white);
  color: var(--bg-dark);
}

.btn-light:hover {
  transform: translateY(-2px);
}

/* HERO */
.hero {
  padding: 84px 0 64px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.24), transparent 28%),
    radial-gradient(circle at left center, rgba(29, 78, 216, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--bg-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 4vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero-description {
  max-width: 640px;
  font-size: 1.08rem;
  color: var(--text-soft);
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* HERO VISUAL */
.hero-visual {
  position: relative;
  min-height: 490px;
}

.visual-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(219, 234, 254, 0.95);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card-large {
  left: 0;
  top: 56px;
  width: 74%;
  padding: 36px;
}

.card-small {
  padding: 24px;
  width: 48%;
}

.top-right {
  right: 0;
  top: 0;
}

.bottom-left {
  right: 18px;
  bottom: 18px;
  width: 58%;
}

.mini-label {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bg-dark);
  margin-bottom: 12px;
}

.big-number {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--bg-dark);
}

.medium-number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--bg-dark);
}

.visual-card p {
  margin: 0;
  color: var(--text-soft);
}

.visual-dots {
  position: absolute;
  inset: 36px 24px 12px 38px;
  border-radius: 30px;
  background-image: radial-gradient(rgba(56, 189, 248, 0.24) 1px, transparent 1px);
  background-size: 18px 18px;
  z-index: -1;
}

/* STRIP */
.intro-strip {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.intro-strip p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text-soft);
  text-align: center;
}

/* SECTIONS */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 38px;
}

.section-tag {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--bg-dark);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-tag-light {
  color: rgba(255, 255, 255, 0.82);
}

.section h2,
.cta-section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.section-heading p,
.two-columns p,
.cta-section p {
  color: var(--text-soft);
  font-size: 1.04rem;
}

.two-columns {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

/* SERVICE CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbeafe;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 10px 28px rgba(29, 78, 216, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: #93c5fd;
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.12), rgba(56, 189, 248, 0.18));
  color: var(--bg-dark);
  font-weight: 800;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.24rem;
}

.service-card p {
  margin: 0;
  color: var(--text-soft);
}

/* STATS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-box {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 28px 22px;
  text-align: left;
  box-shadow: 0 8px 22px rgba(29, 78, 216, 0.04);
}

.stat-box strong {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--bg-dark);
}

.stat-box span {
  color: var(--text-soft);
}

/* AUDIENCE CARDS */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.audience-item {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 24px 22px;
  text-align: left;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  overflow: hidden;
}

.audience-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #1d4ed8 0%, #38bdf8 100%);
  opacity: 0.95;
}

.audience-item::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  box-shadow: 0 0 0 8px rgba(56, 189, 248, 0.08);
}

.audience-item:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: 0 16px 34px rgba(29, 78, 216, 0.10);
  background: #ffffff;
}

/* OBJECTIVE CARDS */
.objective-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.objective-item {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 24px 22px;
  text-align: left;
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  overflow: hidden;
}

.objective-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #1d4ed8 0%, #38bdf8 100%);
}

.objective-item:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: 0 16px 34px rgba(29, 78, 216, 0.10);
  background: #ffffff;
}

.objective-kicker {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg-dark);
}

.objective-text {
  display: block;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
}

/* CTA */
.cta-section {
  padding: 88px 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 55%, #38bdf8 100%);
  color: var(--white);
}

.cta-box {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 28px;
  align-items: center;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.84);
  margin: 0;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* CONTACT PAGE */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2,
.contact-form-card h2 {
  margin-bottom: 18px;
}

.contact-intro {
  max-width: 560px;
  font-size: 1.05rem;
  color: var(--text-soft);
  margin: 0 0 30px;
}

.contact-details {
  display: grid;
  gap: 22px;
}

.contact-item {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.contact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg-dark);
}

.contact-item strong {
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--text);
}

.contact-form-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbeafe;
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 18px 40px rgba(29, 78, 216, 0.08);
}

.contact-form-text {
  margin: 0 0 24px;
  color: var(--text-soft);
  font-size: 1rem;
}

.contact-form {
  max-width: 100%;
}

.form-row {
  margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 16px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #64748b;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
  background: #ffffff;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.form-actions {
  padding-top: 6px;
  margin-top: 10px;
}

.form-actions .btn {
  min-width: 190px;
}

.contact-form button {
  font-family: "Inter", sans-serif;
  font-weight: 700;
}

/* FOOTER */
.site-footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.9);
  padding-top: 58px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 28px;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  color: #93c5fd;
}

.footer-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  max-width: 420px;
}

.site-footer h4 {
  margin: 0 0 14px;
  font-size: 1rem;
  color: #bfdbfe;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-list a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 28px;
  margin-top: 20px;
  border-top: 1px solid rgba(147, 197, 253, 0.18);
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
}

.footer-legal a {
  margin-left: 18px;
  color: #64748b;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: #ffffff;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1e293b;
  color: white;
  padding: 16px 20px;
  z-index: 9999;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.cookie-content {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

/* TABLET / SMALL DESKTOP */
@media (max-width: 1100px) {
  .hero-grid,
  .two-columns,
  .cta-box,
  .footer-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .stats-grid,
  .audience-grid,
  .objective-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual {
    min-height: 420px;
  }

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

/* MOBILE GENERALE */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .container {
    width: calc(100% - 28px);
  }

  .site-header {
    padding: 0;
  }

  .header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .logo img {
    height: 60px;
  }

  .main-nav {
    display: none;
  }

  .header-inner .btn.btn-primary {
    width: auto;
    min-width: 0;
    min-height: auto;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 20px;
    line-height: 1.2;
  }

  .hero {
    padding: 42px 0 34px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .eyebrow {
    margin-bottom: 14px;
    padding: 7px 12px;
    font-size: 0.76rem;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.08;
    margin-bottom: 14px;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 22px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: auto;
    display: grid;
    gap: 14px;
  }

  .visual-card,
  .card-large,
  .card-small,
  .top-right,
  .bottom-left {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 22px;
  }

  .visual-dots {
    display: none;
  }

  .big-number {
    font-size: 2.4rem;
  }

  .medium-number {
    font-size: 1.5rem;
  }

  .intro-strip {
    padding: 18px 0;
  }

  .intro-strip p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .section,
  .cta-section {
    padding: 56px 0;
  }

  .section h2,
  .cta-section h2 {
    font-size: 1.9rem;
    line-height: 1.15;
    margin-bottom: 12px;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .section-heading p,
  .two-columns p,
  .cta-section p,
  .contact-intro,
  .contact-form-text {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .two-columns,
  .contact-layout,
  .cta-box,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cards-grid,
  .stats-grid,
  .audience-grid,
  .objective-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card,
  .stat-box,
  .audience-item,
  .objective-item {
    padding: 22px;
  }

  .card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
  }

  .service-card h3 {
    font-size: 1.15rem;
  }

  .contact-form-card {
    padding: 22px;
    border-radius: 18px;
  }

  .contact-item strong {
    font-size: 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
    padding: 14px 15px;
  }

  .form-actions .btn,
  .contact-form button {
    width: 100%;
    min-width: 0;
  }

  .site-footer {
    padding-top: 42px;
  }

  .footer-grid {
    gap: 24px;
    padding-bottom: 20px;
  }

  .footer-logo {
    margin-bottom: 10px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-legal a {
    margin-left: 0;
    margin-right: 16px;
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* TELEFONO VERTICALE */
@media (max-width: 768px) and (orientation: portrait) {
  .logo img {
    height: 48px;
  }

  .header-inner .btn.btn-primary {
    width: auto;
    min-width: 0;
    min-height: auto;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 18px;
    line-height: 1.2;
  }
}

/* TELEFONO ORIZZONTALE */
@media (max-width: 950px) and (orientation: landscape) {
  .logo img {
    height: 42px;
  }

  .header-inner .btn.btn-primary {
    width: auto;
    min-width: 0;
    min-height: auto;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 18px;
    line-height: 1.2;
  }

  .header-inner {
    min-height: 64px;
  }
}

/* Bottone PDF più compatto */

.btn-pdf{
min-height:36px;
padding:6px 14px;
font-size:14px;
border-radius:14px;
margin-top:10px;
}

/* titolo sezione storico */

.media-history-title{
margin-top:60px;
margin-bottom:30px;
padding-top:20px;
border-top:1px solid #dbeafe;

}

.media-history-title h3{
font-size:20px;
margin-bottom:6px;
color:#1e3a8a;

}

.media-history-title p{
font-size:14px;
color:#64748b;
margin:0;

}

/* stile leggermente più soft per lo storico */

.media-history .service-card{
background:#fafcff;
border:1px solid #e5e7eb;

}

.form-consent{
margin:18px 0 22px 0;
}

.consent-label{
display:flex;
align-items:center;
gap:10px;
font-size:14px;
color:#4a5568;
cursor:pointer;
}

.consent-label input{
width:16px;
height:16px;
flex-shrink:0;
}

.consent-label span{
line-height:1.4;
}

.consent-label a{
color:#1e3a8a;
font-weight:500;
text-decoration:none;
}

.consent-label a:hover{
text-decoration:underline;
}

.contact-form{
max-width:480px;
}

.form-consent{
margin:20px 0 26px 0;
}

.btn-primary{
padding:12px 22px;
font-size:15px;
}

