/* ==========================================================================
   TuttoCani.it - foglio di stile principale (layout responsive 2026)
   Basato su Bootstrap 5.3 - colore principale verde storico #4F7D00
   ========================================================================== */

:root {
  --tc-green: #4f7d00;
  --tc-green-600: #446c00;
  --tc-green-700: #3a5c00;
  --tc-green-800: #2b4500;
  --tc-green-900: #1e3100;
  --tc-green-50: #f3f7ea;
  --tc-green-100: #e4edcf;
  --tc-cream: #ffe199;
  --tc-cream-soft: #fff6de;
  --tc-orange: #ff9600;
  --tc-orange-700: #e07f00;
  --tc-red: #cc0000;
  --tc-ink: #1d2414;
  --tc-muted: #5d6652;
  --tc-line: #e3e8d8;
  --tc-bg: #ffffff;
  --tc-bg-soft: #f7f9f2;
  --tc-radius: 14px;
  --tc-radius-sm: 10px;
  --tc-shadow: 0 10px 30px rgba(43, 69, 0, .10);
  --tc-shadow-sm: 0 4px 14px rgba(43, 69, 0, .08);
  --tc-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --tc-font-display: "Barlow Condensed", "Inter", Arial, sans-serif;

  --bs-primary: #4f7d00;
  --bs-primary-rgb: 79, 125, 0;
  --bs-link-color: #3a5c00;
  --bs-link-color-rgb: 58, 92, 0;
  --bs-link-hover-color: #cc0000;
  --bs-link-hover-color-rgb: 204, 0, 0;
  --bs-body-font-family: var(--tc-font);
  --bs-body-color: #1d2414;
  --bs-border-radius: 10px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--tc-font);
  color: var(--tc-ink);
  background: var(--tc-bg);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}
img { max-width: 100%; height: auto; }
a { color: var(--tc-green-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--tc-red); }
h1, h2, h3, h4, .tc-display {
  font-family: var(--tc-font-display);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.1;
  color: var(--tc-green-800);
}
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }
::selection { background: var(--tc-cream); }

/* ---------- Skip link ---------- */
.tc-skip { position: absolute; left: -9999px; top: 0; z-index: 2000; background: #fff; padding: 8px 14px; }
.tc-skip:focus { left: 8px; top: 8px; }

/* ---------- Top bar ---------- */
.tc-topbar { background: var(--tc-green-800); color: #dfe9c8; font-size: .82rem; }
.tc-topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.tc-topbar a { color: #fff; text-decoration: none; }
.tc-topbar a:hover { color: var(--tc-cream); }
.tc-topbar .tc-topbar-links { display: flex; gap: 18px; align-items: center; }

/* ---------- Header / Navbar ---------- */
.tc-header { position: sticky; top: 0; z-index: 1030; background: var(--tc-green); box-shadow: 0 2px 12px rgba(0, 0, 0, .18); }
.tc-header .navbar { padding: 0; min-height: 76px; }
.tc-header .navbar-brand { padding: 4px 0; margin-right: 1.25rem; }
.tc-header .navbar-brand img { height: 64px; width: auto; display: block; }
.tc-header .nav-link {
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  padding: 26px 12px !important;
  position: relative;
}
.tc-header .nav-link:hover, .tc-header .nav-link:focus, .tc-header .nav-link.show { color: var(--tc-cream); }
.tc-header .navbar-nav .nav-link.active { color: #fff; }
.tc-header .nav-link::after { border-top-color: currentColor; }
.tc-header .nav-link.active::before {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 14px; height: 3px; border-radius: 3px; background: var(--tc-orange);
}
.tc-header .dropdown-menu {
  border: 0; border-top: 3px solid var(--tc-orange); border-radius: 0 0 var(--tc-radius-sm) var(--tc-radius-sm);
  box-shadow: var(--tc-shadow); padding: 8px 0; margin-top: 0 !important; min-width: 250px;
}
.tc-header .dropdown-item { font-size: .93rem; padding: 8px 18px; color: var(--tc-ink); display: flex; align-items: center; gap: 10px; }
.tc-header .dropdown-item img { width: 22px; height: 22px; border-radius: 4px; }
.tc-header .dropdown-item:hover, .tc-header .dropdown-item:focus { background: var(--tc-green-50); color: var(--tc-green-800); }
.tc-header .navbar-toggler { border: 2px solid rgba(255, 255, 255, .6); padding: 6px 10px; }
.tc-header .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255, 225, 153, .5); }
.tc-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.tc-stripe { height: 5px; background: linear-gradient(90deg, var(--tc-orange) 0 60%, var(--tc-cream) 60% 85%, var(--tc-red) 85% 100%); }

.btn-tc-cta {
  background: var(--tc-orange); color: #fff; font-weight: 700; border-radius: 999px; padding: 9px 20px; border: 0;
  box-shadow: 0 4px 12px rgba(255, 150, 0, .35); white-space: nowrap;
}
.btn-tc-cta:hover, .btn-tc-cta:focus { background: var(--tc-orange-700); color: #fff; transform: translateY(-1px); }

@media (max-width: 1199.98px) {
  .tc-header .navbar { min-height: 64px; }
  .tc-header .navbar-brand img { height: 52px; }
  .tc-header .navbar-collapse { background: var(--tc-green-700); margin: 0 calc(var(--bs-gutter-x) * -.5); padding: 8px 16px 18px; max-height: calc(100vh - 70px); overflow-y: auto; }
  .tc-header .nav-link { padding: 12px 4px !important; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .tc-header .nav-link.active::before { display: none; }
  .tc-header .dropdown-menu { background: var(--tc-green-800); box-shadow: none; border-top: 0; border-radius: 8px; margin: 4px 0 8px; }
  .tc-header .dropdown-item { color: #fff; }
  .tc-header .dropdown-item:hover, .tc-header .dropdown-item:focus { background: rgba(255, 255, 255, .08); color: var(--tc-cream); }
  .tc-header .btn-tc-cta { margin-top: 14px; display: inline-block; }
}

/* ---------- Ad leaderboard ---------- */
.tc-adbar { background: var(--tc-bg-soft); border-bottom: 1px solid var(--tc-line); text-align: center; overflow: hidden; }
.tc-adbar:empty, .tc-adbar .container:empty { display: none; }
.tc-adbar .container { padding-top: 8px; padding-bottom: 8px; }
.tc-adslot { overflow: hidden; max-width: 100%; text-align: center; }

/* ---------- Breadcrumb ---------- */
.tc-breadcrumb { background: var(--tc-cream-soft); border-bottom: 1px solid #f3e2b3; font-size: .86rem; }
.tc-breadcrumb .breadcrumb { margin: 0; padding: 10px 0; }
.tc-breadcrumb .breadcrumb-item a { color: var(--tc-green-700); text-decoration: none; font-weight: 600; }
.tc-breadcrumb .breadcrumb-item a:hover { color: var(--tc-red); text-decoration: underline; }
.tc-breadcrumb .breadcrumb-item.active { color: var(--tc-ink); font-weight: 600; }
.tc-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--tc-orange-700); content: "›"; font-weight: 700; }

/* ---------- Main ---------- */
.tc-main { padding-top: 32px; padding-bottom: 56px; }
.tc-content { min-width: 0; }
.tc-content > *:first-child { margin-top: 0; }

/* ---------- Page header ---------- */
.tc-pagehead { margin-bottom: 28px; }
.tc-pagehead .tc-eyebrow { margin-bottom: 8px; }
.tc-pagehead h1 { margin: 0 0 10px; }
.tc-pagehead .lead { color: var(--tc-muted); font-size: 1.1rem; margin: 0; }
.tc-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--tc-orange-700);
}
.tc-eyebrow img { width: 18px; height: 18px; border-radius: 3px; }

/* ---------- Hero (home) ---------- */
.tc-hero {
  position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(1100px 520px at 80% 20%, #6c9e14 0%, var(--tc-green) 45%, var(--tc-green-800) 100%);
}
.tc-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 60px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .12));
}
.tc-hero .container { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 60px; }
.tc-hero h1 { color: #fff; font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; max-width: 720px; margin-bottom: 14px; }
.tc-hero h1 em { font-style: normal; color: var(--tc-cream); }
.tc-hero p.lead { color: #e7f0d4; font-size: 1.15rem; max-width: 600px; }
.tc-hero .tc-badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--tc-cream); color: var(--tc-green-800); font-weight: 800;
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; padding: 6px 14px 6px 6px; border-radius: 999px; margin-bottom: 18px;
}
.tc-hero .tc-badge img { width: 22px; height: 22px; border-radius: 50%; }
.tc-hero-photo {
  position: relative; border-radius: 22px; overflow: hidden; border: 6px solid rgba(255, 255, 255, .9);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3); max-width: 300px; margin-left: auto; margin-right: auto; background: #fff;
}
.tc-hero-photo img { width: 100%; display: block; }
.tc-facts { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 10px; max-width: 620px; }
.tc-facts li { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 9px 14px; font-size: .97rem; }
.tc-facts li b {
  flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--tc-orange); color: #fff; display: grid; place-items: center;
  font-family: var(--tc-font-display); font-size: 1.1rem;
}
.btn-tc-light { background: #fff; color: var(--tc-green-800); font-weight: 700; border-radius: 999px; padding: 12px 24px; }
.btn-tc-light:hover { background: var(--tc-cream); color: var(--tc-green-900); }
.btn-tc-ghost { border: 2px solid #fff; color: #fff; font-weight: 700; border-radius: 999px; padding: 10px 22px; }
.btn-tc-ghost:hover { background: #fff; color: var(--tc-green-800); }

/* ---------- Topic tiles (icone storiche) ---------- */
.tc-topics { background: var(--tc-bg-soft); border-bottom: 1px solid var(--tc-line); padding: 28px 0; }
.tc-topic {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--tc-line); border-radius: var(--tc-radius);
  padding: 14px 16px; text-decoration: none; color: var(--tc-ink); height: 100%; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.tc-topic:hover { transform: translateY(-3px); box-shadow: var(--tc-shadow); border-color: var(--tc-green-100); color: var(--tc-ink); }
.tc-topic img { width: 48px; height: 48px; border-radius: 10px; flex: 0 0 48px; }
.tc-topic strong { display: block; font-family: var(--tc-font-display); font-size: 1.2rem; color: var(--tc-green-800); line-height: 1.1; }
.tc-topic span { font-size: .82rem; color: var(--tc-muted); line-height: 1.35; display: block; }

/* ---------- Card (box storici) ---------- */
.tc-card {
  background: #fff; border: 1px solid var(--tc-line); border-radius: var(--tc-radius); overflow: hidden;
  box-shadow: var(--tc-shadow-sm); margin-bottom: 24px;
}
.tc-card-head {
  background: var(--tc-green); color: #fff; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--tc-font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: .02em; line-height: 1.2;
}
.tc-card-head a { color: #fff; text-decoration: none; }
.tc-card-head a:hover { color: var(--tc-cream); }
.tc-card-head img.tc-ico { width: 18px; height: 18px; border-radius: 3px; flex: 0 0 18px; }
.tc-card-head.is-orange { background: var(--tc-orange); }
.tc-card-head.is-cream { background: var(--tc-cream); color: var(--tc-green-800); }
.tc-card-body { padding: 16px 18px; font-size: .93rem; }
.tc-card-body > *:last-child { margin-bottom: 0; }
.tc-card-media { display: flex; gap: 14px; align-items: flex-start; }
.tc-card-media > img { width: 48px; height: 48px; border-radius: 10px; flex: 0 0 48px; }
.tc-card-media h3, .tc-card-media h4 { font-family: var(--tc-font); font-size: 1rem; font-weight: 700; margin: 0 0 4px; }
.tc-card-media h3 a, .tc-card-media h4 a { color: var(--tc-red); text-decoration: none; }
.tc-card-media h3 a:hover, .tc-card-media h4 a:hover { text-decoration: underline; }
.tc-card .tc-linklist { list-style: none; padding: 0; margin: 10px 0 0; }
.tc-card .tc-linklist li { padding: 7px 0 7px 22px; border-top: 1px dashed var(--tc-line); position: relative; line-height: 1.4; }
.tc-card .tc-linklist li::before {
  content: ""; position: absolute; left: 2px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--tc-orange);
}
.tc-card .tc-linklist a { font-weight: 600; text-decoration: none; }
.tc-card .tc-linklist a:hover { text-decoration: underline; }
.tc-card-note { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--tc-muted); margin: 12px 0 0; }

/* Feature card (contenuti principali) */
.tc-feature {
  background: #fff; border: 1px solid var(--tc-line); border-radius: var(--tc-radius); padding: 24px; height: 100%;
  transition: transform .2s, box-shadow .2s; position: relative;
}
.tc-feature:hover { transform: translateY(-4px); box-shadow: var(--tc-shadow); }
.tc-feature h2, .tc-feature h3 { margin-top: 0; }
.tc-feature h3 a, .tc-feature h2 a { color: var(--tc-green-800); text-decoration: none; }
.tc-feature h3 a::after, .tc-feature h2 a::after { content: ""; position: absolute; inset: 0; }
.tc-feature h3 a:hover, .tc-feature h2 a:hover { color: var(--tc-red); }
.tc-feature p { color: var(--tc-muted); font-size: .95rem; }
.tc-feature .tc-feature-img { width: 100%; border-radius: var(--tc-radius-sm); margin-bottom: 14px; aspect-ratio: 1 / 1; object-fit: cover; max-width: 150px; }
.tc-feature .tc-ico-lg { width: 52px; height: 52px; border-radius: 12px; margin-bottom: 14px; }
.tc-feature .tc-more { font-weight: 700; color: var(--tc-red); font-size: .9rem; text-decoration: none; }
.tc-feature-wide { height: auto; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.tc-feature-wide img { width: 120px; max-height: 140px; object-fit: contain; border-radius: var(--tc-radius-sm); }
@media (max-width: 575.98px) {
  .tc-feature-wide { grid-template-columns: 1fr; }
  .tc-feature-wide img { width: 110px; }
}
.tc-more::after { content: " →"; }

/* Section heading */
.tc-sec-head { display: flex; align-items: center; gap: 12px; margin: 8px 0 18px; }
.tc-sec-head h2 { margin: 0; font-size: 1.7rem; }
.tc-sec-head::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--tc-green-100), transparent); }
.tc-sec-head img { width: 22px; height: 22px; border-radius: 4px; }

/* ---------- Article (pagine contenuto) ---------- */
.tc-article { font-size: 1.02rem; }
.tc-article h2 { margin: 2rem 0 .8rem; padding-bottom: .4rem; border-bottom: 2px solid var(--tc-green-100); }
.tc-article h3 { margin: 1.6rem 0 .6rem; color: var(--tc-green-700); }
.tc-article h4 { margin: 1.3rem 0 .5rem; color: var(--tc-green-700); }
.tc-article p { margin-bottom: 1rem; }
.tc-article ul, .tc-article ol { padding-left: 1.3rem; margin-bottom: 1rem; }
.tc-article li { margin-bottom: .35rem; }
.tc-article ul li::marker { color: var(--tc-orange); }
.tc-article img { border-radius: var(--tc-radius-sm); }
.tc-article .tc-figure-end { float: right; margin: 4px 0 14px 20px; max-width: 42%; }
.tc-article .tc-figure-start { float: left; margin: 4px 20px 14px 0; max-width: 42%; }
@media (max-width: 575.98px) {
  .tc-article .tc-figure-end, .tc-article .tc-figure-start { float: none; margin: 0 0 14px; max-width: 100%; }
}
.tc-article blockquote, .tc-callout {
  background: var(--tc-cream-soft); border-left: 5px solid var(--tc-orange); border-radius: 0 var(--tc-radius-sm) var(--tc-radius-sm) 0;
  padding: 14px 18px; margin: 1.4rem 0;
}
.tc-callout-green { background: var(--tc-green-50); border-left-color: var(--tc-green); }
.tc-callout > *:last-child { margin-bottom: 0; }
.tc-article table { width: 100%; }

/* Indice sottopagine (pill nav) */
.tc-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.tc-subnav a {
  display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--tc-green-50); color: var(--tc-green-800);
  border: 1px solid var(--tc-green-100); font-weight: 600; font-size: .88rem; text-decoration: none;
}
.tc-subnav a:hover { background: var(--tc-green); color: #fff; border-color: var(--tc-green); }
.tc-subnav a.active { background: var(--tc-green); color: #fff; border-color: var(--tc-green); }

/* Checklist numerata (5 punti storici) */
.tc-checklist { list-style: none; padding: 18px; margin: 0 0 24px; background: var(--tc-green-50); border: 1px solid var(--tc-green-100); border-radius: var(--tc-radius); display: grid; gap: 10px; counter-reset: tc; }
.tc-checklist li { counter-increment: tc; display: flex; gap: 12px; align-items: center; margin: 0; }
.tc-checklist li::before {
  content: counter(tc); flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--tc-green); color: #fff; display: grid; place-items: center;
  font-family: var(--tc-font-display); font-weight: 700;
}

/* Schede (strutture, hotel, pensioni, agriturismi) */
.tc-listing { border: 1px solid var(--tc-line); border-radius: var(--tc-radius-sm); padding: 14px 16px; margin-bottom: 12px; background: #fff; }
.tc-listing h3, .tc-listing h4 { font-family: var(--tc-font); font-size: 1.02rem; font-weight: 700; margin: 0 0 4px; color: var(--tc-green-800); }
.tc-listing p { margin: 0; font-size: .92rem; color: var(--tc-muted); }
.tc-listing .tc-listing-meta { font-size: .88rem; color: var(--tc-ink); }

/* Tabelle */
.tc-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--tc-line); border-radius: var(--tc-radius-sm); overflow: hidden; font-size: .93rem; }
.tc-table th { background: var(--tc-green); color: #fff; font-weight: 600; padding: 10px 12px; text-align: left; }
.tc-table td { padding: 9px 12px; border-top: 1px solid var(--tc-line); vertical-align: top; }
.tc-table tr:nth-child(even) td { background: var(--tc-bg-soft); }

/* Galleria foto (schede aziende) */
.tc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tc-gallery a, .tc-gallery figure { display: block; margin: 0; border-radius: var(--tc-radius-sm); overflow: hidden; border: 1px solid var(--tc-line); background: #fff; }
.tc-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .3s; display: block; }
.tc-gallery a:hover img { transform: scale(1.04); }

/* Scheda contatti azienda */
.tc-contact { background: var(--tc-green-50); border: 1px solid var(--tc-green-100); border-radius: var(--tc-radius); padding: 18px 20px; margin-bottom: 24px; }
.tc-contact h2 { font-size: 1.5rem; margin: 0 0 6px; border: 0; padding: 0; }
.tc-contact .tc-contact-row { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px; }
.tc-contact .tc-contact-row .bi { color: var(--tc-green); }
.tc-contact img.tc-contact-logo { max-width: 200px; border-radius: var(--tc-radius-sm); background: #fff; }

/* ---------- Sidebar ---------- */
.tc-sidebar { min-width: 0; }
@media (min-width: 992px) {
  .tc-sidebar-sticky { position: sticky; top: 100px; }
}
.tc-sidebar .tc-card { margin-bottom: 20px; }
.tc-sidebar .tc-card-body { font-size: .9rem; }
.tc-cta-box {
  background: linear-gradient(135deg, var(--tc-orange), #ffb54a); color: #fff; border-radius: var(--tc-radius); padding: 20px; margin-bottom: 20px;
  box-shadow: 0 8px 22px rgba(255, 150, 0, .3); text-align: center;
}
.tc-cta-box p { margin: 0 0 12px; font-weight: 600; font-size: .95rem; }
.tc-cta-box .btn { background: #fff; color: var(--tc-orange-700); font-weight: 800; border-radius: 999px; padding: 10px 22px; }
.tc-cta-box .btn:hover { background: var(--tc-green-800); color: #fff; }
.tc-sidenav { list-style: none; margin: 0; padding: 0; }
.tc-sidenav-title { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tc-orange-700); padding: 12px 18px 4px; }
.tc-sidenav a { display: block; padding: 7px 18px; color: var(--tc-red); text-decoration: none; font-weight: 600; font-size: .9rem; border-left: 3px solid transparent; }
.tc-sidenav a:hover { background: var(--tc-cream-soft); border-left-color: var(--tc-orange); color: var(--tc-red); }
.tc-sidenav .tc-off { display: block; padding: 7px 18px; color: var(--tc-muted); font-size: .9rem; }

/* Form di ricerca annunci */
.tc-search { background: var(--tc-cream-soft); }
.tc-search .form-label { font-weight: 700; font-size: .82rem; color: var(--tc-green-800); margin-bottom: 4px; }
.tc-search select, .tc-search .form-select, select.form {
  display: block; width: 100%; padding: .5rem 2.25rem .5rem .75rem; font-size: .93rem; line-height: 1.5; color: var(--tc-ink);
  background-color: #fff; border: 1px solid #d7dcc9; border-radius: 8px;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%234f7d00' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right .75rem center; background-size: 16px 12px;
}
.tc-search select:focus, select.form:focus { border-color: var(--tc-green); outline: 0; box-shadow: 0 0 0 .2rem rgba(79, 125, 0, .2); }
.tc-search select[multiple], select.form[multiple] { background-image: none; padding-right: .75rem; }
.tc-search .tc-search-hint { font-size: .82rem; color: var(--tc-muted); margin-bottom: 10px; text-align: center; font-weight: 600; }

/* Bottoni */
.btn-tc { background: var(--tc-green); color: #fff; font-weight: 700; border-radius: 999px; padding: 10px 22px; border: 0; }
.btn-tc:hover, .btn-tc:focus { background: var(--tc-green-800); color: #fff; }
.btn-tc-outline { border: 2px solid var(--tc-green); color: var(--tc-green-800); font-weight: 700; border-radius: 999px; padding: 8px 20px; background: transparent; }
.btn-tc-outline:hover { background: var(--tc-green); color: #fff; }
.btn-tc-orange { background: var(--tc-orange); color: #fff; font-weight: 700; border-radius: 999px; padding: 10px 22px; border: 0; }
.btn-tc-orange:hover { background: var(--tc-orange-700); color: #fff; }

/* ---------- Annunci (output CGI) ---------- */
.tc-ad-list { display: grid; gap: 14px; }
.tc-ad-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; background: #fff; border: 1px solid var(--tc-line);
  border-radius: var(--tc-radius); padding: 14px; transition: box-shadow .2s, transform .2s; position: relative; margin-bottom: 14px;
}
.tc-ad-item:hover { box-shadow: var(--tc-shadow); transform: translateY(-2px); }
.tc-ad-item .tc-ad-thumb img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--tc-radius-sm); display: block; background: var(--tc-bg-soft); }
.tc-ad-item h2 { font-family: var(--tc-font); font-size: 1.12rem; font-weight: 700; margin: 0 0 4px; line-height: 1.3; }
.tc-ad-item h2 a { color: var(--tc-green-800); text-decoration: none; }
.tc-ad-item h2 a::after { content: ""; position: absolute; inset: 0; }
.tc-ad-item h2 a:hover { color: var(--tc-red); }
.tc-ad-date { font-size: .8rem; color: var(--tc-muted); }
.tc-ad-meta { font-size: .9rem; color: var(--tc-muted); margin: 4px 0; }
.tc-ad-meta b { color: var(--tc-ink); }
.tc-ad-price { font-family: var(--tc-font-display); font-size: 1.35rem; font-weight: 700; color: var(--tc-orange-700); }
@media (max-width: 479.98px) {
  .tc-ad-item { grid-template-columns: 88px 1fr; gap: 12px; }
  .tc-ad-item .tc-ad-thumb img { width: 88px; height: 88px; }
}
.tc-ad-detail .tc-ad-price-big { font-family: var(--tc-font-display); font-size: 2rem; font-weight: 800; color: var(--tc-orange-700); }
.tc-ad-detail .tc-ad-text { font-size: 1.02rem; background: var(--tc-bg-soft); border-radius: var(--tc-radius-sm); padding: 16px 18px; margin: 14px 0; }

/* Razze (output CGI) */
.tc-breed { background: #fff; border: 1px solid var(--tc-line); border-radius: var(--tc-radius); padding: 16px; margin-bottom: 14px; overflow: hidden; }
.tc-breed h2 { font-family: var(--tc-font-display); font-size: 1.5rem; margin: 0 0 2px; }
.tc-breed h2 a { color: var(--tc-green-800); text-decoration: none; }
.tc-breed h2 a:hover { color: var(--tc-red); }
.tc-breed .tc-breed-tech { color: var(--tc-muted); font-style: italic; font-size: .9rem; display: block; margin-bottom: 10px; }
.tc-breed img[align="left"], .tc-breed .tc-breed-photo img { float: left; width: 120px; height: 120px; object-fit: cover; border-radius: var(--tc-radius-sm); margin: 0 16px 8px 0; }
.tc-breed-label { display: block; font-weight: 700; color: var(--tc-red); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }
.tc-breed-text { font-size: .93rem; display: block; margin-bottom: 8px; }

/* Paginazione (output CGI: #tnt_pagination) */
#tnt_pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 26px 0 8px !important; font-size: .9rem; font-family: var(--tc-font); height: auto; line-height: 1.2; }
#tnt_pagination a, #tnt_pagination a:link, #tnt_pagination a:visited, #tnt_pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; margin: 0;
  border-radius: 999px; border: 1px solid var(--tc-line); background: #fff; color: var(--tc-green-800); text-decoration: none; font-weight: 600; width: auto;
}
#tnt_pagination a:hover { background: var(--tc-green); color: #fff; border-color: var(--tc-green); }
#tnt_pagination .active_tnt_link { background: var(--tc-green); color: #fff; border-color: var(--tc-green); font-size: .95rem; cursor: default; }
#tnt_pagination .disabled_tnt_pagination { color: #b5bba9; background: var(--tc-bg-soft); cursor: default; }

/* Form generici (inserimento annuncio, rispondi) */
.tc-form fieldset, .tc-content fieldset {
  border: 1px solid var(--tc-line); border-radius: var(--tc-radius); padding: 18px 20px 12px; margin: 0 0 22px; background: #fff;
}
.tc-form legend, .tc-content fieldset legend {
  float: none; width: auto; font-family: var(--tc-font-display); font-weight: 700; font-size: 1.3rem; color: var(--tc-green-800);
  padding: 0 8px; margin: 0;
}
.tc-content input[type="text"], .tc-content input[type="email"], .tc-content input[type="tel"], .tc-content input[type="password"],
.tc-content input[type="file"], .tc-content textarea, .tc-content select:not(.form-select) {
  max-width: 100%;
}
.tc-form input[type="text"], .tc-form input[type="email"], .tc-form input[type="tel"], .tc-form input[type="file"], .tc-form textarea, .tc-form select {
  display: block; width: 100%; padding: .5rem .75rem; font-size: .95rem; border: 1px solid #d7dcc9; border-radius: 8px; background: #fff; color: var(--tc-ink);
}
.tc-form input[type="text"]:focus, .tc-form input[type="email"]:focus, .tc-form textarea:focus, .tc-form select:focus {
  border-color: var(--tc-green); outline: 0; box-shadow: 0 0 0 .2rem rgba(79, 125, 0, .2);
}
.tc-form input.tc-input-sm { width: auto; display: inline-block; max-width: 110px; }
.tc-form label { font-weight: 600; font-size: .9rem; color: var(--tc-green-800); margin-bottom: 4px; }
.tc-form label.error { display: block; color: var(--tc-red); font-weight: 600; font-size: .84rem; margin-top: 4px; font-style: normal; }
.tc-form input.error, .tc-form select.error, .tc-form textarea.error { border-color: var(--tc-red); }
.tc-form .gray, .tc-form .gray label { color: #9aa18d; }
.tc-form .tc-required-note { background: var(--tc-cream-soft); border-radius: 8px; padding: 8px 12px; font-size: .85rem; text-align: center; margin-bottom: 18px; }
.tc-form .form-check-input:checked { background-color: var(--tc-green); border-color: var(--tc-green); }
.tc-form input[type="submit"], .tc-form button[type="submit"], .tc-content input[type="submit"].button {
  background: var(--tc-green); color: #fff; font-weight: 700; border-radius: 999px; padding: 11px 28px; border: 0; cursor: pointer;
}
.tc-form input[type="submit"]:hover, .tc-content input[type="submit"].button:hover { background: var(--tc-green-800); }

/* Galleria foto annuncio (jquery ad-gallery) */
.tc-content .ad-gallery { width: 100% !important; max-width: 600px; margin: 0 auto; }
.tc-content .ad-gallery .ad-image-wrapper { border-radius: var(--tc-radius-sm); overflow: hidden; }

/* News ticker (output CGI) */
#js-news { list-style: none; padding: 0; margin: 0; }
#js-news .news-item { padding: 8px 0; border-top: 1px dashed var(--tc-line); }
#js-news .news-item:first-child { border-top: 0; }
#js-news .news-item a { font-weight: 600; text-decoration: none; }

/* ---------- Footer ---------- */
.tc-footer { background: var(--tc-green-800); color: #d4dfbd; font-size: .92rem; margin-top: 0; }
.tc-footer .tc-footer-top { padding: 48px 0 28px; }
.tc-footer h3 { color: #fff; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.tc-footer ul { list-style: none; padding: 0; margin: 0; }
.tc-footer li { margin-bottom: 7px; }
.tc-footer a { color: #eef4df; text-decoration: none; }
.tc-footer a:hover { color: var(--tc-cream); text-decoration: underline; }
.tc-footer .tc-footer-logo { background: var(--tc-green); border-radius: 12px; display: inline-block; padding: 4px 10px; margin-bottom: 14px; }
.tc-footer .tc-footer-logo img { height: 58px; width: auto; display: block; }
.tc-footer .tc-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0; font-size: .84rem; color: #b8c79c; }
.tc-footer .tc-footer-bottom .container { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; }
.tc-footer .tc-footer-bottom a { color: #fff; }
.tc-footer-ad { background: var(--tc-green-900); text-align: center; overflow: hidden; }
.tc-footer-ad .container { padding-top: 10px; padding-bottom: 10px; }
.tc-footer-ad .container:empty { display: none; }

.tc-backtop {
  position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--tc-orange); color: #fff;
  border: 0; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); display: grid; place-items: center; opacity: 0; visibility: hidden;
  transition: opacity .2s, visibility .2s; z-index: 1040; font-size: 1.2rem; line-height: 1;
}
.tc-backtop.show { opacity: 1; visibility: visible; }
.tc-backtop:hover { background: var(--tc-orange-700); }

/* ---------- Compatibilita' classi storiche (HTML generato dagli script CGI) ---------- */
.boxtitolo { font-family: var(--tc-font-display); color: #fff; background-color: var(--tc-green); font-weight: 700; }
.boxtxprimo { color: var(--tc-ink); }
.boxtxbk { color: var(--tc-ink); font-size: .92rem; }
.boxtxred, a.boxtxred { color: var(--tc-red); text-decoration: none; }
a.boxtxred:hover { text-decoration: underline; }
.boxarttitolo { font-weight: 700; color: var(--tc-ink); }
.testoart { font-size: .93rem; }
.c_text, .l_text { font-size: .95rem; }
.tc-content table[width] { max-width: 100%; }
.tc-content font[size="5"], .tc-content font[size="4"] { font-size: 1.15rem; }

/* Utility */
.tc-bg-soft { background: var(--tc-bg-soft); }
.tc-text-green { color: var(--tc-green-800) !important; }
.tc-text-red { color: var(--tc-red) !important; }
.tc-rounded { border-radius: var(--tc-radius) !important; }
.tc-clear { clear: both; }

@media print {
  .tc-topbar, .tc-header, .tc-adbar, .tc-sidebar, .tc-footer, .tc-backtop, .tc-breadcrumb { display: none !important; }
  .tc-main { padding: 0; }
}
