/* MANUALEREEF ATLAS CORALLI / template pilota v283 — specie Acropora tenuis.
   Specifico per coralli, NON deriva dal modello degli invertebrati.
   Pagine terze non coinvolte: tutte le regole sono sotto body.atlas-coral-v283. */
body.atlas-coral-v283{background:#edf4f8;color:#17354c}
body.atlas-coral-v283 .atlas-species-shell{overflow:visible}
body.atlas-coral-v283 .coral-hero{background:linear-gradient(124deg,#08283f 0%,#0b405e 66%,#0b5368 100%);color:#f6fcff;border-bottom:1px solid #b6d5e1}
body.atlas-coral-v283 .coral-hero-inner{max-width:1370px;margin:auto;padding:25px 24px 30px}
body.atlas-coral-v283 .coral-crumb{font-size:12px;letter-spacing:.03em;color:#c3ddea;margin-bottom:17px}
body.atlas-coral-v283 .coral-crumb a{color:#e9f8ff;text-decoration:none}
body.atlas-coral-v283 .coral-hero-grid{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,.97fr) minmax(215px,.60fr);gap:16px;align-items:stretch}
body.atlas-coral-v283 .coral-hero-copy,body.atlas-coral-v283 .coral-hero-media,body.atlas-coral-v283 .coral-hero-facts{min-width:0;border-radius:16px;background:rgba(255,255,255,.09);border:1px solid rgba(209,239,251,.22);overflow:hidden}
body.atlas-coral-v283 .coral-hero-copy{padding:24px 23px}
body.atlas-coral-v283 .coral-hero-eyebrow{display:block;color:#ffc968;font-size:11px;letter-spacing:.14em;font-weight:850;text-transform:uppercase;margin-bottom:8px}
body.atlas-coral-v283 .coral-hero-copy h1{font-size:clamp(28px,3.6vw,48px)!important;letter-spacing:-.025em;color:#fff!important;line-height:1.05!important;margin:0 0 9px!important;font-style:italic}
body.atlas-coral-v283 .coral-hero-copy .coral-latin{font-size:14px;color:#bad9e7;line-height:1.4;margin-bottom:14px}
body.atlas-coral-v283 .coral-tags{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:17px}
body.atlas-coral-v283 .coral-tags span{font-size:11px;font-weight:850;border:1px solid #4a8aa7;background:rgba(2,30,51,.35);border-radius:99px;padding:5px 9px;color:#d8f3ff}
body.atlas-coral-v283 .coral-hero-copy p{color:#e3f2f8;font-size:14px;line-height:1.7;margin:0}
body.atlas-coral-v283 .coral-hero-media{padding:10px;display:flex;flex-direction:column;gap:8px}
body.atlas-coral-v283 .coral-hero-open{width:100%;height:100%;min-height:265px;flex:1;display:flex;align-items:center;justify-content:center;border:0;background:#072b41;border-radius:11px;padding:0;overflow:hidden;cursor:zoom-in}
body.atlas-coral-v283 .coral-hero-open img{width:100%;height:100%;max-height:340px;object-fit:contain;display:block}
body.atlas-coral-v283 .coral-hero-photo-note{font-size:10px;line-height:1.45;color:#d7ecf5;padding:3px 4px 1px}
body.atlas-coral-v283 .coral-hero-photo-note a{color:#fff;text-decoration:underline}
body.atlas-coral-v283 .coral-hero-facts{padding:12px 15px}
body.atlas-coral-v283 .coral-fact{padding:12px 4px;display:flex;gap:10px;align-items:flex-start}
body.atlas-coral-v283 .coral-fact + .coral-fact{border-top:1px solid rgba(232,247,255,.17)}
body.atlas-coral-v283 .coral-fact-symbol{width:32px;height:32px;flex-shrink:0;border-radius:10px;background:#124f6a;display:grid;place-items:center;font-size:18px}
body.atlas-coral-v283 .coral-fact b{display:block;color:#fff;font-size:12px;line-height:1.3;margin-bottom:3px}
body.atlas-coral-v283 .coral-fact span{color:#d7ecf6;font-size:12px;line-height:1.5;display:block}
body.atlas-coral-v283 .layout{max-width:1370px;margin:0 auto;display:grid;grid-template-columns:215px minmax(0,1fr);gap:23px;padding:25px 24px 54px;min-width:0}
body.atlas-coral-v283 .layout>.side{position:sticky;top:78px;align-self:start;max-height:calc(100vh - 98px);overflow-y:auto;background:#0c3049;border:1px solid #265b78;border-radius:14px;padding:13px;min-width:0}
body.atlas-coral-v283 .layout>.side a{display:block;padding:10px 11px;border-radius:8px;color:#c5dfec;font-size:12px;line-height:1.4;overflow-wrap:anywhere;text-decoration:none}
body.atlas-coral-v283 .layout>.side a:hover,body.atlas-coral-v283 .layout>.side a:focus-visible{background:#144f6b;color:#fff}
body.atlas-coral-v283 .layout>.side a.active{background:#0b739c;color:#fff;font-weight:800}
body.atlas-coral-v283 .layout>.side a.lock:before{content:"🔒 ";font-size:10px}
body.atlas-coral-v283 .layout>.content{min-width:0;width:100%;max-width:none;background:transparent;padding:0;overflow:visible}
body.atlas-coral-v283 .coral-free{background:#fff;border:1px solid #d0e4ee;border-radius:17px;padding:23px;box-shadow:0 12px 28px rgba(12,42,65,.05)}
body.atlas-coral-v283 .coral-section-label{display:inline-flex;align-items:center;gap:8px;padding:5px 11px;color:#005c78;background:#e7f8fd;border:1px solid #bfe5ef;border-radius:99px;font-size:11px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
body.atlas-coral-v283 .coral-free-header h2{font-size:clamp(21px,2.45vw,29px)!important;color:#0d3750!important;line-height:1.2;margin:12px 0 9px!important}
body.atlas-coral-v283 .coral-free-header>p{color:#4c6c7e;font-size:14px;line-height:1.65;margin:0 0 22px;max-width:920px}
body.atlas-coral-v283 .coral-free-grid{display:grid;grid-template-columns:minmax(235px,.63fr) minmax(0,1.4fr);gap:18px;align-items:start;min-width:0}
body.atlas-coral-v283 .coral-science-rail{min-width:0}
body.atlas-coral-v283 .coral-science-rail .science{margin:0!important;padding:18px!important;background:#f5fafd;border:1px solid #d4e6ef;border-radius:13px;box-shadow:none}
body.atlas-coral-v283 .coral-science-rail .science h3{font-size:17px!important;color:#0c4261!important;margin:0 0 12px!important}
body.atlas-coral-v283 .coral-science-rail .science dl{display:grid;grid-template-columns:minmax(75px,.65fr) minmax(0,1fr);margin:0;gap:0;border:0}
body.atlas-coral-v283 .coral-science-rail .science dt,body.atlas-coral-v283 .coral-science-rail .science dd{margin:0!important;padding:8px 3px!important;border-bottom:1px solid #e1edf3;font-size:11.5px!important;line-height:1.4;min-width:0;overflow-wrap:anywhere}
body.atlas-coral-v283 .coral-science-rail .science dt{font-weight:800;color:#345970}
body.atlas-coral-v283 .coral-science-rail .science dd{font-weight:650;color:#123b54}
body.atlas-coral-v283 .coral-science-rail .worms-details{margin:14px 0;padding:10px;border:1px solid #cbdfea;border-radius:10px;background:#fff;font-size:12px}
body.atlas-coral-v283 .coral-science-rail .science .atlas-geo-panel{margin-top:16px!important;background:#fff;border:1px solid #d5e8f0;border-radius:11px;overflow:hidden;padding:12px}
body.atlas-coral-v283 .coral-science-rail .science .science-map-title{font-weight:800;font-size:14px;color:#0d425f;display:block;margin-bottom:8px}
body.atlas-coral-v283 .coral-science-rail .science .atlas-geo-approved{display:block;width:100%;height:auto;max-height:170px;object-fit:contain;float:none;margin:12px 0}
body.atlas-coral-v283 .coral-science-rail .atlas-range-disclaimer{font-size:10px!important;line-height:1.5;color:#60798b;margin:0!important}
body.atlas-coral-v283 .coral-science-rail .science-map-legend{font-size:10px;line-height:1.4;color:#44677b}
body.atlas-coral-v283 .coral-free-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
body.atlas-coral-v283 .coral-free-card{background:#f7fbfd;border:1px solid #d6e9f0;border-radius:13px;padding:15px 16px;min-width:0;display:flex;flex-direction:column;gap:8px}
body.atlas-coral-v283 .coral-free-card.wide{grid-column:span 2}
body.atlas-coral-v283 .coral-free-card .coral-card-heading{display:flex;gap:10px;align-items:center}
body.atlas-coral-v283 .coral-free-card .coral-card-icon{display:grid;place-items:center;width:33px;height:33px;flex-shrink:0;border-radius:10px;background:#e2f3fa;color:#0c6587;font-size:17px}
body.atlas-coral-v283 .coral-free-card h3{font-size:15px!important;line-height:1.25!important;margin:0!important;color:#083c58!important}
body.atlas-coral-v283 .coral-free-card p,body.atlas-coral-v283 .coral-free-card li{font-size:12px!important;line-height:1.65!important;color:#3b5d72!important;margin:0}
body.atlas-coral-v283 .coral-free-card p b,body.atlas-coral-v283 .coral-free-card li b{color:#133f57}
body.atlas-coral-v283 .coral-free-card ul{padding-left:17px;margin:0;display:grid;gap:4px}
body.atlas-coral-v283 .coral-morph-columns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
body.atlas-coral-v283 .coral-morph-columns>div{background:white;border:1px solid #e0edf4;border-radius:8px;padding:10px}
body.atlas-coral-v283 .coral-morph-columns b{display:block;font-size:12px;color:#124965;margin-bottom:4px}
body.atlas-coral-v283 .coral-feature-strip{display:flex;gap:7px;flex-wrap:wrap}
body.atlas-coral-v283 .coral-feature-strip span{background:#e3f3f9;border:1px solid #c5e2ee;color:#154c69;padding:5px 7px;border-radius:8px;font-weight:750;font-size:10px}
body.atlas-coral-v283 .coral-free-source{margin-top:15px;display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:11px 13px;border-radius:10px;background:#ecf6fa;color:#41667b;font-size:11px;line-height:1.4}
body.atlas-coral-v283 .coral-free-source a{color:#09638a}
body.atlas-coral-v283 .mr-coral-teaser{margin:19px 0 24px!important}
body.atlas-coral-v283 .coral-reader-preview{background:linear-gradient(140deg,#fffdf5,#fff9e6);border:1px solid #e8d5a5;border-radius:17px;padding:22px;margin:20px 0 16px}
body.atlas-coral-v283 .coral-reader-preview-top{display:flex;justify-content:space-between;gap:20px;align-items:start}
body.atlas-coral-v283 .coral-reader-preview h2{font-size:clamp(20px,2.5vw,26px)!important;color:#153d56!important;margin:9px 0 7px!important;line-height:1.2}
body.atlas-coral-v283 .coral-reader-preview p{font-size:13px;line-height:1.6;color:#546c7a;margin:0}
body.atlas-coral-v283 .coral-reader-cta{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border-radius:10px;background:#0a4d6b;color:#fff!important;font-weight:800;font-size:12px;min-height:43px;padding:10px 15px;text-decoration:none!important}
body.atlas-coral-v283 .coral-reader-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:17px}
body.atlas-coral-v283 .coral-reader-preview-card{background:#fff;border:1px solid #eadbb8;border-radius:10px;padding:12px;min-width:0}
body.atlas-coral-v283 .coral-reader-preview-card b{display:block;color:#133e56;font-size:12px;margin-bottom:5px}
body.atlas-coral-v283 .coral-reader-preview-card span{font-size:11px;line-height:1.55;color:#597585;display:block}
body.atlas-coral-v283 .reader-zone{background:#fff!important;border:1px solid #cfe1ec!important;border-radius:16px!important;padding:20px!important;margin:17px 0 23px!important;min-width:0}
body.atlas-coral-v283 .reader-zone[hidden]{display:none!important}
body.atlas-coral-v283 .coral-reader-zone-head{border-bottom:1px solid #d4e5ec;padding-bottom:17px;margin-bottom:15px}
body.atlas-coral-v283 .coral-reader-zone-head h2{font-size:23px!important;color:#0b3652!important;margin:7px 0!important}
body.atlas-coral-v283 .coral-reader-zone-head p{font-size:13px;line-height:1.6;color:#536f80;margin:0}
body.atlas-coral-v283 .reader-zone .mr-coral{margin:16px 0 21px!important}
body.atlas-coral-v283 .reader-zone .reader-layout{display:grid;grid-template-columns:160px minmax(0,1fr);gap:16px;min-width:0}
body.atlas-coral-v283 .reader-zone .reader-side{min-width:0;position:sticky;top:83px;align-self:start;background:#f2f9fc;border:1px solid #d4e8ee;border-radius:11px;padding:12px}
body.atlas-coral-v283 .reader-zone .reader-side a,body.atlas-coral-v283 .reader-zone .reader-side button{color:#27556d;font-size:11px;line-height:1.45}
body.atlas-coral-v283 .reader-zone .reader-main{min-width:0}
body.atlas-coral-v283 .reader-zone .reader-section{max-width:100%;overflow-wrap:anywhere}
body.atlas-coral-v283 .reader-zone .reader-section .reader-cols{min-width:0}
body.atlas-coral-v283 .source-note,body.atlas-coral-v283 .similar-species{margin-top:22px}
body.atlas-coral-v283 .atlas-modal .modal-panel img{object-fit:contain}
@media(max-width:1200px){
 body.atlas-coral-v283 .coral-hero-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 body.atlas-coral-v283 .coral-hero-facts{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 body.atlas-coral-v283 .coral-fact{padding:10px}
 body.atlas-coral-v283 .coral-fact + .coral-fact{border-top:0}
 body.atlas-coral-v283 .coral-fact:nth-child(n+4){border-top:1px solid rgba(232,247,255,.17)}
}
@media(max-width:970px){
 body.atlas-coral-v283 .layout{grid-template-columns:1fr;padding:18px 16px 40px}
 body.atlas-coral-v283 .layout>.side{position:static;max-height:none;overflow:visible;display:flex;gap:4px;overflow-x:auto;white-space:nowrap}
 body.atlas-coral-v283 .layout>.side a{flex:0 0 auto}
 body.atlas-coral-v283 .coral-free-grid{grid-template-columns:1fr}
 body.atlas-coral-v283 .coral-science-rail .science dl{grid-template-columns:minmax(100px,.35fr) minmax(0,.65fr)}
 body.atlas-coral-v283 .coral-free-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:690px){
 body.atlas-coral-v283 .coral-hero-inner{padding:17px 12px 19px}
 body.atlas-coral-v283 .coral-hero-grid{grid-template-columns:minmax(0,1fr);gap:10px}
 body.atlas-coral-v283 .coral-hero-copy{padding:20px 16px}
 body.atlas-coral-v283 .coral-hero-media{padding:8px}
 body.atlas-coral-v283 .coral-hero-open{min-height:220px;max-height:310px}
 body.atlas-coral-v283 .coral-hero-open img{max-height:310px}
 body.atlas-coral-v283 .coral-hero-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 body.atlas-coral-v283 .coral-fact:nth-child(n){border-top:0}
 body.atlas-coral-v283 .coral-fact:nth-child(n+3){border-top:1px solid rgba(232,247,255,.17)}
 body.atlas-coral-v283 .layout{padding:13px 10px 35px;gap:13px}
 body.atlas-coral-v283 .layout>.side{border-radius:11px;padding:7px}
 body.atlas-coral-v283 .coral-free{padding:15px 12px}
 body.atlas-coral-v283 .coral-free-header>p{font-size:12px}
 body.atlas-coral-v283 .coral-free-cards{grid-template-columns:1fr}
 body.atlas-coral-v283 .coral-free-card.wide{grid-column:span 1}
 body.atlas-coral-v283 .coral-morph-columns{grid-template-columns:1fr}
 body.atlas-coral-v283 .coral-reader-preview{padding:16px 12px}
 body.atlas-coral-v283 .coral-reader-preview-top{flex-direction:column}
 body.atlas-coral-v283 .coral-reader-cta{width:100%}
 body.atlas-coral-v283 .coral-reader-preview-grid{grid-template-columns:1fr 1fr}
 body.atlas-coral-v283 .reader-zone{padding:13px!important}
 body.atlas-coral-v283 .reader-zone .reader-layout{grid-template-columns:1fr}
 body.atlas-coral-v283 .reader-zone .reader-side{position:static}
}
@media(max-width:390px){body.atlas-coral-v283 .coral-hero-facts{grid-template-columns:1fr}body.atlas-coral-v283 .coral-fact:nth-child(n){border-top:1px solid rgba(232,247,255,.17)}body.atlas-coral-v283 .coral-fact:first-child{border-top:0}}


/* v283.1 – Acropora tenuis: Reader layout, Reef-style icons, geographic map zoom.
   Rules scoped to Atlas Coralli; other Atlas taxa remain unchanged. */
body.atlas-coral-v283 .reader-zone .reader-layout{
 display:grid!important;
 grid-template-columns:minmax(0,1fr) 196px!important;
 grid-template-areas:"main side"!important;
 gap:18px!important;
 padding:18px 12px 22px;
 min-width:0;
 align-items:start;
}
body.atlas-coral-v283 .reader-zone .reader-main{
 grid-area:main!important;
 min-width:0!important;
 width:100%;
}
body.atlas-coral-v283 .reader-zone .reader-side{
 grid-area:side!important;
 width:100%;
 max-width:196px;
 min-width:0!important;
 position:sticky;
 top:83px;
 align-self:start;
}
body.atlas-coral-v283 .reader-zone .reader-main .reader-section{
 min-width:0;
 max-width:100%;
}
body.atlas-coral-v283 .reader-zone .reader-section-head>div{min-width:0}
body.atlas-coral-v283 .reader-zone .reader-section-head h2{
 overflow-wrap:normal;
 word-break:normal;
 hyphens:auto;
}
body.atlas-coral-v283 .coral-fact-symbol .mr-coral-reef-icon{
 display:block;width:25px;height:25px;object-fit:contain;filter:drop-shadow(0 0 3px rgba(32,184,214,.18));
}
body.atlas-coral-v283 .coral-free-card .coral-card-icon .mr-coral-reef-icon{
 display:block;width:23px;height:23px;object-fit:contain;filter:brightness(.6) saturate(1.35);
}
body.atlas-coral-v283 .coral-science-rail .atlas-geo-map-trigger{
 display:block;width:100%;margin:12px 0 0;padding:0;border:1px solid #c5e2ed;border-radius:12px;
 background:#e5f5fb;overflow:hidden;cursor:zoom-in;
}
body.atlas-coral-v283 .coral-science-rail .atlas-geo-map-trigger .atlas-geo-approved{
 display:block;width:100%;height:auto;max-height:200px;object-fit:contain;margin:0!important;border:0;
 transition:transform .2s ease;
}
body.atlas-coral-v283 .coral-science-rail .atlas-geo-map-trigger:hover .atlas-geo-approved{transform:scale(1.025)}
body.atlas-coral-v283 .coral-science-rail .atlas-geo-map-trigger:focus-visible{
 outline:3px solid #e5b54a;outline-offset:3px;
}
body.atlas-coral-v283 .coral-science-rail .atlas-geo-map-hint{
 margin:7px 0 0;font-size:11px;line-height:1.5;color:#356079;
}
body.atlas-coral-v283 .atlas-modal .atlas-modal-map-info{
 font-size:13px;line-height:1.6;color:#dceff7;margin-top:9px;max-width:980px;
}
body.atlas-coral-v283 .atlas-modal .atlas-modal-map-info[hidden]{display:none!important}
@media(max-width:970px){
 body.atlas-coral-v283 .reader-zone .reader-layout{
   grid-template-columns:minmax(0,1fr)!important;
   grid-template-areas:"side" "main"!important;
   gap:12px!important;
   padding:12px!important;
 }
 body.atlas-coral-v283 .reader-zone .reader-side{
   display:flex!important;position:static!important;
   grid-area:side!important;width:100%;max-width:none;min-width:0;
   overflow-x:auto;gap:5px;padding:8px;
   white-space:nowrap;-webkit-overflow-scrolling:touch;
 }
 body.atlas-coral-v283 .reader-zone .reader-side .reader-side-title{display:none!important}
 body.atlas-coral-v283 .reader-zone .reader-side a,
 body.atlas-coral-v283 .reader-zone .reader-side button{
   width:auto!important;min-width:max-content;flex:0 0 auto;white-space:nowrap;
 }
 body.atlas-coral-v283 .reader-zone .reader-main{grid-area:main!important;min-width:0}
}
@media(max-width:690px){
 body.atlas-coral-v283 .reader-zone .reader-layout{padding:8px!important;gap:9px!important}
 body.atlas-coral-v283 .reader-zone .reader-main .reader-section{min-width:0}
 body.atlas-coral-v283 .reader-zone .reader-main .reader-section-head h2{font-size:clamp(17px,4.5vw,21px)!important}
}
@media(prefers-reduced-motion:reduce){
 body.atlas-coral-v283 .coral-science-rail .atlas-geo-map-trigger .atlas-geo-approved{transition:none}
}
