/* ========================================
   G.I.S.Co. S.r.l. — Design System & Styles
   ======================================== */

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --background: #f7f8fa;
  --foreground: #1a2234;
  --card: #ffffff;
  --card-foreground: #1a2234;
  --primary: #1c2d4f;
  --primary-foreground: #f0f4f8;
  --secondary: #edf1f7;
  --secondary-foreground: #1a2234;
  --muted: #f0f2f5;
  --muted-foreground: #6b7a90;
  --accent: #2a9d8f;
  --accent-foreground: #ffffff;
  --border: #e0e5ed;
  --radius: 0.625rem;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --gradient-hero: linear-gradient(135deg, #152040 0%, #263d60 40%, #2a5a6e 100%);
  --gradient-subtle: linear-gradient(180deg, #f7f8fa 0%, #edf1f7 100%);
  --shadow-card: 0 1px 3px 0 rgba(26,34,52,0.04), 0 1px 2px -1px rgba(26,34,52,0.04);
  --shadow-card-hover: 0 10px 25px -5px rgba(26,34,52,0.08), 0 8px 10px -6px rgba(26,34,52,0.04);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01", "ss03";
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--foreground);
  line-height: 1.2;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.flex-col-center {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

/* ---- Header / Navbar ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(224,229,237,0.6);
  background-color: rgba(247,248,250,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--foreground);
}

.nav-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-hero);
  color: var(--primary-foreground);
  font-size: 0.85rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--foreground);
  background-color: var(--secondary);
}

.nav-cta-desktop {
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s, opacity 0.2s;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-accent {
  background-color: var(--accent);
  color: var(--accent-foreground);
  box-shadow: 0 4px 14px rgba(42,157,143,0.25);
}

.btn-accent:hover {
  background-color: #249384;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--secondary);
}

.btn-outline-light {
  background-color: transparent;
  border: 1px solid rgba(240,244,248,0.2);
  color: var(--primary-foreground);
}

.btn-outline-light:hover {
  background-color: rgba(240,244,248,0.1);
}

.btn-lg {
  padding: 0.8rem 1.75rem;
  font-size: 0.9375rem;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
}

.btn-full {
  width: 100%;
}

/* Mobile menu */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--foreground);
}

.nav-mobile-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background-color: var(--background);
  padding: 1rem 0;
}

.nav-mobile-menu.open {
  display: block;
}

.nav-mobile-menu ul {
  list-style: none;
  padding: 0 2rem;
}

.nav-mobile-menu ul li a {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.nav-mobile-menu ul li a:hover,
.nav-mobile-menu ul li a.active {
  color: var(--foreground);
}

.nav-mobile-menu .btn {
  margin: 0.5rem 2rem 0;
  display: block;
  text-align: center;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  padding: 6rem 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(#fff 1px, transparent 1px),
    linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(42,157,143,0.1);
  filter: blur(120px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--primary-foreground);
  text-wrap: balance;
}

.hero p {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: rgba(240, 244, 248, 1);
  max-width: 640px;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---- Sections ---- */
.section {
  padding: 5rem 0;
}

.section-subtle {
  background: var(--gradient-subtle);
}

.section-hero-dark {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.section-hero-dark .hero-glow {
  right: 0;
  left: auto;
  transform: translate(0, -50%);
  width: 400px;
  height: 400px;
  opacity: 0.08;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  line-height: 1.25;
}

.section-text {
  margin-top: 1.25rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  font-size: 1.0625rem;
}

.text-center {
  text-align: center;
}

.text-light {
  color: var(--primary-foreground);
}

.text-light-muted {
  color: rgba(240,244,248,0.9);
}

.max-w-3xl {
  max-width: 720px;
}

.max-w-2xl {
  max-width: 640px;
}

.max-w-5xl {
  max-width: 1024px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-14 { margin-top: 3.5rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-16 { margin-bottom: 4rem; }

/* ---- Cards / Grid ---- */
.card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-color: rgba(42,157,143,0.1);
  color: var(--accent);
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.card-icon-round {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
}

.card p {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-2col { grid-template-columns: 1fr; }

/* Feature list items */
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-card);
}

.feature-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.feature-item span {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Service row card */
.service-row {
  display: flex;
  gap: 1.25rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.service-row h2 {
  font-size: 0.9375rem;
  font-weight: 600;
}

.service-row p {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ---- Two-column layout ---- */
.two-col {
  display: grid;
  gap: 3rem;
  align-items: center;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  background-color: rgba(237,241,247,0.4);
}

.footer-inner {
  padding: 3rem 0 4rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--foreground);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ---- Form ---- */
.form-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--foreground);
  background-color: var(--card);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42,157,143,0.15);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: rgba(42,157,143,0.1);
  color: var(--accent);
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 16px;
  height: 16px;
}

.contact-item strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
}

.contact-item span {
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

/* ---- Scroll animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 200;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: row; }
}

@media (min-width: 768px) {
  .section { padding: 7rem 0; }
  .hero { padding: 8rem 0; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .grid-2col { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta-desktop { display: inline-block; }
  .nav-mobile-toggle { display: none; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 2rem; }
  .contact-grid { grid-template-columns: 3fr 2fr; }
  .hero { padding: 10rem 0; }
}

@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .nav-mobile-toggle { display: block; }
}

/* ---- SVG icon utility ---- */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-logo img{
height:40px;
width:auto;
display:block;
}

.contact-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.hero{
position:relative;
overflow:hidden;
}

.hero-people{
position:absolute;
right:6%;
bottom:100px;
width:820px;

pointer-events:none;
}

@media (max-width:900px){

.hero-people{
position:relative;
display:block;
margin:20px auto 0 auto;
right:auto;
bottom:auto;
width:500px;

}

}

.service-check{
color:#20c997;
font-size:18px;
}

.footer-bottom a{
color:#0f172a;
font-weight:500;
text-decoration:underline;
text-underline-offset:2px;
}

.footer-bottom a:hover{
color:#0f766e;
}

.form-message{
  padding:14px 16px;
  border-radius:14px;
  font-size:15px;
  line-height:1.5;
}

.form-message.success{
  background:#ecfdf3;
  color:#166534;
  border:1px solid #bbf7d0;
}

.form-message.error{
  background:#fef2f2;
  color:#991b1b;
  border:1px solid #fecaca;
}

#contact-submit:disabled{
  opacity:.7;
  cursor:not-allowed;
}

.page-header{
padding:40px 0 20px;
}

.breadcrumb{
font-size:14px;
color:#6b7280;
margin-bottom:10px;
}

.breadcrumb a{
color:#6b7280;
text-decoration:none;
}

.breadcrumb a:hover{
color:#1f2937;
}

.breadcrumb .current{
color:#1f2937;
font-weight:500;
}

/*accessibilita*/
a{
text-decoration: underline;
text-underline-offset: 3px;
}

a:hover{
text-decoration-thickness: 2px;
}

.btn{
display:inline-block;
text-decoration:none;
font-weight:600;
}

.btn:focus{
outline:3px solid #ffffff;
outline-offset:3px;
}

.btn-primary{
background:#2bb4a0;
color:white;
}

.skip-link{
position:absolute;
top:-40px;
left:10px;
background:#fff;
padding:8px 12px;
z-index:1000;
}

.skip-link:focus{
top:10px;
}

.nav-mobile-toggle i{
font-size:38px;
color:#1f2937;
}

@media (max-width: 768px){

  .site-footer{
    padding: 0;
  }

  .footer-inner{
    padding: 32px 20px 20px;
  }

  .footer-grid{
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .footer-brand{
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .footer-brand .nav-logo{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }

  .footer-brand p{
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
  }

  .footer-col h4{
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
  }

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

  .footer-col ul li{
    margin-bottom: 10px;
  }

  .footer-col a{
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .footer-bottom{
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 13px;
    line-height: 1.7;
  }

  .footer-bottom a{
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

.footer-logo img{
  height: 100px;
  width: auto;
  display: block;
}