/* Composizione luminosa e componenti condivisi dalla famiglia Tanggo. */
:root {
  --wine: #78170c;
  --paper-warm: #fbf8f2;
  --warm-line: #dfd4c9;
}

.site-header .header-inner { min-height: 84px; }
.main-nav > a, .software-menu-heading > a { font-size: 16px; }
.product-subnav a { font-size: 14px; }
.product-subnav .range-link { font-size: 12px; }
.product-nav-item { font-size: 16px; }
.product-nav-item small { font-size: 13px; }

.visual-hero, .page-home .visual-hero {
  min-height: 470px;
  padding-block: 48px 54px;
  background: var(--paper-warm);
}
.visual-hero.visual-hero-compact { min-height: 290px; }
.visual-hero .visual-hero-image {
  filter: saturate(1.13) brightness(1.08);
  object-position: 70% 50%;
}
.visual-hero .hero-shade {
  background: linear-gradient(90deg, #fbf8f2 0%, #fbf8f2f8 26%, #fbf8f2e8 40%, #fbf8f28c 54%, #fbf8f200 76%);
}
.visual-hero h1 {
  color: #292622;
  font-size: clamp(2.35rem, 3.9vw, 3.85rem);
  max-width: min(680px, 55vw);
  text-wrap: initial;
}
.visual-hero h1 em, .visual-hero .eyebrow, .visual-hero .text-link { color: var(--wine); }
.visual-hero .lead, .visual-hero .caption { color: #413834; max-width: min(580px, 49vw); }
.visual-hero .breadcrumb { color: #62453e; }
.visual-hero .hero-image-note { color: #fff; background: #2d201aca; padding: 3px 8px; border-radius: 4px; }
main a.button, main button.button {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
}
main a.button:hover, main button.button:hover { background: #56180f; color: #fff; }
main a.button.outline {
  background: #fff !important;
  color: var(--wine);
  border-color: #b78c82;
}
main a.button.outline:hover { background: var(--wine) !important; color: #fff; }

.services-band { background: #f7f0e6; color: #463a33; }
.services-band h2, .services-band h3 { color: #352823; }
.services-band .eyebrow, .services-band .feature-index { color: var(--wine); }
.services-band .section-heading > p { color: #594a43; }
.services-band .service-grid { gap: 28px; }
.services-band .service-card,
.page-servizi main .service-card {
  background: #fff;
  color: #423835;
  border: 1px solid var(--warm-line);
  padding: 20px 26px 27px;
  border-radius: 10px;
  box-shadow: 0 12px 32px #5034260a;
}
.page-servizi main .service-card h2 { color: #352823; }
.page-servizi main .service-card .feature-index, .services-band .text-link { color: var(--wine); }
.service-image { overflow: hidden; border-radius: 6px; margin-bottom: 20px; }
.service-image img { width: 100%; height: clamp(175px, 19vw, 265px); object-fit: cover; }
.service-image img, .screen-preview img, .product-showcase img { transition: transform .4s ease; }
.service-card:hover .service-image img,
.screen-preview:hover img,
.product-showcase a:hover img { transform: scale(1.035); }
.product-showcase .screen-figure {
  background: #fff;
  padding: 12px;
  border-radius: 9px;
  box-shadow: 0 20px 50px #151a2e36;
}
.software-area main > .product-showcase .screen-figure figcaption { color: #4c4542; }
.product-showcase .screen-figure a { display: block; overflow: hidden; border-radius: 5px; }
.product-showcase .split { align-items: center; }
.product-showcase .lead { font-size: 17px; }
.page-contatti .contact-layout { padding-top: 55px; }
.contact-form-panel { background: #fff; border-color: var(--warm-line); box-shadow: 0 14px 36px #5034260d; }
.contact-form-panel .field label { font-size: 16px; }
.contact-form-panel input:not([type=checkbox]), .contact-form-panel textarea { border-color: #cfc2b8; }
.tanggo-select-trigger { color: #392b25; }

.founder-portrait {
  position: relative;
  aspect-ratio: 430 / 602;
  width: min(100%, 350px);
  overflow: hidden;
  border-radius: 8px;
  margin-inline: auto;
  background: #eee8df;
}
.founder-portrait img {
  position: absolute;
  right: -7.67%;
  top: 0;
  width: 251.17%;
  max-width: none;
  height: auto;
}
.site-footer { background: #f8f4ed; border-top: 1px solid #b9a699; padding: 28px 0 0; color: #4c4039; }
.site-footer .footer-top { padding-bottom: 20px; }
.site-footer .footer-top h2, .footer-strip h2 { color: var(--wine); font-size: 13px; }
.site-footer .footer-top > div > a:not(.brand), .site-footer .footer-strip a { color: #514239; font-size: 15px; }
.footer-band { border-top: 1px solid var(--warm-line); }
.footer-strip { display: flex; gap: 12px 28px; flex-wrap: wrap; align-items: center; padding-block: 16px; }
.footer-strip h2 { margin: 0; }
.site-footer .footer-bottom { border: 0; color: #514239; font-size: 13px; padding-block: 16px 24px; }

@keyframes hero-pan {
  from { transform: scale(1.045); }
  to { transform: scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .visual-hero-image { animation: hero-pan 3s ease-out both; }
}
@media (max-width: 760px) {
  .visual-hero, .page-home .visual-hero {
    min-height: 0;
    padding: 205px 0 34px;
    align-items: end;
  }
  .visual-hero.visual-hero-compact { padding-top: 150px; }
  .visual-hero .visual-hero-image { width: 100%; height: 240px; inset: 0; object-position: 67% center; }
  .visual-hero .hero-shade { height: 242px; background: linear-gradient(0deg, #fbf8f2 3%, #fbf8f2ad 20%, transparent 65%); }
  .visual-hero h1, .visual-hero .lead, .visual-hero .caption { max-width: none; }
  .visual-hero h1 { font-size: clamp(2.15rem, 8vw, 2.85rem); }
  .visual-hero .hero-image-note { top: 12px; bottom: auto; }
  .visual-hero .actions { flex-direction: row; }
  .service-image img { height: 190px; }
  .site-footer .footer-bottom { padding-bottom: 76px; }
  .footer-strip { gap: 10px 20px; }
  .footer-strip h2 { flex-basis: 100%; }
}

.showcase-detail { max-width: 390px; margin-top: 24px; }
.showcase-detail a { display: block; overflow: hidden; border-radius: 6px; }
.showcase-detail a:hover img { transform: scale(1.035); }
.showcase-detail img { width: 100%; }

.page-chi-siamo .visual-hero .visual-hero-image,
.page-consulenza .visual-hero .visual-hero-image { object-position: 70% 3%; }
.audience-section > p:not(.eyebrow), .company-software h2 + p { max-width: 720px; margin-top: 16px; }
.audience-grid {
  list-style: none;
  padding: 0;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px;
}
.audience-grid li {
  padding: 14px 16px;
  border-radius: 6px;
  background: #f4e7e6;
  color: #662b29;
  border-left: 3px solid #a45f60;
}
.audience-grid li:nth-child(4n + 2) { background: #f7eed9; color: #654b1d; border-color: #bd9247; }
.audience-grid li:nth-child(4n + 3) { background: #e8edf5; color: #344963; border-color: #7089a5; }
.audience-grid li:nth-child(4n + 4) { background: #f0e9f3; color: #593c63; border-color: #9b78a5; }
.company-software { background: #f5f0eb; }
.company-screens { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin: 28px 0 16px; }
.company-screens a { background: #fff; border: 1px solid var(--warm-line); border-radius: 8px; overflow: hidden; }
.company-screens img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; object-position: top; }
.company-screens strong { display: block; padding: 14px; color: var(--wine); }
.site-footer .footer-bottom p:last-child { text-align: right; }
@media(max-width: 760px) {
  .company-screens { grid-template-columns: 1fr; }
  .site-footer .footer-bottom p:last-child { text-align: left; }
}

.audience-ribbon { background: #fcf5eb; border-block: 1px solid var(--warm-line); }
.audience-track { display: flex; align-items: center; gap: 16px; overflow-x: auto; padding-block: 11px; scrollbar-width: thin; scrollbar-color: #aa7d73 #fcf5eb; }
.audience-label { flex: none; color: var(--wine); font-weight: 600; font-size: .85rem; }
.audience-track .audience-grid { display: flex; gap: 8px; margin: 0; }
.audience-track li { flex: none; padding: 5px 10px; font-size: .85rem; white-space: nowrap; }
.software-area main > .soft-section a.button.outline,
.page-consulenza main .soft-section a.button.outline { background: #fff !important; color: #631c12; }
main a.button:not(.outline), main button.button, #cookie-preferences .button { background: #78170c; border-color: #78170c; color: white; }
main .soft-section .button:not(.outline):hover { background: #54150e; color: white; }
.footer-credit { justify-content: space-between; }
.cookie-preferences { font: inherit; color: #514239; border: 0; background: none; cursor: pointer; padding: 0; text-decoration: underline; }
#cookie-preferences { width: min(510px, calc(100% - 32px)); padding: 28px; border: 1px solid var(--warm-line); border-radius: 12px; background: #fffaf3; color: #3b302d; }
#cookie-preferences::backdrop { background: #291a17a6; }
#cookie-preferences h2 { margin-bottom: 18px; font-size: 1.7rem; }
.page-note-legali .legal-copy, .page-privacy .legal-copy, .page-cookie .legal-copy { max-width: 880px; padding-block: 36px 64px; line-height: 1.75; }
.legal-copy h2 { border-top: 1px solid var(--warm-line); padding-top: 18px; margin-top: 28px; }
.legal-copy .legal-date { background: #f8efe4; padding: 12px 18px; border-left: 3px solid #a45f60; }
.page-consulenza .feature-grid article { background: #fffaf2; border: 1px solid var(--warm-line); border-top: 3px solid #b48b4c; border-radius: 8px; padding: 22px; transition: box-shadow .2s ease; }
.page-consulenza .feature-grid article:hover { box-shadow: 0 9px 24px #46312c19; }
.page-consulenza .feature-grid article:nth-child(even) { background: #f3f5f9; border-top-color: #7389a6; }

.audience-ribbon { background: #fcfaf7; border-color: #e9dfd5; }
.audience-controls { display: grid; grid-template-columns: 36px minmax(0,1fr) 36px; align-items: center; gap: 10px; }
.audience-controls button { font: inherit; font-size: 1.5rem; line-height: 1; height: 34px; border-radius: 50%; border: 1px solid #d9c8bc; background: #fff; color: #672b23; cursor: pointer; }
.audience-controls button:disabled { opacity: .45; cursor: default; }
.audience-track { scrollbar-width: none; }
.audience-track::-webkit-scrollbar { display: none; }
.audience-track .audience-grid { gap: 0; }
.audience-track .audience-grid li:nth-child(n) { background: none; border: 0; border-radius: 0; color: #58433a; padding: 4px 14px; }
.audience-track .audience-grid li + li { border-left: 1px solid #dfd1c5; }
.site-footer .footer-credit { display: flex; flex-wrap: nowrap; gap: 12px; white-space: nowrap; overflow-x: auto; scrollbar-width: thin; justify-content: space-between; font-size: 13px; }
.site-footer .footer-credit a { font-size: inherit; }
.legal-layout { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0,3fr); gap: 28px; align-items: start; }
.legal-index { position: sticky; top: 105px; padding: 20px; border: 1px solid var(--warm-line); border-radius: 10px; background: #fbf6ef; }
.legal-index h2 { font-size: 1.2rem; margin-bottom: 12px; }
.legal-index a { display: block; padding: 7px 0; color: #6b3228; }
.legal-layout .legal-copy { padding: 0; }
.legal-card { background: #fff; border: 1px solid var(--warm-line); border-radius: 10px; padding: 24px; margin-bottom: 14px; scroll-margin-top: 106px; }
.legal-card h2 { margin: 0 0 12px; border: 0; padding: 0; }
.cookie-banner { width: min(560px,calc(100% - 28px)); padding: 28px; border-radius: 12px; border: 1px solid var(--warm-line); color: #3f302b; background: #fffaf3; }
.cookie-banner::backdrop { background: #30211cb3; }
.cookie-banner h2 { font-size: 1.65rem; margin: 0 28px 10px 0; }
.cookie-banner a { color: #78170c; text-decoration: underline; }
.cookie-close { position: absolute; right: 12px; top: 12px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cookie-banner button { font: inherit; border: 1px solid #b88e82; padding: 6px 11px; border-radius: 5px; background: #fff; color: #6d2115; cursor: pointer; }
.cookie-banner [data-cookie-necessary], .cookie-banner [data-cookie-save] { background: #78170c; color: #fff; }
.cookie-details { padding: 12px; background: #f6ede4; border-radius: 6px; margin-top: 12px; }
.cookie-details label, .cookie-details small { display: block; margin-bottom: 7px; }
.service-stories, .why-tanggo { background: #f9f5ef; }
.service-stories .service-grid { margin-top: 24px; }
.why-tanggo .feature-grid { margin-top: 24px; }
@media (max-width: 760px) {
 .legal-layout { grid-template-columns: 1fr; gap: 16px; }
 .legal-index { position: static; }
 .site-footer .footer-credit { padding-bottom: 22px; }
}

.booking-features article { padding-top: 0; overflow: hidden; }
.booking-features article img { width: 100%; aspect-ratio: 2.45 / 1; object-fit: cover; border-radius: 6px; margin: 14px 0 17px; }
.page-booking .visual-hero .actions .button { background: #fffaf2; border-color: #bc8d81; color: #6b2e24; font-weight: 400; }
.page-booking .visual-hero .actions .button:hover { background: #f5e7dc; }
.page-prezzi .product-showcase { background: #f6eee5; color: #413633; }
.page-prezzi.software-area main > .product-showcase h2,
.page-prezzi.software-area main > .product-showcase figcaption { color: #49342f; }
.page-prezzi.software-area main > .product-showcase .eyebrow { color: var(--wine); }
.audience-track .audience-grid li:nth-child(n) {
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
  border-radius: 5px;
}
.audience-track .audience-grid li:hover { background: #efe0dc; color: #6b2117; transform: translateY(-2px); }
.audience-track .audience-grid li:nth-child(3n + 2):hover { background: #f2e5ca; color: #634819; }
.audience-track .audience-grid li:nth-child(3n + 3):hover { background: #e5ebf3; color: #344963; }
.footer-links-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; padding-block: 9px; }
.footer-links-row .footer-strip { padding: 0; gap: 5px 13px; }
.site-footer .footer-legal a, .site-footer .footer-legal button { font-size: 13px; }
.site-footer .footer-credit { padding-block: 10px; }
@media(prefers-reduced-motion: reduce) {
  .audience-track .audience-grid li:hover { transform: none; }
}
.page-prezzi.software-area main > .product-showcase { background: #f6eee5; color: #413633; }
.page-prezzi.software-area main > .product-showcase .text-link { color: #6b2117; border-bottom-color: #b88e82; }
